Commit fb617c61b95aef4615346a5e554db469384d9b6c
1 parent
033aa1a8
Exists in
master
and in
4 other branches
refactor buttons pt2
Showing
49 changed files
with
90 additions
and
90 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/assets/stylesheets/sections/notes.scss
@@ -215,10 +215,10 @@ ul.notes { | @@ -215,10 +215,10 @@ ul.notes { | ||
215 | */ | 215 | */ |
216 | 216 | ||
217 | .comment-btn { | 217 | .comment-btn { |
218 | - @extend .create-btn; | 218 | + @extend .btn-create; |
219 | } | 219 | } |
220 | .reply-btn { | 220 | .reply-btn { |
221 | - @extend .primary; | 221 | + @extend .btn-primary; |
222 | } | 222 | } |
223 | .file .content tr.line_holder:hover > td { background: $hover !important; } | 223 | .file .content tr.line_holder:hover > td { background: $hover !important; } |
224 | .file .content tr.line_holder:hover > td .line_note_link { | 224 | .file .content tr.line_holder:hover > td .line_note_link { |
app/views/admin/dashboard/index.html.haml
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | = link_to admin_projects_path do | 6 | = link_to admin_projects_path do |
7 | %h1= Project.count | 7 | %h1= Project.count |
8 | %hr | 8 | %hr |
9 | - = link_to 'New Project', new_project_path, class: "btn small" | 9 | + = link_to 'New Project', new_project_path, class: "btn btn-small" |
10 | .span4 | 10 | .span4 |
11 | .ui-box | 11 | .ui-box |
12 | %h5.title Groups | 12 | %h5.title Groups |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | = link_to admin_groups_path do | 14 | = link_to admin_groups_path do |
15 | %h1= Group.count | 15 | %h1= Group.count |
16 | %hr | 16 | %hr |
17 | - = link_to 'New Group', new_admin_group_path, class: "btn small" | 17 | + = link_to 'New Group', new_admin_group_path, class: "btn btn-small" |
18 | .span4 | 18 | .span4 |
19 | .ui-box | 19 | .ui-box |
20 | %h5.title Users | 20 | %h5.title Users |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | = link_to admin_users_path do | 22 | = link_to admin_users_path do |
23 | %h1= User.count | 23 | %h1= User.count |
24 | %hr | 24 | %hr |
25 | - = link_to 'New User', new_admin_user_path, class: "btn small" | 25 | + = link_to 'New User', new_admin_user_path, class: "btn btn-small" |
26 | 26 | ||
27 | .row | 27 | .row |
28 | .span4 | 28 | .span4 |
app/views/admin/groups/index.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | allows you to keep projects organized. | 4 | allows you to keep projects organized. |
5 | Use groups for uniting related projects. | 5 | Use groups for uniting related projects. |
6 | 6 | ||
7 | - = link_to 'New Group', new_admin_group_path, class: "btn small right" | 7 | + = link_to 'New Group', new_admin_group_path, class: "btn btn-small right" |
8 | %br | 8 | %br |
9 | = form_tag admin_groups_path, method: :get, class: 'form-inline' do | 9 | = form_tag admin_groups_path, method: :get, class: 'form-inline' do |
10 | = text_field_tag :name, params[:name], class: "xlarge" | 10 | = text_field_tag :name, params[:name], class: "xlarge" |
@@ -30,6 +30,6 @@ | @@ -30,6 +30,6 @@ | ||
30 | %td | 30 | %td |
31 | = link_to group.owner_name, admin_user_path(group.owner_id) | 31 | = link_to group.owner_name, admin_user_path(group.owner_id) |
32 | %td.bgred | 32 | %td.bgred |
33 | - = link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn small" | ||
34 | - = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn small btn-remove" | 33 | + = link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small" |
34 | + = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" | ||
35 | = paginate @groups, theme: "admin" | 35 | = paginate @groups, theme: "admin" |
app/views/admin/hooks/index.html.haml
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | %td | 33 | %td |
34 | = link_to admin_hook_path(hook) do | 34 | = link_to admin_hook_path(hook) do |
35 | %strong= hook.url | 35 | %strong= hook.url |
36 | - = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn small right" | 36 | + = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small right" |
37 | %td POST | 37 | %td POST |
38 | %td | 38 | %td |
39 | - = link_to 'Remove', admin_hook_path(hook), confirm: 'Are you sure?', method: :delete, class: "danger btn small right" | 39 | + = link_to 'Remove', admin_hook_path(hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small right" |
app/views/admin/projects/index.html.haml
1 | %h3.page_title | 1 | %h3.page_title |
2 | Projects | 2 | Projects |
3 | - = link_to 'New Project', new_project_path, class: "btn small right" | 3 | + = link_to 'New Project', new_project_path, class: "btn btn-small right" |
4 | 4 | ||
5 | %hr | 5 | %hr |
6 | 6 | ||
@@ -52,8 +52,8 @@ | @@ -52,8 +52,8 @@ | ||
52 | %i.icon-lock.cgreen | 52 | %i.icon-lock.cgreen |
53 | = link_to project.name_with_namespace, [:admin, project] | 53 | = link_to project.name_with_namespace, [:admin, project] |
54 | .right | 54 | .right |
55 | - = link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn small" | ||
56 | - = link_to 'Destroy', [:admin, project], confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn small btn-remove" | 55 | + = link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" |
56 | + = link_to 'Destroy', [:admin, project], confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" | ||
57 | - if @projects.blank? | 57 | - if @projects.blank? |
58 | %p.nothing_here_message 0 projects matches | 58 | %p.nothing_here_message 0 projects matches |
59 | - else | 59 | - else |
app/views/admin/projects/show.html.haml
@@ -129,7 +129,7 @@ | @@ -129,7 +129,7 @@ | ||
129 | %td | 129 | %td |
130 | = link_to tm.name, admin_user_path(tm) | 130 | = link_to tm.name, admin_user_path(tm) |
131 | %td= @project.project_access_human(tm) | 131 | %td= @project.project_access_human(tm) |
132 | - %td= link_to 'Edit Access', edit_admin_project_member_path(@project, tm), class: "btn small" | 132 | + %td= link_to 'Edit Access', edit_admin_project_member_path(@project, tm), class: "btn btn-small" |
133 | %td= link_to 'Remove from team', admin_project_member_path(@project, tm), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove small" | 133 | %td= link_to 'Remove from team', admin_project_member_path(@project, tm), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove small" |
134 | 134 | ||
135 | %br | 135 | %br |
app/views/admin/teams/index.html.haml
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | %small | 3 | %small |
4 | simple Teams description | 4 | simple Teams description |
5 | 5 | ||
6 | - = link_to 'New Team', new_admin_team_path, class: "btn small right" | 6 | + = link_to 'New Team', new_admin_team_path, class: "btn btn-small right" |
7 | %br | 7 | %br |
8 | 8 | ||
9 | = form_tag admin_teams_path, method: :get, class: 'form-inline' do | 9 | = form_tag admin_teams_path, method: :get, class: 'form-inline' do |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | %td | 32 | %td |
33 | = link_to team.owner.name, admin_user_path(team.owner_id) | 33 | = link_to team.owner.name, admin_user_path(team.owner_id) |
34 | %td.bgred | 34 | %td.bgred |
35 | - = link_to 'Rename', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn small" | ||
36 | - = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn small btn-remove" | 35 | + = link_to 'Rename', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small" |
36 | + = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" | ||
37 | 37 | ||
38 | = paginate @teams, theme: "admin" | 38 | = paginate @teams, theme: "admin" |
app/views/admin/teams/show.html.haml
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | %fieldset | 42 | %fieldset |
43 | %legend | 43 | %legend |
44 | Members (#{@team.members.count}) | 44 | Members (#{@team.members.count}) |
45 | - %span= link_to 'Add members', new_admin_team_member_path(@team), class: "btn btn-primary small right", id: :add_members_to_team | 45 | + %span= link_to 'Add members', new_admin_team_member_path(@team), class: "btn btn-primary btn-small right", id: :add_members_to_team |
46 | - if @team.members.any? | 46 | - if @team.members.any? |
47 | %table#members_list | 47 | %table#members_list |
48 | %thead | 48 | %thead |
@@ -60,14 +60,14 @@ | @@ -60,14 +60,14 @@ | ||
60 | %td= @team.human_default_projects_access(member) | 60 | %td= @team.human_default_projects_access(member) |
61 | %td= @team.admin?(member) ? "Admin" : "Member" | 61 | %td= @team.admin?(member) ? "Admin" : "Member" |
62 | %td.bgred | 62 | %td.bgred |
63 | - = link_to 'Edit', edit_admin_team_member_path(@team, member), class: "btn small" | 63 | + = link_to 'Edit', edit_admin_team_member_path(@team, member), class: "btn btn-small" |
64 | | 64 | |
65 | - = link_to 'Remove', admin_team_member_path(@team, member), confirm: 'Remove member from team. Are you sure?', method: :delete, class: "btn btn-remove small", id: "remove_member_#{member.id}" | 65 | + = link_to 'Remove', admin_team_member_path(@team, member), confirm: 'Remove member from team. Are you sure?', method: :delete, class: "btn btn-remove btn-small", id: "remove_member_#{member.id}" |
66 | 66 | ||
67 | %fieldset | 67 | %fieldset |
68 | %legend | 68 | %legend |
69 | Projects (#{@team.projects.count}) | 69 | Projects (#{@team.projects.count}) |
70 | - %span= link_to 'Add projects', new_admin_team_project_path(@team), class: "btn btn-primary small right", id: :assign_projects_to_team | 70 | + %span= link_to 'Add projects', new_admin_team_project_path(@team), class: "btn btn-primary btn-small right", id: :assign_projects_to_team |
71 | - if @team.projects.any? | 71 | - if @team.projects.any? |
72 | %table#projects_list | 72 | %table#projects_list |
73 | %thead | 73 | %thead |
@@ -82,7 +82,7 @@ | @@ -82,7 +82,7 @@ | ||
82 | %td | 82 | %td |
83 | %span= @team.human_max_project_access(project) | 83 | %span= @team.human_max_project_access(project) |
84 | %td.bgred | 84 | %td.bgred |
85 | - = link_to 'Edit', edit_admin_team_project_path(@team, project), class: "btn small" | 85 | + = link_to 'Edit', edit_admin_team_project_path(@team, project), class: "btn btn-small" |
86 | | 86 | |
87 | = link_to 'Relegate', admin_team_project_path(@team, project), confirm: 'Remove project from team. Are you sure?', method: :delete, class: "btn btn-remove small", id: "relegate_project_#{project.id}" | 87 | = link_to 'Relegate', admin_team_project_path(@team, project), confirm: 'Remove project from team. Are you sure?', method: :delete, class: "btn btn-remove small", id: "relegate_project_#{project.id}" |
88 | 88 |
app/views/admin/users/_form.html.haml
@@ -63,10 +63,10 @@ | @@ -63,10 +63,10 @@ | ||
63 | .alert.alert-error | 63 | .alert.alert-error |
64 | - if @admin_user.blocked | 64 | - if @admin_user.blocked |
65 | %p This user is blocked and is not able to login to GitLab | 65 | %p This user is blocked and is not able to login to GitLab |
66 | - = link_to 'Unblock User', unblock_admin_user_path(@admin_user), method: :put, class: "btn small" | 66 | + = link_to 'Unblock User', unblock_admin_user_path(@admin_user), method: :put, class: "btn btn-small" |
67 | - else | 67 | - else |
68 | %p Blocked users will be removed from all projects & will not be able to login to GitLab. | 68 | %p Blocked users will be removed from all projects & will not be able to login to GitLab. |
69 | - = link_to 'Block User', block_admin_user_path(@admin_user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn small btn-remove" | 69 | + = link_to 'Block User', block_admin_user_path(@admin_user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove" |
70 | %fieldset | 70 | %fieldset |
71 | %legend Profile | 71 | %legend Profile |
72 | .clearfix | 72 | .clearfix |
app/views/admin/users/index.html.haml
1 | %h3.page_title | 1 | %h3.page_title |
2 | Users | 2 | Users |
3 | - = link_to 'New User', new_admin_user_path, class: "btn small right" | 3 | + = link_to 'New User', new_admin_user_path, class: "btn btn-small right" |
4 | %br | 4 | %br |
5 | 5 | ||
6 | = form_tag admin_users_path, method: :get, class: 'form-inline' do | 6 | = form_tag admin_users_path, method: :get, class: 'form-inline' do |
@@ -44,15 +44,15 @@ | @@ -44,15 +44,15 @@ | ||
44 | %td= user.username | 44 | %td= user.username |
45 | %td= user.email | 45 | %td= user.email |
46 | %td= user.users_projects.count | 46 | %td= user.users_projects.count |
47 | - %td= link_to 'Edit', edit_admin_user_path(user), id: "edit_#{dom_id(user)}", class: "btn small" | 47 | + %td= link_to 'Edit', edit_admin_user_path(user), id: "edit_#{dom_id(user)}", class: "btn btn-small" |
48 | %td.bgred | 48 | %td.bgred |
49 | - if user == current_user | 49 | - if user == current_user |
50 | %span.cred It's you! | 50 | %span.cred It's you! |
51 | - else | 51 | - else |
52 | - if user.blocked | 52 | - if user.blocked |
53 | - = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn small success" | 53 | + = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success" |
54 | - else | 54 | - else |
55 | - = link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn small btn-remove" | ||
56 | - = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?", method: :delete, class: "btn small btn-remove" | 55 | + = link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove" |
56 | + = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?", method: :delete, class: "btn btn-small btn-remove" | ||
57 | 57 | ||
58 | = paginate @admin_users, theme: "admin" | 58 | = paginate @admin_users, theme: "admin" |
app/views/admin/users/show.html.haml
@@ -123,5 +123,5 @@ | @@ -123,5 +123,5 @@ | ||
123 | %tr | 123 | %tr |
124 | %td= link_to project.name_with_namespace, admin_project_path(project) | 124 | %td= link_to project.name_with_namespace, admin_project_path(project) |
125 | %td= tm.project_access_human | 125 | %td= tm.project_access_human |
126 | - %td= link_to 'Edit Access', edit_admin_project_member_path(project, tm.user), class: "btn small" | ||
127 | - %td= link_to 'Remove from team', admin_project_member_path(project, tm.user), confirm: 'Are you sure?', method: :delete, class: "btn small btn-remove" | 126 | + %td= link_to 'Edit Access', edit_admin_project_member_path(project, tm.user), class: "btn btn-small" |
127 | + %td= link_to 'Remove from team', admin_project_member_path(project, tm.user), confirm: 'Are you sure?', method: :delete, class: "btn btn-small btn-remove" |
app/views/commits/_diffs.html.haml
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | - if diff.a_mode && diff.b_mode && diff.a_mode != diff.b_mode | 33 | - if diff.a_mode && diff.b_mode && diff.a_mode != diff.b_mode |
34 | %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}" | 34 | %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}" |
35 | 35 | ||
36 | - = link_to project_tree_path(@project, tree_join(@commit.id, diff.new_path)), {:class => 'btn very_small right view-file'} do | 36 | + = link_to project_tree_path(@project, tree_join(@commit.id, diff.new_path)), {:class => 'btn btn-tiny right view-file'} do |
37 | View file @ | 37 | View file @ |
38 | %span.commit-short-id= @commit.short_id(6) | 38 | %span.commit-short-id= @commit.short_id(6) |
39 | 39 |
app/views/dashboard/_groups.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | (#{groups.count}) | 5 | (#{groups.count}) |
6 | - if current_user.can_create_group? | 6 | - if current_user.can_create_group? |
7 | %span.right | 7 | %span.right |
8 | - = link_to new_group_path, class: "btn very_small info" do | 8 | + = link_to new_group_path, class: "btn btn-tiny info" do |
9 | %i.icon-plus | 9 | %i.icon-plus |
10 | New Group | 10 | New Group |
11 | %ul.well-list | 11 | %ul.well-list |
app/views/dashboard/_projects.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | (#{@projects_count}) | 5 | (#{@projects_count}) |
6 | - if current_user.can_create_project? | 6 | - if current_user.can_create_project? |
7 | %span.right | 7 | %span.right |
8 | - = link_to new_project_path, class: "btn very_small info" do | 8 | + = link_to new_project_path, class: "btn btn-tiny info" do |
9 | %i.icon-plus | 9 | %i.icon-plus |
10 | New Project | 10 | New Project |
11 | 11 |
app/views/dashboard/_teams.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | %small | 4 | %small |
5 | (#{@teams.count}) | 5 | (#{@teams.count}) |
6 | %span.right | 6 | %span.right |
7 | - = link_to new_team_path, class: "btn very_small info" do | 7 | + = link_to new_team_path, class: "btn btn-tiny info" do |
8 | %i.icon-plus | 8 | %i.icon-plus |
9 | New Team | 9 | New Team |
10 | %ul.well-list | 10 | %ul.well-list |
app/views/dashboard/projects.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | (#{@projects.total_count}) | 4 | (#{@projects.total_count}) |
5 | - if current_user.can_create_project? | 5 | - if current_user.can_create_project? |
6 | %span.right | 6 | %span.right |
7 | - = link_to new_project_path, class: "btn very_small info" do | 7 | + = link_to new_project_path, class: "btn btn-tiny info" do |
8 | %i.icon-plus | 8 | %i.icon-plus |
9 | New Project | 9 | New Project |
10 | 10 |
app/views/deploy_keys/_show.html.haml
@@ -8,5 +8,5 @@ | @@ -8,5 +8,5 @@ | ||
8 | = time_ago_in_words(key.created_at) | 8 | = time_ago_in_words(key.created_at) |
9 | ago | 9 | ago |
10 | %td | 10 | %td |
11 | - = link_to 'Remove', project_deploy_key_path(key.project, key), confirm: 'Are you sure?', method: :delete, class: "danger btn delete-key small right" | 11 | + = link_to 'Remove', project_deploy_key_path(key.project, key), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove delete-key btn-small right" |
12 | 12 |
app/views/deploy_keys/index.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | Deploy keys allow read-only access to repository. It matches perfectly for CI, staging or production servers. | 4 | Deploy keys allow read-only access to repository. It matches perfectly for CI, staging or production servers. |
5 | 5 | ||
6 | - if can? current_user, :admin_project, @project | 6 | - if can? current_user, :admin_project, @project |
7 | - = link_to new_project_deploy_key_path(@project), class: "btn small", title: "New Deploy Key" do | 7 | + = link_to new_project_deploy_key_path(@project), class: "btn btn-small", title: "New Deploy Key" do |
8 | Add Deploy Key | 8 | Add Deploy Key |
9 | - if @keys.any? | 9 | - if @keys.any? |
10 | %table | 10 | %table |
app/views/deploy_keys/show.html.haml
@@ -11,4 +11,4 @@ | @@ -11,4 +11,4 @@ | ||
11 | %hr | 11 | %hr |
12 | %pre= @key.key | 12 | %pre= @key.key |
13 | .right | 13 | .right |
14 | - = link_to 'Remove', project_deploy_key_path(@key.project, @key), confirm: 'Are you sure?', method: :delete, class: "danger btn delete-key" | 14 | + = link_to 'Remove', project_deploy_key_path(@key.project, @key), confirm: 'Are you sure?', method: :delete, class: "btn-remove btn delete-key" |
app/views/groups/_projects.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | (#{projects.count}) | 5 | (#{projects.count}) |
6 | - if can? current_user, :manage_group, @group | 6 | - if can? current_user, :manage_group, @group |
7 | %span.right | 7 | %span.right |
8 | - = link_to new_project_path(namespace_id: @group.id), class: "btn very_small info" do | 8 | + = link_to new_project_path(namespace_id: @group.id), class: "btn btn-tiny info" do |
9 | %i.icon-plus | 9 | %i.icon-plus |
10 | New Project | 10 | New Project |
11 | %ul.well-list | 11 | %ul.well-list |
app/views/groups/show.html.haml
1 | .projects | 1 | .projects |
2 | .activities.span8 | 2 | .activities.span8 |
3 | = render "events/event_last_push", event: @last_push | 3 | = render "events/event_last_push", event: @last_push |
4 | - = link_to dashboard_path, class: 'btn very_small' do | 4 | + = link_to dashboard_path, class: 'btn btn-tiny' do |
5 | ← To dashboard | 5 | ← To dashboard |
6 | | 6 | |
7 | %span.cgray You will only see events from projects in this group | 7 | %span.cgray You will only see events from projects in this group |
app/views/hooks/index.html.haml
@@ -38,5 +38,5 @@ | @@ -38,5 +38,5 @@ | ||
38 | %span.monospace= hook.url | 38 | %span.monospace= hook.url |
39 | %td | 39 | %td |
40 | .right | 40 | .right |
41 | - = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn small grouped" | ||
42 | - = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "danger btn small grouped" | 41 | + = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped" |
42 | + = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped" |
app/views/issues/_show.html.haml
@@ -4,15 +4,15 @@ | @@ -4,15 +4,15 @@ | ||
4 | = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) | 4 | = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) |
5 | .right | 5 | .right |
6 | - if issue.notes.any? | 6 | - if issue.notes.any? |
7 | - %span.btn.small.disabled.grouped | 7 | + %span.btn.btn-small.disabled.grouped |
8 | %i.icon-comment | 8 | %i.icon-comment |
9 | = issue.notes.count | 9 | = issue.notes.count |
10 | - if can? current_user, :modify_issue, issue | 10 | - if can? current_user, :modify_issue, issue |
11 | - if issue.closed | 11 | - if issue.closed |
12 | - = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {closed: false }, status_only: true), method: :put, class: "btn small grouped reopen_issue", remote: true | 12 | + = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {closed: false }, status_only: true), method: :put, class: "btn btn-small grouped reopen_issue", remote: true |
13 | - else | 13 | - else |
14 | - = link_to 'Close', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "btn small grouped close_issue", remote: true | ||
15 | - = link_to edit_project_issue_path(issue.project, issue), class: "btn small edit-issue-link grouped" do | 14 | + = link_to 'Close', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "btn btn-small grouped close_issue", remote: true |
15 | + = link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do | ||
16 | %i.icon-edit | 16 | %i.icon-edit |
17 | Edit | 17 | Edit |
18 | 18 |
app/views/keys/_show.html.haml
@@ -8,5 +8,5 @@ | @@ -8,5 +8,5 @@ | ||
8 | = time_ago_in_words(key.created_at) | 8 | = time_ago_in_words(key.created_at) |
9 | ago | 9 | ago |
10 | %td | 10 | %td |
11 | - = link_to 'Remove', key, confirm: 'Are you sure?', method: :delete, class: "btn small btn-remove delete-key right" | 11 | + = link_to 'Remove', key, confirm: 'Are you sure?', method: :delete, class: "btn btn-small btn-remove delete-key right" |
12 | 12 |
app/views/merge_requests/_merge_request.html.haml
@@ -2,19 +2,19 @@ | @@ -2,19 +2,19 @@ | ||
2 | .right | 2 | .right |
3 | .left | 3 | .left |
4 | - if merge_request.merged? | 4 | - if merge_request.merged? |
5 | - %span.btn.small.disabled.grouped | 5 | + %span.btn.btn-small.disabled.grouped |
6 | %strong | 6 | %strong |
7 | %i.icon-ok | 7 | %i.icon-ok |
8 | = "MERGED" | 8 | = "MERGED" |
9 | - if merge_request.notes.any? | 9 | - if merge_request.notes.any? |
10 | - %span.btn.small.disabled.grouped | 10 | + %span.btn.btn-small.disabled.grouped |
11 | %i.icon-comment | 11 | %i.icon-comment |
12 | = merge_request.mr_and_commit_notes.count | 12 | = merge_request.mr_and_commit_notes.count |
13 | - if merge_request.milestone_id? | 13 | - if merge_request.milestone_id? |
14 | - %span.btn.small.disabled.grouped | 14 | + %span.btn.btn-small.disabled.grouped |
15 | %i.icon-time | 15 | %i.icon-time |
16 | = merge_request.milestone.title | 16 | = merge_request.milestone.title |
17 | - %span.btn.small.disabled.grouped | 17 | + %span.btn.btn-small.disabled.grouped |
18 | = merge_request.source_branch | 18 | = merge_request.source_branch |
19 | → | 19 | → |
20 | = merge_request.target_branch | 20 | = merge_request.target_branch |
app/views/merge_requests/show/_mr_accept.html.haml
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | .automerge_widget.cannot_be_merged{style: "display:none"} | 31 | .automerge_widget.cannot_be_merged{style: "display:none"} |
32 | .alert.alert-info | 32 | .alert.alert-info |
33 | %span | 33 | %span |
34 | - = link_to "Show how to merge", "#", class: "how_to_merge_link btn small padded", title: "How To Merge" | 34 | + = link_to "Show how to merge", "#", class: "how_to_merge_link btn btn-small padded", title: "How To Merge" |
35 | | 35 | |
36 | %strong This request can't be merged with GitLab. You should do it manually | 36 | %strong This request can't be merged with GitLab. You should do it manually |
37 | 37 |
app/views/milestones/_milestone.html.haml
1 | %li{class: "milestone milestone-#{milestone.closed ? 'closed' : 'open'}", id: dom_id(milestone) } | 1 | %li{class: "milestone milestone-#{milestone.closed ? 'closed' : 'open'}", id: dom_id(milestone) } |
2 | .right | 2 | .right |
3 | - if can?(current_user, :admin_milestone, milestone.project) and milestone.open? | 3 | - if can?(current_user, :admin_milestone, milestone.project) and milestone.open? |
4 | - = link_to edit_project_milestone_path(milestone.project, milestone), class: "btn small edit-milestone-link grouped" do | 4 | + = link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do |
5 | %i.icon-edit | 5 | %i.icon-edit |
6 | Edit | 6 | Edit |
7 | %h4 | 7 | %h4 |
app/views/milestones/index.html.haml
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | %h3.page_title | 3 | %h3.page_title |
4 | Milestones | 4 | Milestones |
5 | - if can? current_user, :admin_milestone, @project | 5 | - if can? current_user, :admin_milestone, @project |
6 | - = link_to "New Milestone", new_project_milestone_path(@project), class: "right btn small", title: "New Milestone" | 6 | + = link_to "New Milestone", new_project_milestone_path(@project), class: "right btn btn-small", title: "New Milestone" |
7 | %br | 7 | %br |
8 | %div.ui-box | 8 | %div.ui-box |
9 | .title | 9 | .title |
app/views/milestones/show.html.haml
@@ -10,12 +10,12 @@ | @@ -10,12 +10,12 @@ | ||
10 | .span6 | 10 | .span6 |
11 | .right | 11 | .right |
12 | - unless @milestone.closed | 12 | - unless @milestone.closed |
13 | - = link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn small grouped", title: "New Issue" do | 13 | + = link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn btn-small grouped", title: "New Issue" do |
14 | %i.icon-plus | 14 | %i.icon-plus |
15 | New Issue | 15 | New Issue |
16 | = link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link small grouped" | 16 | = link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link small grouped" |
17 | - if can?(current_user, :admin_milestone, @project) | 17 | - if can?(current_user, :admin_milestone, @project) |
18 | - = link_to edit_project_milestone_path(@project, @milestone), class: "btn small grouped" do | 18 | + = link_to edit_project_milestone_path(@project, @milestone), class: "btn btn-small grouped" do |
19 | %i.icon-edit | 19 | %i.icon-edit |
20 | Edit | 20 | Edit |
21 | 21 | ||
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | %hr | 25 | %hr |
26 | %p | 26 | %p |
27 | %span All issues for this milestone are closed. You may close milestone now. | 27 | %span All issues for this milestone are closed. You may close milestone now. |
28 | - = link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {closed: true }), method: :put, class: "btn small btn-remove" | 28 | + = link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {closed: true }), method: :put, class: "btn btn-small btn-remove" |
29 | 29 | ||
30 | .ui-box.ui-box-show | 30 | .ui-box.ui-box-show |
31 | .ui-box-head | 31 | .ui-box-head |
app/views/notes/_form.html.haml
@@ -26,7 +26,7 @@ | @@ -26,7 +26,7 @@ | ||
26 | .attachment | 26 | .attachment |
27 | %h6 Attachment: | 27 | %h6 Attachment: |
28 | .file_name.js-attachment-filename File name... | 28 | .file_name.js-attachment-filename File name... |
29 | - %a.choose-btn.btn.small.js-choose-note-attachment-button Choose File ... | 29 | + %a.choose-btn.btn.btn-small.js-choose-note-attachment-button Choose File ... |
30 | .hint Any file up to 10 MB | 30 | .hint Any file up to 10 MB |
31 | 31 | ||
32 | = f.file_field :attachment, class: "js-note-attachment-input" | 32 | = f.file_field :attachment, class: "js-note-attachment-input" |
app/views/profiles/show.html.haml
@@ -65,13 +65,13 @@ | @@ -65,13 +65,13 @@ | ||
65 | %li | 65 | %li |
66 | %p | 66 | %p |
67 | Need a group for several dependent projects? | 67 | Need a group for several dependent projects? |
68 | - = link_to new_group_path, class: "btn very_small" do | 68 | + = link_to new_group_path, class: "btn btn-tiny" do |
69 | Create a group | 69 | Create a group |
70 | - if current_user.can_create_team? | 70 | - if current_user.can_create_team? |
71 | %li | 71 | %li |
72 | %p | 72 | %p |
73 | Want to share a team between projects? | 73 | Want to share a team between projects? |
74 | - = link_to new_team_path, class: "btn very_small" do | 74 | + = link_to new_team_path, class: "btn btn-tiny" do |
75 | Create a team | 75 | Create a team |
76 | %fieldset | 76 | %fieldset |
77 | %legend | 77 | %legend |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | %span.right | 90 | %span.right |
91 | = link_to pluralize(current_user.keys.count, 'key'), keys_path | 91 | = link_to pluralize(current_user.keys.count, 'key'), keys_path |
92 | .padded | 92 | .padded |
93 | - = link_to "Add Public Key", new_key_path, class: "btn small" | 93 | + = link_to "Add Public Key", new_key_path, class: "btn btn-small" |
94 | 94 | ||
95 | .form-actions | 95 | .form-actions |
96 | = f.submit 'Save', class: "btn btn-save" | 96 | = f.submit 'Save', class: "btn btn-save" |
app/views/projects/_new_form.html.haml
@@ -24,11 +24,11 @@ | @@ -24,11 +24,11 @@ | ||
24 | .clearfix | 24 | .clearfix |
25 | .input.light | 25 | .input.light |
26 | Need a group for several dependent projects? | 26 | Need a group for several dependent projects? |
27 | - = link_to new_group_path, class: "btn very_small" do | 27 | + = link_to new_group_path, class: "btn btn-tiny" do |
28 | Create a group | 28 | Create a group |
29 | - if current_user.can_create_team? | 29 | - if current_user.can_create_team? |
30 | .clearfix | 30 | .clearfix |
31 | .input.light | 31 | .input.light |
32 | Want to share a project between team? | 32 | Want to share a project between team? |
33 | - = link_to new_team_path, class: "btn very_small" do | 33 | + = link_to new_team_path, class: "btn btn-tiny" do |
34 | Create a team | 34 | Create a team |
app/views/protected_branches/index.html.haml
@@ -51,4 +51,4 @@ | @@ -51,4 +51,4 @@ | ||
51 | (branch was removed from repository) | 51 | (branch was removed from repository) |
52 | %td | 52 | %td |
53 | - if can? current_user, :admin_project, @project | 53 | - if can? current_user, :admin_project, @project |
54 | - = link_to 'Unprotect', [@project, branch], confirm: 'Are you sure?', method: :delete, class: "danger btn small" | 54 | + = link_to 'Unprotect', [@project, branch], confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small" |
app/views/snippets/_blob.html.haml
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | %i.icon-file | 3 | %i.icon-file |
4 | %strong= @snippet.file_name | 4 | %strong= @snippet.file_name |
5 | %span.options | 5 | %span.options |
6 | - = link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn very_small", target: "_blank" | 6 | + = link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn btn-tiny", target: "_blank" |
7 | .file_content.code | 7 | .file_content.code |
8 | - unless @snippet.content.empty? | 8 | - unless @snippet.content.empty? |
9 | %div{class: user_color_scheme_class} | 9 | %div{class: user_color_scheme_class} |
app/views/snippets/index.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | %small share code pastes with others out of git repository | 5 | %small share code pastes with others out of git repository |
6 | 6 | ||
7 | - if can? current_user, :write_snippet, @project | 7 | - if can? current_user, :write_snippet, @project |
8 | - = link_to new_project_snippet_path(@project), class: "btn small add_new right", title: "New Snippet" do | 8 | + = link_to new_project_snippet_path(@project), class: "btn btn-small add_new right", title: "New Snippet" do |
9 | Add new snippet | 9 | Add new snippet |
10 | %br | 10 | %br |
11 | %table | 11 | %table |
app/views/snippets/show.html.haml
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | = @snippet.title | 4 | = @snippet.title |
5 | %small= @snippet.file_name | 5 | %small= @snippet.file_name |
6 | - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user | 6 | - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user |
7 | - = link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn small right" | 7 | + = link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn btn-small right" |
8 | 8 | ||
9 | %br | 9 | %br |
10 | %div= render 'blob' | 10 | %div= render 'blob' |
app/views/team_members/_show.html.haml
@@ -19,10 +19,10 @@ | @@ -19,10 +19,10 @@ | ||
19 | - if current_user == user | 19 | - if current_user == user |
20 | %span.btn.disabled This is you! | 20 | %span.btn.disabled This is you! |
21 | - if @project.namespace_owner == user | 21 | - if @project.namespace_owner == user |
22 | - %span.btn.disabled.success Owner | 22 | + %span.btn.disabled.btn-success Owner |
23 | - elsif user.blocked | 23 | - elsif user.blocked |
24 | %span.btn.disabled.blocked Blocked | 24 | %span.btn.disabled.blocked Blocked |
25 | - elsif allow_admin | 25 | - elsif allow_admin |
26 | - = link_to project_team_member_path(@project, user), confirm: remove_from_project_team_message(@project, user), method: :delete, class: "very_small btn btn-remove" do | 26 | + = link_to project_team_member_path(@project, user), confirm: remove_from_project_team_message(@project, user), method: :delete, class: "btn-tiny btn btn-remove" do |
27 | %i.icon-minus.icon-white | 27 | %i.icon-minus.icon-white |
28 | 28 |
app/views/team_members/index.html.haml
@@ -8,9 +8,9 @@ | @@ -8,9 +8,9 @@ | ||
8 | 8 | ||
9 | - if can? current_user, :admin_team_member, @project | 9 | - if can? current_user, :admin_team_member, @project |
10 | %span.right | 10 | %span.right |
11 | - = link_to import_project_team_members_path(@project), class: "btn small grouped", title: "Import team from another project" do | 11 | + = link_to import_project_team_members_path(@project), class: "btn btn-small grouped", title: "Import team from another project" do |
12 | Import team from another project | 12 | Import team from another project |
13 | - = link_to available_project_teams_path(@project), class: "btn small grouped", title: "Assign project to team of users" do | 13 | + = link_to available_project_teams_path(@project), class: "btn btn-small grouped", title: "Assign project to team of users" do |
14 | Assign project to Team of users | 14 | Assign project to Team of users |
15 | = link_to new_project_team_member_path(@project), class: "btn btn-primary small grouped", title: "New Team Member" do | 15 | = link_to new_project_team_member_path(@project), class: "btn btn-primary small grouped", title: "New Team Member" do |
16 | New Team Member | 16 | New Team Member |
app/views/teams/_projects.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | (#{projects.count}) | 5 | (#{projects.count}) |
6 | - if can? current_user, :manage_user_team, @team | 6 | - if can? current_user, :manage_user_team, @team |
7 | %span.right | 7 | %span.right |
8 | - = link_to new_team_project_path(@team), class: "btn very_small info" do | 8 | + = link_to new_team_project_path(@team), class: "btn btn-tiny info" do |
9 | %i.icon-plus | 9 | %i.icon-plus |
10 | Assign Project | 10 | Assign Project |
11 | %ul.well-list | 11 | %ul.well-list |
app/views/teams/members/_show.html.haml
@@ -23,9 +23,9 @@ | @@ -23,9 +23,9 @@ | ||
23 | - if current_user == user | 23 | - if current_user == user |
24 | %span.btn.disabled This is you! | 24 | %span.btn.disabled This is you! |
25 | - if @team.owner == user | 25 | - if @team.owner == user |
26 | - %span.btn.disabled.success Owner | 26 | + %span.btn.disabled.btn-success Owner |
27 | - elsif user.blocked | 27 | - elsif user.blocked |
28 | %span.btn.disabled.blocked Blocked | 28 | %span.btn.disabled.blocked Blocked |
29 | - elsif allow_admin | 29 | - elsif allow_admin |
30 | - = link_to team_member_path(@team, user), confirm: remove_from_user_team_message(@team, user), method: :delete, class: "very_small btn btn-remove" do | 30 | + = link_to team_member_path(@team, user), confirm: remove_from_user_team_message(@team, user), method: :delete, class: "btn-tiny btn btn-remove" do |
31 | %i.icon-minus.icon-white | 31 | %i.icon-minus.icon-white |
app/views/teams/projects/index.html.haml
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | 29 | ||
30 | - if current_user.can?(:admin_user_team, @team) | 30 | - if current_user.can?(:admin_user_team, @team) |
31 | %td.bgred | 31 | %td.bgred |
32 | - = link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn small" | 32 | + = link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn btn-small" |
33 | = 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" | 33 | = 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" |
34 | 34 | ||
35 | - else | 35 | - else |
app/views/teams/show.html.haml
1 | .projects | 1 | .projects |
2 | .activities.span8 | 2 | .activities.span8 |
3 | - = link_to dashboard_path, class: 'btn very_small' do | 3 | + = link_to dashboard_path, class: 'btn btn-tiny' do |
4 | ← To dashboard | 4 | ← To dashboard |
5 | | 5 | |
6 | %span.cgray Events and projects are filtered in scope of team | 6 | %span.cgray Events and projects are filtered in scope of team |
app/views/tree/_blob_actions.html.haml
1 | .btn-group.tree-btn-group | 1 | .btn-group.tree-btn-group |
2 | -# only show edit link for text files | 2 | -# only show edit link for text files |
3 | - if @tree.text? | 3 | - if @tree.text? |
4 | - = link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small", disabled: !allowed_tree_edit? | ||
5 | - = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank" | 4 | + = link_to "edit", edit_project_tree_path(@project, @id), class: "btn btn-tiny", disabled: !allowed_tree_edit? |
5 | + = link_to "raw", project_blob_path(@project, @id), class: "btn btn-tiny", target: "_blank" | ||
6 | -# only show normal/blame view links for text files | 6 | -# only show normal/blame view links for text files |
7 | - if @tree.text? | 7 | - if @tree.text? |
8 | - if current_page? project_blame_path(@project, @id) | 8 | - if current_page? project_blame_path(@project, @id) |
9 | - = link_to "normal view", project_tree_path(@project, @id), class: "btn very_small" | 9 | + = link_to "normal view", project_tree_path(@project, @id), class: "btn btn-tiny" |
10 | - else | 10 | - else |
11 | - = link_to "blame", project_blame_path(@project, @id), class: "btn very_small" | ||
12 | - = link_to "history", project_commits_path(@project, @id), class: "btn very_small" | 11 | + = link_to "blame", project_blame_path(@project, @id), class: "btn btn-tiny" |
12 | + = link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny" |
app/views/tree/_tree.html.haml
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | %th Name | 24 | %th Name |
25 | %th Last Update | 25 | %th Last Update |
26 | %th Last Commit | 26 | %th Last Commit |
27 | - %th= link_to "history", project_commits_path(@project, @id), class: "btn very_small right" | 27 | + %th= link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny right" |
28 | 28 | ||
29 | - if tree.up_dir? | 29 | - if tree.up_dir? |
30 | %tr.tree-item | 30 | %tr.tree-item |
app/views/tree/edit.html.haml
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | %strong= @ref | 10 | %strong= @ref |
11 | %span.options | 11 | %span.options |
12 | .btn-group.tree-btn-group | 12 | .btn-group.tree-btn-group |
13 | - = link_to "Cancel", project_tree_path(@project, @id), class: "btn very_small btn-cancel", confirm: "Are you sure?" | 13 | + = link_to "Cancel", project_tree_path(@project, @id), class: "btn btn-tiny btn-cancel", confirm: "Are you sure?" |
14 | .file_content.code | 14 | .file_content.code |
15 | %pre#editor= @tree.data | 15 | %pre#editor= @tree.data |
16 | 16 |
app/views/users/show.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | = @user.name | 5 | = @user.name |
6 | - if @user == current_user | 6 | - if @user == current_user |
7 | .right | 7 | .right |
8 | - = link_to profile_path, class: 'btn small' do | 8 | + = link_to profile_path, class: 'btn btn-small' do |
9 | %i.icon-edit | 9 | %i.icon-edit |
10 | Edit Profile | 10 | Edit Profile |
11 | %br | 11 | %br |
app/views/wikis/edit.html.haml
@@ -4,5 +4,5 @@ | @@ -4,5 +4,5 @@ | ||
4 | 4 | ||
5 | .right | 5 | .right |
6 | - if can? current_user, :admin_wiki, @project | 6 | - if can? current_user, :admin_wiki, @project |
7 | - = link_to project_wiki_path(@project, @wiki), confirm: "Are you sure you want to delete this page?", method: :delete, class: "btn small btn-remove" do | 7 | + = link_to project_wiki_path(@project, @wiki), confirm: "Are you sure you want to delete this page?", method: :delete, class: "btn btn-small btn-remove" do |
8 | Delete this page | 8 | Delete this page |
9 | \ No newline at end of file | 9 | \ No newline at end of file |
app/views/wikis/show.html.haml
1 | %h3.page_title | 1 | %h3.page_title |
2 | = @wiki.title | 2 | = @wiki.title |
3 | %span.right | 3 | %span.right |
4 | - = link_to pages_project_wikis_path(@project), class: "btn small grouped" do | 4 | + = link_to pages_project_wikis_path(@project), class: "btn btn-small grouped" do |
5 | Pages | 5 | Pages |
6 | - if can? current_user, :write_wiki, @project | 6 | - if can? current_user, :write_wiki, @project |
7 | - = link_to history_project_wiki_path(@project, @wiki), class: "btn small grouped" do | 7 | + = link_to history_project_wiki_path(@project, @wiki), class: "btn btn-small grouped" do |
8 | History | 8 | History |
9 | - = link_to edit_project_wiki_path(@project, @wiki), class: "btn small grouped" do | 9 | + = link_to edit_project_wiki_path(@project, @wiki), class: "btn btn-small grouped" do |
10 | %i.icon-edit | 10 | %i.icon-edit |
11 | Edit | 11 | Edit |
12 | %br | 12 | %br |