Sha256: b0355c51aed3465c652a2edfa4e34c4f1ff12cf3e80da4180ab8aa18cd04995a

Contents?: true

Size: 332 Bytes

Versions: 70

Compression:

Stored size: 332 Bytes

Contents

<%
   key = attributes.keys.first.to_s
   widget = @current_site.widgets.where("slug = ?", key).first
%>
<% if widget.present? %>
    <% if (r = widget.renderer).present? %>
        <%= render partial: r, locals: {attributes: attributes } %>
    <% else %>
        <%= raw widget[:description].translate %>
    <% end %>
<% end  %>

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
camaleon_cms-2.3.3 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.3.2 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.3.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.3.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.2.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.2.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.1.2.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.1.1.4 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.1.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.1.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb