Sha256: 949a08ce37277893356dcafec4b6e21c7a8d40522c267f9ac29171fbd101f131

Contents?: true

Size: 1.06 KB

Versions: 75

Compression:

Stored size: 1.06 KB

Contents

span class=[@type,role] style=("float: #{attr :float}" if attr? :float)
  - if @type == 'icon' && (@document.attr? :icons, 'font')
    - style_class = ["icon-#{@target}"]
    - style_class << "icon-#{attr :size}" if attr? :size
    - style_class << "icon-rotate-#{attr :rotate}" if attr? :rotate
    - style_class << "icon-flip-#{attr :flip}" if attr? :flip
    - if attr? :link
      a.image href=(attr :link) target=(attr :window)
        i class=style_class title=(attr :title)
    - else
      i class=style_class title=(attr :title)
  - elsif @type == 'icon' && !(@document.attr? :icons)
    - if attr? :link
      a.image href=(attr :link) target=(attr :window)
        |[#{attr :alt}]
    - else
      |[#{attr :alt}]
  - else
    - src = (@type == 'icon' ? (icon_uri @target) : (image_uri @target))
    - if attr? :link
      a.image href=(attr :link) target=(attr :window)
        img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)
    - else
      img src=src alt=(attr :alt) width=(attr :width) height=(attr :height) title=(attr :title)

Version data entries

75 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.7.pre.5 lib/resources/backends/slim/revealjs-redhat/inline_image.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/dzslides/inline_image.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.7.pre.5 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/revealjs-redhat/inline_image.html.slim
hyla-1.0.7.pre.3 lib/resources/backends/slim/dzslides/inline_image.html.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.7.pre.2 lib/resources/backends/slim/dzslides/inline_image.html.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.7.pre.1 lib/resources/backends/slim/dzslides/inline_image.html.slim
hyla-1.0.6 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.6 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.6 lib/resources/backends/slim/dzslides/inline_image.html.slim
hyla-1.0.5 lib/resources/backends/slim/html5/inline_image.html.slim
hyla-1.0.5 lib/resources/backends/slim/revealjs/inline_image.html.slim
hyla-1.0.5 lib/resources/backends/slim/dzslides/inline_image.html.slim