Sha256: cfd1893d90048dbf1ad483a972841fd2155c78da804e9cd13bbdd1b15efd7a73
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 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><%= 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 %> <%= truncate a.title, length: 40 %> <% 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-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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
udongo-6.0.0 | app/views/backend/articles/index.html.erb |