From fe7395a659445d19a42d5e87f451f22137de3f83 Mon Sep 17 00:00:00 2001 From: "TAKAHASHI,Toru" Date: Fri, 4 May 2018 16:00:43 +0900 Subject: [PATCH] [phase-3]use redmine's I18n#l method instead of Rails' I18n#t --- app/views/glossary_terms/index.html.erb | 6 +++--- app/views/glossary_terms/show.html.erb | 12 ++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/views/glossary_terms/index.html.erb b/app/views/glossary_terms/index.html.erb index 77ca0ca..cee5f2e 100644 --- a/app/views/glossary_terms/index.html.erb +++ b/app/views/glossary_terms/index.html.erb @@ -1,9 +1,9 @@ -

<%=t :label_glossary_terms %>

+

<%=l :label_glossary_terms %>

- + @@ -11,7 +11,7 @@ <% @glossary_terms.each do |term| %>
<%=t :field_name %><%=l :field_name %> <%=l :field_description %>
- <%= term.name %> + <%= link_to term.name, term %> <%= term.description %> diff --git a/app/views/glossary_terms/show.html.erb b/app/views/glossary_terms/show.html.erb index df2dd24..56cf6ea 100644 --- a/app/views/glossary_terms/show.html.erb +++ b/app/views/glossary_terms/show.html.erb @@ -1,10 +1,18 @@ -

<%=t :label_glossary_term %> #<%= @term.id %>

+

<%=l :label_glossary_term %> #<%= @term.id %>

<%= @term.name %>

- + + + + + + + + +
<%=t :field_description %><%=l :field_description %> <%= @term.description %>
<%=l :field_created_on %><%= format_time(@term.created_at) %>
<%=l :field_updated_on %><%= format_time(@term.updated_at) %>