generators/section/template.liquid.tt in locomotivecms_wagon-3.0.5 vs generators/section/template.liquid.tt in locomotivecms_wagon-3.1.0.beta1

- old
+ new

@@ -178,10 +178,12 @@ <%- case setting.type -%> <%- when 'text' %> <div>{{ section.settings.<%= setting.id -%> }}</div> <%- when 'image_picker' -%> <p><img src="{{ section.settings.<%= setting.id -%> }}" /></p> + <%- when 'asset_picker' -%> + <p><a href="{{ section.settings.<%= setting.id -%> }}">{{ section.settings.<%= setting.id -%>.name }}</a></p> <%- when 'url' -%> <p><a href="{{ section.settings.<%= setting.id -%> }}" {{ section.settings.<%= setting.id -%>.new_window_attribute }}><%= setting.label -%></a></p> <%- when 'select', 'radio', 'checkbox' -%> <p><%= setting.type -%>: {{ section.settings.<%= setting.id -%> }}</p> <%- end -%> @@ -201,9 +203,11 @@ <%- case setting.type -%> <%- when 'text' %> <div>{{ block.settings.<%= setting.id -%> }}</div> <%- when 'image_picker' -%> <p><img src="{{ block.settings.<%= setting.id -%> }}" /></p> + <%- when 'asset_picker' -%> + <p><a href="{{ block.settings.<%= setting.id -%> }}">{{ block.settings.<%= setting.id -%>.name }}</a></p> <%- when 'url' -%> <p><a href="{{ block.settings.<%= setting.id -%> }}" {{ block.settings.<%= setting.id -%>.new_window_attribute }}><%= setting.label -%></a></p> <%- when 'select', 'radio', 'checkbox' -%> <p><%= setting.type -%>: {{ block.settings.<%= setting.id -%> }}</p> <%- end -%>