refactor buttons pt2
This commit is contained in:
parent
033aa1a885
commit
fb617c61b9
49 changed files with 90 additions and 90 deletions
|
@ -5,7 +5,7 @@
|
|||
(#{projects.count})
|
||||
- if can? current_user, :manage_user_team, @team
|
||||
%span.right
|
||||
= link_to new_team_project_path(@team), class: "btn very_small info" do
|
||||
= link_to new_team_project_path(@team), class: "btn btn-tiny info" do
|
||||
%i.icon-plus
|
||||
Assign Project
|
||||
%ul.well-list
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
- if current_user == user
|
||||
%span.btn.disabled This is you!
|
||||
- if @team.owner == user
|
||||
%span.btn.disabled.success Owner
|
||||
%span.btn.disabled.btn-success Owner
|
||||
- elsif user.blocked
|
||||
%span.btn.disabled.blocked Blocked
|
||||
- elsif allow_admin
|
||||
= link_to team_member_path(@team, user), confirm: remove_from_user_team_message(@team, user), method: :delete, class: "very_small btn btn-remove" do
|
||||
= link_to team_member_path(@team, user), confirm: remove_from_user_team_message(@team, user), method: :delete, class: "btn-tiny btn btn-remove" do
|
||||
%i.icon-minus.icon-white
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
- if current_user.can?(:admin_user_team, @team)
|
||||
%td.bgred
|
||||
= link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn small"
|
||||
= link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn btn-small"
|
||||
= link_to 'Relegate', team_project_path(@team, project), confirm: 'Remove project from team and move to global namespace. Are you sure?', method: :delete, class: "btn btn-remove small"
|
||||
|
||||
- else
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.projects
|
||||
.activities.span8
|
||||
= link_to dashboard_path, class: 'btn very_small' do
|
||||
= link_to dashboard_path, class: 'btn btn-tiny' do
|
||||
← To dashboard
|
||||
|
||||
%span.cgray Events and projects are filtered in scope of team
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue