fix issue status label

This commit is contained in:
Alexander Machehin 2015-04-21 15:48:50 +05:00
parent a3391cc376
commit f8b2f70bc8
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class CommentPresenter < ApplicationPresenter
def issue_referenced_state def issue_referenced_state
if @referenced_issue.is_a? Issue if @referenced_issue.is_a? Issue
statuses = {'open' => 'success', 'closed' => 'important'} statuses = {'open' => 'success', 'closed' => 'danger'}
content_tag :span, t("layout.issues.status.#{@referenced_issue.status}"), class: "pull-right label label-#{statuses[@referenced_issue.status]}" content_tag :span, t("layout.issues.status.#{@referenced_issue.status}"), class: "pull-right label label-#{statuses[@referenced_issue.status]}"
else else
pull_status_label @referenced_issue.status, class: 'pull-right' pull_status_label @referenced_issue.status, class: 'pull-right'