% content_for :sidebar do %>
<%=l :label_view %>
<%= form_with url: project_glossary_terms_path, method: :get, local: true do |form| %>
<%= form.submit l(:label_view) %>
<% end %>
<%=l :label_glossary_term %>
<%= link_to_if_authorized l(:label_glossary_term_new),
{ controller: :glossary_terms, action: :new, project_id: @project },
class: 'icon icon-add' %>
<%=l :label_glossary_category %>
<%= link_to_if_authorized l(:label_glossary_category_new),
{ controller: :glossary_categories, action: :new, project_id: @project},
class: 'icon icon-add' %>
<%= link_to l(:label_glossary_categories),
project_glossary_categories_path %>
<%=l :label_glossary_index %>
<% l(:index_en).each_line do |line| %>
<% line.split(" ").each do |ch| %>
<%= link_to ch, project_glossary_terms_path(index: ch) %> |
<% end %>
<% end %>
<% end %>