Commit a724c0923a51d473b351f8b08c5dc0f241d9344c
1 parent
37fe664d
Exists in
master
and in
1 other branch
Hide issue creation button when tracker is not configured.
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/models/app.rb
app/views/errs/show.html.haml
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | %strong Last Notice: |
| 11 | 11 | = last_notice_at(@err).to_s(:micro) |
| 12 | 12 | - content_for :action_bar do |
| 13 | - - if @err.app.issue_tracker | |
| 13 | + - if @err.app.issue_tracker_configured? | |
| 14 | 14 | - if @err.issue_link.blank? |
| 15 | 15 | %span= link_to 'create issue', create_issue_app_err_path(@app, @err), :method => :post, :class => "#{@app.issue_tracker.issue_tracker_type}_create create-issue" |
| 16 | 16 | - else | ... | ... |