Sha256: 78a34c5532773c6244bc769654360fb077eb9462a49a5e5ebbac250994b749a0

Contents?: true

Size: 1.48 KB

Versions: 6

Compression:

Stored size: 1.48 KB

Contents

.row
  .col-12
    %h2= Cmor::Galleries::PictureDetail.model_name.human(count: :other)
.row.mb-4
  - @resource.picture_details.each do |picture_detail|
    .col-2.d-flex.align-items-stretch
      = bootstrap_card(image_options: { src: main_app.url_for(picture_detail.asset) }) do
        - if picture_detail.title.present?
          %h5.card-header= picture_detail.title
        - if picture_detail.description.present?
          .card-body
            %p= picture_detail.description
        .card-footer.d-flex
          .btn-group.mx-auto
            - if picture_detail.published?
              = link_to([:toggle_published, picture_detail], class: 'btn btn-xs btn-responsive btn-danger', method: :post) do
                %span.glyphicon.glyphicon-eye-close
                %span.btn-text= t('.unpublish')
            - else
              = link_to([:toggle_published, picture_detail], class: 'btn btn-xs btn-responsive btn-success', method: :post) do
                %span.glyphicon.glyphicon-eye-open
                %span.btn-text= t('.publish')
            = link_to([:edit, picture_detail], class: 'btn btn-xs btn-responsive btn-primary') do
              %span.glyphicon.glyphicon-pencil
              %span.btn-text= t('.edit')
            = link_to([picture_detail], class: 'btn btn-xs btn-responsive btn-danger', method: :delete, data: { confirm: t('rao.component.collection_table.destroy_confirmation') }) do
              %span.glyphicon.glyphicon-fire
              %span.btn-text= t('.destroy')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cmor_galleries_backend-0.0.60.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.59.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.58.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.57.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.56.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.55.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml