Sha256: 4c58afd3cf470b76e83093758d2556b019fabf06b580cc2c0484d4a7c4bfbfeb
Contents?: true
Size: 1.23 KB
Versions: 6
Compression:
Stored size: 1.23 KB
Contents
<h2><%= I18n.t("terms_app.categories.show.title", name: @category.name) %></h2> <div class="float-right"> <%= link_to I18n.t("terms_app.misc.back"), categories_path, class: " btn btn-primary" %> <%= link_to I18n.t("terms_app.categories.show.new"), new_category_term_path(@category.name), class: " btn btn-success"%> </div> <div class="table-responsive"> <table class="table table-striped table-sm"> <thead> <tr> <th><%= I18n.t("terms_app.categories.show.table.id") %></th> <th><%= I18n.t("terms_app.categories.show.table.content") %></th> <th><%= I18n.t("terms_app.categories.show.table.state") %></th> <th><%= I18n.t("terms_app.categories.show.table.updated_at") %></th> <th></th> </tr> </thead> <tbody> <% @category.terms.each do |term| %> <tr> <td><%= term.id %></td> <td><%= truncate(term.description, length: 17, separator: " ", omission: '...') %></td> <td><%= I18n.t("terms_app.states.#{term.state}") %></td> <td><%= term.updated_at %></td> <td><%= link_to I18n.t("terms_app.categories.show.table.show"), category_term_path(@category.name, term) %></td> </tr> <% end %> </tbody> </table> </div>
Version data entries
6 entries across 6 versions & 1 rubygems