Sha256: fb3183e69ee92d7d73b5f3745f9c0675bfefc2cd89aefec2dead337a2b0a9a4f
Contents?: true
Size: 1.98 KB
Versions: 45
Compression:
Stored size: 1.98 KB
Contents
<%= render 'backend/breadcrumbs' %> <p class="text-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 width="200"><%= t 'b.published_at' %></th> <th><span data-toggle="tooltip" title="<%= t 'b.visible' %>" class="abbreviated-tooltip"><%= t 'b.msg.articles.visible_abbreviated' %></span></th> <th><span data-toggle="tooltip" title="<%= t 'b.press_release' %>" class="abbreviated-tooltip"><%= t 'b.msg.articles.press_release_abbreviated' %></span></th> <th width="60"> </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 %> <%= truncate a.title, length: 70 %> <% end %> </td> <td> <% if a.user.present? %> <%= link_to icon(:user, a.user.short_name), edit_backend_user_path(a.user) %> <% else %> <%= t 'b.not_set' %> <% end %> </td> <td class="text-right"><%= l(a.published_at, format: :short) if a.published_at %></td> <td><%= t a.visible?.to_s %></td> <td><%= t a.press_release?.to_s %></td> <td class="text-right"> <%= link_to_edit_translation [: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
45 entries across 45 versions & 1 rubygems