- @page_title = _('Licenses') .page__actions = link_to _('New License'), new_admin_license_path, class: 'btn btn--new' %table.licenses-list %thead %tr %th= admin_order_by_link _('Name'), 'name' %th= admin_order_by_link _('URL'), 'url' %th= admin_order_by_link _('TL;DR URL'), 'tldr_url' %th= admin_order_by_link _('Icon'), 'icon' %th= admin_order_by_link _('Albums'), 'albums_count' %th= admin_order_by_link _('Articles'), 'articles_count' %th= admin_order_by_link _('Notes'), 'notes_count' %th= admin_order_by_link _('Projects'), 'projects_count' %th= admin_order_by_link _('Uploads'), 'uploads_count' %th %tbody - @licenses.each do |license| %tr.license %td= license.name %td.is-icon = link_to license.url do = icon('home', ['fw']) %td.is-icon = link_to license.tldr_url do = icon('meh', ['fw']) %td = icon(license.icon, ['fw'], 'fab') = license.icon %td.is-counter= license.albums_count %td.is-counter= license.articles_count %td.is-counter= license.notes_count %td.is-counter= license.projects_count %td.is-counter= license.uploads_count %td.actions .btn-group = admin_show_online_link license = admin_edit_link 'license', license = admin_destroy_link 'license', license