2013-07-02 08:46:44 +00:00
|
|
|
<tr class="<%= 'disable' if category.disable %>">
|
|
|
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
|
|
|
<td>
|
|
|
|
<%= category.title_translations[locale] %>
|
|
|
|
<% if i == 0 %>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<% if is_admin?%>
|
2013-10-16 13:53:29 +00:00
|
|
|
<li><%= link_to t(:edit), edit_admin_module_app_category_path(@module_app_id, category), class: "open-slide", data: {title: t(:edit_category)} %></li>
|
2013-07-02 08:46:44 +00:00
|
|
|
<li><%= link_to show_toggle_archive_btn(category) , toggle_admin_module_app_category_path(@module_app_id, category), method: :post, remote: true, class: "archive_toggle" %></li>
|
|
|
|
<% end %>
|
|
|
|
<% if is_manager? || is_admin? %>
|
2013-10-02 04:18:20 +00:00
|
|
|
<li><%= link_to t(:category_auth), admin_authorizations_path(@module_app.key, 'category_authorization', category.id) %></li>
|
2013-07-02 08:46:44 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|