TokiTranslate/app/views/application/_partsofspeech.html.erb

21 lines
453 B
Plaintext
Raw Normal View History

2023-10-22 18:05:01 +00:00
<h1>Parts of Speech</h1>
2023-10-22 18:05:01 +00:00
<table>
<tr>
<td><b>Part of Speech</b></td>
<td><b>Definition</b></td>
2023-12-06 20:53:25 +00:00
<% unless current_user.blank? %>
<td><b>Translation</b></td>
<% end %>
2023-10-22 18:05:01 +00:00
</tr>
<% parts_of_speech.each do |item| %>
<tr>
<td><b><%= item.pos %></b></td>
<td><%= item.definition %></td>
2023-12-06 20:53:25 +00:00
<% unless current_user.blank? %>
<td><%= item.translations.first.definition %></td>
<% end %>
2023-10-22 18:05:01 +00:00
</tr>
<% end %>
</table>