end
def show
- @title = t ".title", :status => @issue.status.humanize, :issue_id => @issue.id
+ @title = t ".title.#{@issue.status}", :issue_id => @issue.id
@read_reports = @issue.read_reports
@unread_reports = @issue.unread_reports
@comments = @issue.comments
<% content_for :heading do %>
-<h1><%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %></h1>
+<h1><%= @title %></h1>
<p><%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %></p>
<p class="text-body-secondary">
<small>
open: Open
resolved: Resolved
show:
- title: "%{status} Issue #%{issue_id}"
+ title:
+ open: "Open Issue #%{issue_id}"
+ ignored: "Ignored Issue #%{issue_id}"
+ resolved: "Resolved Issue #%{issue_id}"
reports:
one: "%{count} report"
other: "%{count} reports"