diff --git a/app/assets/stylesheets/errbit.css.erb b/app/assets/stylesheets/errbit.css.erb index a4cfe49..ce4b071 100644 --- a/app/assets/stylesheets/errbit.css.erb +++ b/app/assets/stylesheets/errbit.css.erb @@ -232,6 +232,14 @@ a.action { float: right; font-size: 0.9em;} #action-bar span.github a:before { font-family: FontAwesome; content: "\f09b"; margin-right: 8px; position: relative; top: 4px; font-size: 26px; } +#action-bar span a.issue-tracker-button { + padding-left: 5px; +} + +#action-bar span a.issue-tracker-button img { + padding-left: 10px; +} + /* Content */ #content { padding: 20px; border-top: 1px solid #C6C6C6; diff --git a/app/views/problems/_issue_tracker_links.html.haml b/app/views/problems/_issue_tracker_links.html.haml index 850368a..642db38 100644 --- a/app/views/problems/_issue_tracker_links.html.haml +++ b/app/views/problems/_issue_tracker_links.html.haml @@ -3,15 +3,21 @@ - tracker_type = tracker.type - if problem.issue_link.present? %span - %img.button-icon{"src" => tracker_type.icons[:create]} - = link_to 'go to issue', problem.issue_link, :class => "goto-issue" - = link_to 'unlink issue', unlink_issue_app_problem_path(app, problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue" + = link_to problem.issue_link, :class => "goto-issue issue-tracker-button" do + %img.button-icon{"src" => tracker_type.icons[:goto]} + go to issue + %span + = link_to unlink_issue_app_problem_path(app, problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue issue-tracker-button" do + %img.button-icon{"src" => tracker_type.icons[:create]} + unlink issue - elsif problem.issue_link == "pending" %span.disabled - %img.button-icon{"src" => tracker_type.icons[:inactive]} - = link_to 'creating...', '#', :class => "create-issue" + = link_to '#', :class => "create-issue issue-tracker-button" do + %img.button-icon{"src" => tracker_type.icons[:inactive]} + creating... = link_to 'retry', create_issue_app_problem_path(app, problem), :method => :post - else %span - %img.button-icon{"src" => tracker_type.icons[:goto]} - = link_to 'create issue', create_issue_app_problem_path(app, problem), method: :post, :class => "create-issue" + = link_to create_issue_app_problem_path(app, problem), method: :post, :class => "create-issue issue-tracker-button" do + %img.button-icon{"src" => tracker_type.icons[:create]} + create issue -- libgit2 0.21.2