Commit 5bd3f7738eef52de06facbf702e071310f91f32c
1 parent
7b1eabe6
Exists in
master
and in
1 other branch
remove hiding campfire link
Showing
1 changed file
with
15 additions
and
16 deletions
Show diff stats
app/views/errs/_issue_tracker_links.html.haml
| 1 | -- unless @app.issue_tracker_configured? && @app.issue_tracker.is_a?(CampfireTracker) | |
| 2 | - - if @app.issue_tracker_configured? || current_user.github_account? | |
| 3 | - - if @problem.issue_link.present? | |
| 4 | - %span= link_to 'go to issue', @problem.issue_link, :class => "#{@problem.issue_type}_goto goto-issue" | |
| 5 | - = link_to 'unlink issue', unlink_issue_app_err_path(@app, @problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue" | |
| 6 | - - elsif @problem.issue_link == "pending" | |
| 7 | - %span.disabled= link_to 'creating...', '#', :class => "#{@problem.issue_type}_inactive create-issue" | |
| 8 | - = link_to 'retry', create_issue_app_err_path(@app, @problem), :method => :post | |
| 9 | - - else | |
| 10 | - - if @app.github_repo? | |
| 11 | - - if current_user.can_create_github_issues? | |
| 12 | - %span= link_to 'create issue', create_issue_app_err_path(@app, @problem, :tracker => 'user_github'), :method => :post, :class => "github_create create-issue" | |
| 13 | - - elsif @app.issue_tracker_configured? && @app.issue_tracker.is_a?(GithubIssuesTracker) | |
| 14 | - %span= link_to 'create issue', create_issue_app_err_path(@app, @problem), :method => :post, :class => "github_create create-issue" | |
| 15 | - - if @app.issue_tracker_configured? && !@app.issue_tracker.is_a?(GithubIssuesTracker) | |
| 16 | - %span= link_to 'create issue', create_issue_app_err_path(@app, @problem), :method => :post, :class => "#{@app.issue_tracker.label}_create create-issue" | |
| 1 | +- if @app.issue_tracker_configured? || current_user.github_account? | |
| 2 | + - if @problem.issue_link.present? | |
| 3 | + %span= link_to 'go to issue', @problem.issue_link, :class => "#{@problem.issue_type}_goto goto-issue" | |
| 4 | + = link_to 'unlink issue', unlink_issue_app_err_path(@app, @problem), :method => :delete, :data => { :confirm => "Unlink err issues?" }, :class => "unlink-issue" | |
| 5 | + - elsif @problem.issue_link == "pending" | |
| 6 | + %span.disabled= link_to 'creating...', '#', :class => "#{@problem.issue_type}_inactive create-issue" | |
| 7 | + = link_to 'retry', create_issue_app_err_path(@app, @problem), :method => :post | |
| 8 | + - else | |
| 9 | + - if @app.github_repo? | |
| 10 | + - if current_user.can_create_github_issues? | |
| 11 | + %span= link_to 'create issue', create_issue_app_err_path(@app, @problem, :tracker => 'user_github'), :method => :post, :class => "github_create create-issue" | |
| 12 | + - elsif @app.issue_tracker_configured? && @app.issue_tracker.is_a?(GithubIssuesTracker) | |
| 13 | + %span= link_to 'create issue', create_issue_app_err_path(@app, @problem), :method => :post, :class => "github_create create-issue" | |
| 14 | + - if @app.issue_tracker_configured? && !@app.issue_tracker.is_a?(GithubIssuesTracker) | |
| 15 | + %span= link_to 'create issue', create_issue_app_err_path(@app, @problem), :method => :post, :class => "#{@app.issue_tracker.label}_create create-issue" | ... | ... |