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

Version Path
pages_core-3.11.0 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.10.2 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.10.1 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.9.2 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.9.1 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.9.0 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.8.3 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.8.2 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.8.1 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.8.0 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.7.0 app/views/admin/pages/_edit_metadata.html.erb
pages_core-3.6.2 app/views/admin/pages/_edit_metadata.html.erb