Sha256: 524b1cd60bf355467cb2ebcc3742df85c2519356472ff8240f62f40deb4920d6

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 Bytes

Contents

<%
  init = <<~JAVASCRIPT
    promethee.definitions.push({
      name: 'Image',
      icon: #{render('promethee/components/image/icon').to_json.html_safe},
      position: 2,
      data: {
        type: 'image',
        attributes: {
          blob: {
            id: undefined,
            name: ''
          },
          alt: '',
          caption: ''
        }
      }
    })
  JAVASCRIPT
%>

<%= content_tag :div, nil, 'ng-init': init %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
promethee-1.6.10 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.6.8 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.6.7 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.6.6 app/views/promethee/components/image/_edit.define.html.erb