Commit a443a1986250f21c69f368f914ee0d119371f2de
1 parent
c797493e
Exists in
spb-stable
and in
3 other branches
fix warnings
Showing
2 changed files
with
7 additions
and
3 deletions
Show diff stats
app/controllers/projects/protected_branches_controller.rb
@@ -6,7 +6,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController | @@ -6,7 +6,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController | ||
6 | before_filter :authorize_admin_project!, only: [:destroy, :create] | 6 | before_filter :authorize_admin_project!, only: [:destroy, :create] |
7 | 7 | ||
8 | def index | 8 | def index |
9 | - @branches = @project.protected_branches.all | 9 | + @branches = @project.protected_branches.to_a |
10 | @protected_branch = @project.protected_branches.new | 10 | @protected_branch = @project.protected_branches.new |
11 | end | 11 | end |
12 | 12 |
app/views/projects/edit.html.haml
@@ -113,7 +113,9 @@ | @@ -113,7 +113,9 @@ | ||
113 | The project can be committed to. | 113 | The project can be committed to. |
114 | %br | 114 | %br |
115 | %strong Once active this project shows up in the search and on the dashboard. | 115 | %strong Once active this project shows up in the search and on the dashboard. |
116 | - = link_to 'Unarchive', unarchive_project_path(@project), confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be comitted to again.", method: :post, class: "btn btn-remove" | 116 | + = link_to 'Unarchive', unarchive_project_path(@project), |
117 | + data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be comitted to again." }, | ||
118 | + method: :post, class: "btn btn-remove" | ||
117 | - else | 119 | - else |
118 | %p | 120 | %p |
119 | Archiving the project will mark its repository as read-only. | 121 | Archiving the project will mark its repository as read-only. |
@@ -121,7 +123,9 @@ | @@ -121,7 +123,9 @@ | ||
121 | It is hidden from the dashboard and doesn't show up in searches. | 123 | It is hidden from the dashboard and doesn't show up in searches. |
122 | %br | 124 | %br |
123 | %strong Archived projects cannot be committed to! | 125 | %strong Archived projects cannot be committed to! |
124 | - = link_to 'Archive', archive_project_path(@project), confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to.", method: :post, class: "btn btn-remove" | 126 | + = link_to 'Archive', archive_project_path(@project), |
127 | + data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." }, | ||
128 | + method: :post, class: "btn btn-remove" | ||
125 | - else | 129 | - else |
126 | %p.nothing_here_message Only the project owner can archive a project | 130 | %p.nothing_here_message Only the project owner can archive a project |
127 | 131 |