Sha256: ad928239755a3c73aee5500d71764f0882d649e81f2f1fe37a3f3e8d025af202

Contents?: true

Size: 1.76 KB

Versions: 27

Compression:

Stored size: 1.76 KB

Contents

.grid.grid--auto.grid--flush.grid--center
  .grid__cell
    .card{ class: card_classes(:attributes, local_assigns[:active]) }
      = link_to edit_content_page_path(model), class: 'card__header' do
        %span.card__header-text= t('workarea.admin.cards.attributes.title')
        = inline_svg 'workarea/admin/icons/attributes.svg', class: 'card__icon'

      - if local_assigns[:active].blank?
        .card__body
          %ul.list-reset
            %li
              %strong= t('workarea.admin.fields.active')
              = check_box_tag 'page', 'active', model.active, disabled: true
              = segments_icons_for(model)
            %li
              %strong= t('workarea.admin.fields.show_left_navigation')
              = model.show_navigation?.to_s.titleize
            %li
              %strong= t('workarea.admin.fields.template')
              = model.template.try(:titleize).presence || '(none)'
            %li
              %strong= t('workarea.admin.fields.tags')
              = model.tags.join(', ').presence || '(none)'
            %li
              %strong= t('workarea.admin.fields.updated_at')
              #{local_time_ago(model.updated_at)}
            %li
              %strong= t('workarea.admin.fields.created_at')
              #{local_time_ago(model.created_at)}

          = link_to edit_content_page_path(model), class: 'card__button' do
            %span.button.button--small= t('workarea.admin.cards.attributes.button')

  .grid__cell
    = render 'workarea/admin/content/card', content: model.content, active: local_assigns[:active]

  .grid__cell
    = render 'workarea/admin/timeline/card', timeline: model.timeline, active: local_assigns[:active]

  .grid__cell
    = render 'workarea/admin/comments/card', commentable: model, active: local_assigns[:active]

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.15 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.11 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.10 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.9 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/content_pages/_cards.html.haml