Sha256: d28f79a2de25b9cd01a29541623d21fefe996393d7f60f6fb55a390357201478

Contents?: true

Size: 1.72 KB

Versions: 34

Compression:

Stored size: 1.72 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
            %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

34 entries across 34 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.34 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.33 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.32 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.31 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.30 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.29 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.28 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.27 app/views/workarea/admin/content_pages/_cards.html.haml
workarea-admin-3.4.26 app/views/workarea/admin/content_pages/_cards.html.haml