Sha256: 2974f02eb8fb6a8b66554702046aa942c9be499e0a96fdd5bb8285d11dc77678

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

- m = name.sub(/_uid$/, '').to_s

.field.no_label_wrap_padding.type_image{:'data-name' => name}
  .label_wrap
    .label= I18n.t(m.humanize, :scope => "models.#{resource.class.name.underscore}") + ':'
  .value
    = link_to I18n.t("common.Download"), resource.send(m).url
    .preview
      = link_to image_tag(resource.send(m).thumb('x128').url, :alt => ''), resource.send(m).url, :target => :_blank, :data => { :lightbox => true }
  .clear

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
releaf-0.1.2 app/views/releaf/base/_show.field_type_image.html.haml