Sha256: 181be57fddcf5e4d377305074465a1f40226be53cfe6cfb5a6c8a75bedf7f254
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
- if !show_item? upload = render 'elabs/layouts/hidden_entry', entity: upload - else .upload.upload-card %header .icon= icon 'image', %w[3x fw] .headers %h3= link_to upload.title, upload, class: 'title' %ul.informations %li = icon('user', ['fw']) %strong= _('User:') = link_to upload.user.username, upload.user %li = icon('language', ['fw']) %b= _('Language:') = link_to upload.language.name, upload.language %li = icon('license', ['fw']) %b= _('License:') = link_to upload.license.name, upload.license %li = icon('info', ['fw']) %b= _('SFW:') = boolean_icon_tag upload.sfw, 'is-sfw', 'is-nsfw' %li= render 'elabs/layouts/lists/projects', projects: upload.projects %li= render 'elabs/layouts/lists/albums', albums: upload.albums %li= render 'elabs/layouts/lists/tags', tags: upload.tags %article{ lang: upload.language.iso639_1 } = link_to upload_url(upload) do - if upload.file.variable? = image_tag main_app.url_for(upload.file.variant(image_resize_properties).processed) - elsif playable? upload.file = render 'elabs/uploads/player', file: upload.file - elsif upload.file.previewable? = image_tag main_app.url_for(upload.file.preview(image_resize_properties).processed) - else = image_tag main_app.url_for(thumbnail_preview_placeholder_file)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elabs-2.0.0 | app/views/elabs/uploads/_upload.html.haml |
elabs-2.0.0.pre | app/views/elabs/uploads/_upload.html.haml |