scinote-web/app/views/shared/sidebar/_templates_sidebar.html.erb

15 lines
517 B
Text
Raw Normal View History

<ul class="sidebar-branch">
<li class="sidebar-leaf">
<%= link_to t('sidebar.templates.protocol_templates'),
protocols_path,
class: "sidebar-link #{'selected' if active == :protocol}" %>
</li>
<% if can_view_label_templates?(current_team) %>
<li class="sidebar-leaf">
<%= link_to t('sidebar.templates.label_templates'),
label_templates_path,
class: "sidebar-link #{'selected' if active == :label}" %>
</li>
<% end %>
</ul>