redmine_glossary/app/views/glossary_terms/_sidebar.html.erb

28 lines
880 B
Plaintext
Raw Normal View History

<% content_for :sidebar do %>
<h3><%=l :label_view %></h3>
<h3><%=l :label_glossary_term %></h3>
<p><%= link_to_if_authorized l(:label_glossary_term_new),
{ controller: :glossary_terms, action: :new, project_id: @project },
class: 'icon icon-add' %></p>
<h3><%=l :label_glossary_category %></h3>
<p><%= link_to_if_authorized l(:label_glossary_category_new),
{ controller: :glossary_categories, action: :new, project_id: @project},
class: 'icon icon-add' %></p>
<p><%= link_to l(:label_glossary_categories),
project_glossary_categories_path %></p>
<h3><%=l :label_glossary_index %></h3>
<table>
<% l(:index_en).each_line do |line| %>
<tr>
<% line.split(" ").each do |ch| %>
<td><%= link_to ch, project_glossary_terms_path(index: ch) %></td>
<% end %>
</tr>
<% end %>
</table>
<% end %>