<%= content_for :page_title, @browse_page.title %>

<header class="heading-with-actions">
  <h1>
    <span class="type">Mainstream browse page</span>

    <% if @browse_page.has_parent? %>
      <%= link_to "#{@browse_page.parent.title}:", @browse_page.parent %>
    <% end %>

    <%= @browse_page.title %>
  </h1>

  <nav class="actions">
    <%= link_to 'Edit', edit_mainstream_browse_page_path(@browse_page) %>

    <% if @browse_page.may_publish? %>
      <%= link_to "Publish mainstream browse page",
                  publish_mainstream_browse_page_path(@browse_page),
                  method: :post %>
    <% end %>
  </nav>
</header>

<%= render 'shared/tags/metadata', resource: @browse_page %>
<%= render 'shared/tags/children', resource: @browse_page %>

<% if @browse_page.topics.any? %>
  <section class="children">
    <header class="heading-with-actions">
      <h2>Topics</h2>
    </header>

    <%= render 'shared/tags/table',
          resources: @browse_page.topics,
          include_children_column: false,
          empty_message: "No topics exist yet." %>
  </section>
<% end %>

<%= content_for :page_title, @browse_page.title %>

<header class="heading-with-actions">
  <h1>
    <span class="type">Mainstream browse page</span>

    <% if @browse_page.has_parent? %>
      <%= link_to "#{@browse_page.parent.title}:", @browse_page.parent %>
    <% end %>

    <%= @browse_page.title %>
  </h1>

  <nav class="actions">
    <%= link_to 'Edit', edit_mainstream_browse_page_path(@browse_page) %>

    <% if @browse_page.may_publish? %>
      <%= link_to "Publish mainstream browse page",
                  publish_mainstream_browse_page_path(@browse_page),
                  method: :post %>
    <% end %>

    <% if @browse_page.has_parent? %>
      <%= link_to 'Edit list', tag_lists_path(@browse_page) %>
    <% end %>
  </nav>
</header>

<%= render 'shared/tags/metadata', resource: @browse_page %>
<%= render 'shared/tags/children', resource: @browse_page %>

<% if @browse_page.topics.any? %>
  <section class="children">
    <header class="heading-with-actions">
      <h2>Topics</h2>
    </header>

    <%= render 'shared/tags/table',
          resources: @browse_page.topics,
          include_children_column: false,
          empty_message: "No topics exist yet." %>
  </section>
<% end %>

Add link to edit browse page lists
Add link to edit browse page lists

Users can now edit lists of browse pages.
