aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/categories/_category.html.erb
blob: c1cfa15d0e649ab4bb2390d09cde266af88585ce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                                                                         









                                                                                                     

                        
                                                          
                                                                 
                                       
                                                                                             
                                                  
                                       
                                   


                                                                                                       

         
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(category) -%>">
  <span class='title'>
    <%= category.title.presence || category.translations.detect {|t| t.title.present?}.title %>
    <span class="preview">
      <% category.translations.each do |translation| %>
        <% if translation.title.present? %>
          <%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'),
              refinery.edit_blog_admin_category_path(category, :switch_locale => translation.locale),
              :class => 'locale' %>
          <% end %>
      <% end %>
    </span>
  </span>
  <span class='actions'>
    <%= link_to refinery_icon_tag("application_edit.png"),
                refinery.edit_blog_admin_category_path(category),
                :title => t('.edit') %>
    <%= link_to refinery_icon_tag("delete.png"), refinery.blog_admin_category_path(category),
                :class => "cancel confirm-delete",
                :title => t('.delete'),
                :method => :delete,
                :data => {
                  :confirm => t('message', :scope => 'refinery.admin.delete', :title => category.title)
                } %>
  </span>
</li>