Sha256: 9bdad92adf43d18dca5cfefc51272c1ca1255a54a4953ca88a3d4108e2de2c74

Contents?: true

Size: 1.45 KB

Versions: 51

Compression:

Stored size: 1.45 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: I18n.t('.confirmations.delete') }) do
              %span.glyphicon.glyphicon-fire
              %span.btn-text= t('.destroy')

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
cmor_galleries_backend-0.0.54.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.53.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.52.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.51.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.50.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.49.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.48.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.45.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.44.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.43.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.42.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.41.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.40.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.39.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.38.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.37.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.36.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.35.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.34.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml
cmor_galleries_backend-0.0.33.pre app/views/cmor/galleries/backend/picture_galleries/_after_show_table.html.haml