]> git.openstreetmap.org Git - rails.git/commitdiff
Don't interpolate type in issue title
authorAnton Khorev <tony29@yandex.ru>
Fri, 6 Dec 2024 08:15:34 +0000 (11:15 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 6 Dec 2024 08:15:34 +0000 (11:15 +0300)
app/controllers/issues_controller.rb
app/views/issues/show.html.erb
config/locales/en.yml

index 516fb68ce407cb79fb379ec63046def5f28a0c52..5cedb3c705b5eeaeb42647057cb8de3c3cec7c8b 100644 (file)
@@ -48,7 +48,7 @@ class IssuesController < ApplicationController
   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
index a58b8c5cb18b4f36c4bb1c0bf978618dc08b0255..74e7c0a4ce1f7793880c542da15d021a743c1ebc 100644 (file)
@@ -1,5 +1,5 @@
 <% 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>
index 29c416c76acab7ddcbab9419c34caf14f7663f0e..c423de766639981d375023147fe282ac9e8115c8 100644 (file)
@@ -1477,7 +1477,10 @@ en:
         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"