From 93b6d0a5efd0dcf54deea903787dd82ab7e06cd0 Mon Sep 17 00:00:00 2001 From: Nick Recobra Date: Fri, 1 Apr 2011 13:08:54 +0400 Subject: [PATCH] Icons for issue trackers. --- app/views/errs/show.html.haml | 6 +++--- public/images/lighthouseapp_create.png | Bin 0 -> 1605 bytes public/images/lighthousehouseapp_goto.png | Bin 0 -> 1651 bytes public/images/redmine_create.png | Bin 0 -> 1510 bytes public/images/redmine_goto.png | Bin 0 -> 1555 bytes public/stylesheets/application.css | 16 ++++++++++++++++ 6 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 public/images/lighthouseapp_create.png create mode 100644 public/images/lighthousehouseapp_goto.png create mode 100644 public/images/redmine_create.png create mode 100644 public/images/redmine_goto.png diff --git a/app/views/errs/show.html.haml b/app/views/errs/show.html.haml index 7822310..ade5c90 100644 --- a/app/views/errs/show.html.haml +++ b/app/views/errs/show.html.haml @@ -12,10 +12,10 @@ - content_for :action_bar do - if @err.app.issue_tracker - if @err.issue_link.blank? - %span= link_to 'create issue', create_issue_app_err_path(@app, @err), :method => :post, :class => 'create-issue' + %span= link_to 'create issue', create_issue_app_err_path(@app, @err), :method => :post, :class => "#{@app.issue_tracker.issue_tracker_type}_create create-issue" - else - %span= link_to 'go to issue', @err.issue_link, :class => 'goto-issue' - = link_to 'clear issue', clear_issue_app_err_path(@app, @err), :method => :delete, :confirm => "Clear err issues?", :class => 'clear-issue' + %span= link_to 'go to issue', @err.issue_link, :class => "#{@app.issue_tracker.issue_tracker_type}_create goto-issue" + = link_to 'clear issue', clear_issue_app_err_path(@app, @err), :method => :delete, :confirm => "Clear err issues?", :class => "clear-issue" - if @err.unresolved? %span= link_to 'resolve', resolve_app_err_path(@app, @err), :method => :put, :confirm => err_confirm, :class => 'resolve' diff --git a/public/images/lighthouseapp_create.png b/public/images/lighthouseapp_create.png new file mode 100644 index 0000000..a28b9a0 Binary files /dev/null and b/public/images/lighthouseapp_create.png differ diff --git a/public/images/lighthousehouseapp_goto.png b/public/images/lighthousehouseapp_goto.png new file mode 100644 index 0000000..d7e468b Binary files /dev/null and b/public/images/lighthousehouseapp_goto.png differ diff --git a/public/images/redmine_create.png b/public/images/redmine_create.png new file mode 100644 index 0000000..a7f8c63 Binary files /dev/null and b/public/images/redmine_create.png differ diff --git a/public/images/redmine_goto.png b/public/images/redmine_goto.png new file mode 100644 index 0000000..39bd0ae Binary files /dev/null and b/public/images/redmine_goto.png differ diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 628d807..41ac340 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -579,6 +579,22 @@ table.errs tr.resolved td > * { background: transparent url(images/icons/thumbs-up.png) 6px 5px no-repeat; } +#action-bar a.lighthouseapp_create { + background: transparent url(/images/lighthouseapp_create.png) 6px 5px no-repeat; +} + +#action-bar a.redmine_create { + background: transparent url(/images/redmine_create.png) 6px 5px no-repeat; +} + +#action-bar a.lighthouseapp_goto { + background: transparent url(/images/lighthouseapp_goto.png) 6px 5px no-repeat; +} + +#action-bar a.redmine_goto { + background: transparent url(/images/redmine_goto.png) 6px 5px no-repeat; +} + /* Notices Pagination */ .notice-pagination { float: left; -- libgit2 0.21.2