Sha256: 469e004ef03240099350f8620ed958c7469c869eb780e68f79e12b4e5097259a
Contents?: true
Size: 1.12 KB
Versions: 12
Compression:
Stored size: 1.12 KB
Contents
<div class="field"> <% if f.object.pathable? %> <%= labelled_field(f.text_field(:path_segment), "Path segment", description: "Only alpanumeric characters and dashes " \ "are allowed.") %> <% else %> <div class="field"> <label>Path segment</label> <p class="description"> Unable to add a path segment, please add one to <%= link_to("this page's parent", edit_admin_page_path(f.object.parent, locale: f.object.locale, anchor: "metadata")) %> first. </p> </div> <% end %> </div> <div class="field"> <%= f.label_for :meta_image, "Image" %> <p class="description"> Image displayed when sharing on social media. Will fall back to the primary image if absent. Recommended size is at least 1200x630. </p> <%= f.image_uploader :meta_image %> </div> <% @page.template_config.metadata_blocks do |block_name, block_options| %> <%= page_block_field(f, block_name, block_options) %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems