Sha256: f0d8f9a178705172c2e9435e02a525ef617b97173ca82271b647b6535333467a

Contents?: true

Size: 1.16 KB

Versions: 14

Compression:

Stored size: 1.16 KB

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <% if @parent_link || breadcrumbs || actions.any? %>
    <div class="PageHeader-contextBar">
      <%= @parent_link %>
      <%= breadcrumbs %>
      <% if @mobile_segmented_control %>
        <%= render(@mobile_segmented_control, &@mobile_segmented_control_block) %>
      <% end %>
      <% if render_mobile_menu? %>
        <%= render(@mobile_action_menu) do |menu| %>
          <% menu.with_show_button(icon: :"kebab-horizontal", size: :small, "aria-label": @mobile_menu_label) %>
          <% @desktop_menu_block.call(menu) unless @desktop_menu_block.nil? %>
        <% end %>
      <% elsif actions.length == 1 && @mobile_action.present? %>
        <%= render(@mobile_action) { |el| @mobile_action_block.call(el) unless @mobile_action_block.nil?} %>
      <% end %>
    </div>
  <% end %>

  <div class="PageHeader-titleBar">
    <%= leading_action %>
    <%= title %>
    <% if actions.any? && show_state? %>
      <div class="PageHeader-actions">
        <% actions.each do |action| %>
          <%= action %>
        <% end %>
      </div>
    <% end %>
  </div>

  <%= description %>
  <%= tab_nav %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.47.1 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.47.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.46.1 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.46.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.45.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.44.3 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.44.2 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.44.1 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.44.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.43.1 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.43.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.42.0 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.41.1 app/components/primer/open_project/page_header.html.erb
openproject-primer_view_components-0.41.0 app/components/primer/open_project/page_header.html.erb