Commit a8d0b6c4e054e3510f844328435af13a5124d8e2
Exists in
master
Merge pull request #1060 from mfrederickson/fix-1047-tracker-icon-keys
closes #1047 tracker icon buttons
Showing
2 changed files
with
21 additions
and
7 deletions
Show diff stats
app/assets/stylesheets/errbit.css.erb
... | ... | @@ -232,6 +232,14 @@ a.action { float: right; font-size: 0.9em;} |
232 | 232 | |
233 | 233 | #action-bar span.github a:before { font-family: FontAwesome; content: "\f09b"; margin-right: 8px; position: relative; top: 4px; font-size: 26px; } |
234 | 234 | |
235 | +#action-bar span a.issue-tracker-button { | |
236 | + padding-left: 5px; | |
237 | +} | |
238 | + | |
239 | +#action-bar span a.issue-tracker-button img { | |
240 | + padding-left: 10px; | |
241 | +} | |
242 | + | |
235 | 243 | /* Content */ |
236 | 244 | #content { |
237 | 245 | padding: 20px; border-top: 1px solid #C6C6C6; | ... | ... |
app/views/problems/_issue_tracker_links.html.haml
... | ... | @@ -3,15 +3,21 @@ |
3 | 3 | - tracker_type = tracker.type |
4 | 4 | - if problem.issue_link.present? |
5 | 5 | %span |
6 | - %img.button-icon{"src" => tracker_type.icons[:create]} | |
7 | - = link_to 'go to issue', problem.issue_link, :class => "goto-issue" | |
8 | - = link_to 'unlink issue', unlink_issue_app_problem_path(app, problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue" | |
6 | + = link_to problem.issue_link, :class => "goto-issue issue-tracker-button" do | |
7 | + %img.button-icon{"src" => tracker_type.icons[:goto]} | |
8 | + go to issue | |
9 | + %span | |
10 | + = link_to unlink_issue_app_problem_path(app, problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue issue-tracker-button" do | |
11 | + %img.button-icon{"src" => tracker_type.icons[:create]} | |
12 | + unlink issue | |
9 | 13 | - elsif problem.issue_link == "pending" |
10 | 14 | %span.disabled |
11 | - %img.button-icon{"src" => tracker_type.icons[:inactive]} | |
12 | - = link_to 'creating...', '#', :class => "create-issue" | |
15 | + = link_to '#', :class => "create-issue issue-tracker-button" do | |
16 | + %img.button-icon{"src" => tracker_type.icons[:inactive]} | |
17 | + creating... | |
13 | 18 | = link_to 'retry', create_issue_app_problem_path(app, problem), :method => :post |
14 | 19 | - else |
15 | 20 | %span |
16 | - %img.button-icon{"src" => tracker_type.icons[:goto]} | |
17 | - = link_to 'create issue', create_issue_app_problem_path(app, problem), method: :post, :class => "create-issue" | |
21 | + = link_to create_issue_app_problem_path(app, problem), method: :post, :class => "create-issue issue-tracker-button" do | |
22 | + %img.button-icon{"src" => tracker_type.icons[:create]} | |
23 | + create issue | ... | ... |