smc/grandham

View on GitHub
app/views/admin/publishers/index.html.haml

Summary

Maintainability
Test Coverage
.container
  .row
    .span8
      %h3= I18n.t('publisher.publishers')
    .span4
      .pull-right
        = link_to 'Add', new_language_admin_publisher_path(current_language), class: 'btn btn-primary'

  .row
    .span12
      %table.table.table-striped.grandham-list-data-table
        %thead
          %th Name
          %th Place
          %th
        %tbody.grandham-list
          - @publishers.each do |publisher|
            %tr
              %td.tex-item
                = link_to publisher.name, language_publisher_path(publisher.language, publisher)
              %td.tex-item
                = publisher.place
              %td.tex-item
                = link_to 'edit', edit_language_admin_publisher_path(current_language, publisher)