プロジェクト

全般

プロフィール

« | » 

リビジョン c63ac320

高徹 高橋 徹 さんが約6年前に追加

[phase-9]add attributes to term

差分を表示:

app/views/glossary_terms/show.html.erb
<h3><%= @term.name %></h3>
<table>
<tr>
<th><%=l :field_name_en %></th>
<td><%= @term.name_en %></td>
</tr>
<tr>
<th><%=l :field_rubi %></th>
<td><%= @term.rubi %></td>
</tr>
<tr>
<th><%=l :field_abbr_whole %></th>
<td><%= @term.abbr_whole %></td>
</tr>
<tr>
<th><%=l :field_datatype %></th>
<td><%= @term.datatype %></td>
</tr>
<tr>
<th><%=l :field_codename %></th>
<td><%= @term.codename %></td>
</tr>
<tr>
<th><%=l :field_category %></th>
<td><%= @term.category.try!(:name) %>

他の形式にエクスポート: Unified diff