Commit fa4c38f32b3ac8aba6411e29ff01dfe8f336981d
1 parent
2a750bf2
Exists in
master
and in
4 other branches
Fix issues close and reopen button text and styles
Showing
3 changed files
with
20 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/issues.scss
... | ... | @@ -65,6 +65,23 @@ input.check_all_issues { |
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | +.btn.close_issue { | |
69 | + color: #B94A48; | |
70 | + font-weight: bold; | |
71 | + @include shade; | |
72 | + &:hover { | |
73 | + color: #B94A48; | |
74 | + } | |
75 | +} | |
76 | +.btn.reopen_issue { | |
77 | + color: #468847; | |
78 | + font-weight: bold; | |
79 | + @include shade; | |
80 | + &:hover { | |
81 | + color: #468847; | |
82 | + } | |
83 | +} | |
84 | + | |
68 | 85 | @media (min-width: 800px) { .issues_filters select { width:160px; } } |
69 | 86 | @media (min-width: 1000px) { .issues_filters select { width:200px; } } |
70 | 87 | @media (min-width: 1200px) { .issues_filters select { width:220px; } } | ... | ... |
app/views/issues/_show.html.haml
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | - if issue.closed |
16 | 16 | = 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 |
17 | 17 | - else |
18 | - = link_to 'Resolve', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "success btn small grouped close_issue", remote: true | |
18 | + = 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 | |
19 | 19 | = link_to edit_project_issue_path(issue.project, issue), class: "btn small edit-issue-link", remote: true do |
20 | 20 | %i.icon-edit |
21 | 21 | Edit | ... | ... |
app/views/issues/show.html.haml
... | ... | @@ -8,9 +8,9 @@ |
8 | 8 | %span.right |
9 | 9 | - if can?(current_user, :admin_project, @project) || @issue.author == current_user |
10 | 10 | - if @issue.closed |
11 | - = link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped success" | |
11 | + = link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped reopen_issue" | |
12 | 12 | - else |
13 | - = link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn grouped danger", title: "Close Issue" | |
13 | + = link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue" | |
14 | 14 | - if can?(current_user, :admin_project, @project) || @issue.author == current_user |
15 | 15 | = link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do |
16 | 16 | %i.icon-edit | ... | ... |