[phase-3]use redmine's I18n#l method instead of Rails' I18n#t
This commit is contained in:
parent
7a084fdb67
commit
fe7395a659
@ -1,9 +1,9 @@
|
|||||||
<h2><%=t :label_glossary_terms %></h2>
|
<h2><%=l :label_glossary_terms %></h2>
|
||||||
|
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=t :field_name %></th>
|
<th><%=l :field_name %></th>
|
||||||
<th><%=l :field_description %></th>
|
<th><%=l :field_description %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
<% @glossary_terms.each do |term| %>
|
<% @glossary_terms.each do |term| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name">
|
<td class="name">
|
||||||
<%= term.name %>
|
<%= link_to term.name, term %>
|
||||||
</td>
|
</td>
|
||||||
<td class="description">
|
<td class="description">
|
||||||
<%= term.description %>
|
<%= term.description %>
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
<h2><%=t :label_glossary_term %> #<%= @term.id %></h2>
|
<h2><%=l :label_glossary_term %> #<%= @term.id %></h2>
|
||||||
|
|
||||||
<h3><%= @term.name %></h3>
|
<h3><%= @term.name %></h3>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%=t :field_description %></th>
|
<th><%=l :field_description %></th>
|
||||||
<td><%= @term.description %></td>
|
<td><%= @term.description %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><%=l :field_created_on %></th>
|
||||||
|
<td><%= format_time(@term.created_at) %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><%=l :field_updated_on %></th>
|
||||||
|
<td><%= format_time(@term.updated_at) %></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user