Sha256: ba2b8e24c38091817dcd253e1fb42ff8e1534bd0e67146bb8d850af836cfee33

Contents?: true

Size: 1.59 KB

Versions: 8

Compression:

Stored size: 1.59 KB

Contents

script#image_template type='text/x-handlebars-template'
  .fileupload-asset id="asset_{{id}}" data-id='{{id}}'
    = link_to icon('remove', true), '/admin/assets/{{id}}', remote: true, method: :delete, title: t('admin.delete'), class: 'destroy_asset', \
       data: {confirm: t('admin.delete_confirmation')}
    .main_image title=t('admin.fileupload.main_image') = icon('home', true)
    .crop_image title=t('admin.fileupload.crop') = icon('resize-full', true)
    .rotate_image title=t('admin.fileupload.rotate') = icon('repeat', true)
    a.fileupload-file.fancybox href='{{url}}' rel='fancybox'
      img src='{{thumb_url}}' title='{{filename}}'


script#file_template type='text/x-handlebars-template'
  .fileupload-asset id="asset_{{id}}" data-id='{{id}}'
    a href='{{url}}' target='_blank' {{original_name}}
    span  ({{human_filesize}})
    = link_to icon('remove', true), '/admin/assets/{{id}}', remote: true, method: :delete, title: t('admin.delete'), \
      class: 'destroy_asset btn btn-danger btn-mini', data: {confirm: t('admin.delete_confirmation')}


script#video_template type='text/x-handlebars-template'
  .fileupload-asset id="asset_{{id}}" data-id='{{id}}'
    = link_to icon('remove', true), '/admin/assets/{{id}}', remote: true, method: :delete, title: t('admin.delete'), \
      class: 'destroy_asset btn btn-danger btn-mini', data: {confirm: t('admin.delete_confirmation')}
    video controls='true'
      source src='{{url}}'
      | Your browser does not support mp4 videos
      .video-filename
        a href='{{url}}' target='_blank' {{original_name}}
        span  ({{human_filesize}})

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ab_admin-0.8.2 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.8.1 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.8.0 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.7.0 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.6.1 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.6.0 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.5.0 app/views/admin/fileupload/_asset_templates.html.slim
ab_admin-0.4.0 app/views/admin/fileupload/_asset_templates.html.slim