Sha256: 2fbaeee58cdc7a7a50b2590f634c2ac63b218fff0b93992ccaaea1c7dd85f431

Contents?: true

Size: 402 Bytes

Versions: 23

Compression:

Stored size: 402 Bytes

Contents

<%
  init = <<~JAVASCRIPT
    promethee.definitions.push({
      name: 'Image',
      icon: #{render('promethee/components/image/icon').to_json.html_safe},
      data: {
        type: 'image',
        attributes: {
          src: 'https://picsum.photos/1920/1080/?random',
          alt: '',
          caption: ''
        }
      }
    })
  JAVASCRIPT
%>

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
promethee-1.4.0 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.26 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.25 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.24 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.23 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.22 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.21 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.20 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.19 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.18 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.17 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.16 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.15 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.13 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.12 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.11 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.10 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.9 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.7 app/views/promethee/components/image/_edit.define.html.erb
promethee-1.3.6 app/views/promethee/components/image/_edit.define.html.erb