diff --git a/app/models/app.rb b/app/models/app.rb index ed11466..e2becdc 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -69,6 +69,9 @@ class App "#{self.github_url}/blob/master#{file}" end + def issue_tracker_configured? + issue_tracker && !issue_tracker.project_id.blank? + end protected def generate_api_key diff --git a/app/views/errs/show.html.haml b/app/views/errs/show.html.haml index 3f97579..d3a248b 100644 --- a/app/views/errs/show.html.haml +++ b/app/views/errs/show.html.haml @@ -10,7 +10,7 @@ %strong Last Notice: = last_notice_at(@err).to_s(:micro) - content_for :action_bar do - - if @err.app.issue_tracker + - if @err.app.issue_tracker_configured? - if @err.issue_link.blank? %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 -- libgit2 0.21.2