Sha256: 69cca6d5cd0f36c5f463c33081b1cd67bc91d4c65160f677dad5e3e76aa08a52
Contents?: true
Size: 1.66 KB
Versions: 4
Compression:
Stored size: 1.66 KB
Contents
<%= render 'backend/breadcrumbs' %> <p class="text-xs-right"> <%= link_to icon(:plus, t('b.add')), new_backend_article_path, class: 'btn btn-primary btn-sm' %> </p> <% if @articles.any? %> <table class="table table-striped table-hover"> <thead class="thead-inverse"> <tr> <th><%= t 'b.title' %></th> <th><%= t 'b.author' %></th> <th><%= t 'b.published_at' %></th> <th><%= t 'b.visible' %></th> <th><%= t 'b.press_release' %></th> <th> </th> </tr> </thead> <tbody> <% @articles.each do |a| %> <tr class="<%= 'text-muted' if a.hidden? || a.unpublished? %>"> <td> <% if a.title.blank? %> <%= link_to edit_translation_backend_article_path(a, default_app_locale) do %> <%= icon(:exclamation_triangle) %> <%= t('b.msg.no_title_set') %> <% end %> <% else %> <%= a.title %> <% end %> </td> <td> <% if a.user.present? %> <%= link_to icon(:user, a.user.full_name), edit_backend_user_path(a.user) %> <% else %> <%= t 'b.not_set' %> <% end %> </td> <td><%= l a.published_at if a.published_at %></td> <td><%= t a.visible?.to_s %></td> <td><%= t a.press_release?.to_s %></td> <td class="text-xs-right"> <%= link_to_edit [:backend, a] %> <%= link_to_delete [:backend, a] %> </td> </tr> <% end %> </tbody> </table> <%= udongo_paginate @articles %> <% else %> <p><%= t 'b.msg.no_items' %></p> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems