Sha256: 47ea9af9d7f4c956ea3008acd137b3790b0ac7d4e0cd34c6a1a5d67fe68535c7

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

- @page_title = _('Tags list')

.tags-list
  - @tags.each do |tag|
    .tag.tag-card
      %header
        .icon= icon 'tag', %w[2x fw]
        .headers
          %h3= link_to tag.name, tag, class: 'title'

      .content
        = link_to tag_projects_path(tag), class: 'btn btn--block' do
          = icon 'cog'
          = format(n_('%<nb>i project', '%<nb>i projects', tag.projects_count), nb: tag.projects_count)
        = link_to tag_articles_path(tag), class: 'btn btn--block' do
          = icon 'font'
          = format(n_('%<nb>i article', '%<nb>i articles', tag.articles_count), nb: tag.articles_count)
        = link_to tag_notes_path(tag), class: 'btn btn--block' do
          = icon 'sticky-note'
          = format(n_('%<nb>i note', '%<nb>i notes', tag.notes_count), nb: tag.notes_count)
        = link_to tag_uploads_path(tag), class: 'btn btn--block' do
          = icon 'image'
          = format(n_('%<nb>i upload', '%<nb>i uploads', tag.uploads_count), nb: tag.uploads_count)
        = link_to tag_albums_path(tag), class: 'btn btn--block' do
          = icon 'book'
          = format(n_('%<nb>i album', '%<nb>i albums', tag.albums_count), nb: tag.albums_count)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elabs-3.0.0 app/views/elabs/tags/index.html.haml
elabs-2.0.0 app/views/elabs/tags/index.html.haml
elabs-2.0.0.pre app/views/elabs/tags/index.html.haml