Sha256: 34e7da403f3e39881e22ccd2fc8b8dc081d37c7e8c8d5a2193d18c54a5091f4b
Contents?: true
Size: 1.21 KB
Versions: 11
Compression:
Stored size: 1.21 KB
Contents
<%= render Primer::OpenProject::PageHeader.new do |header| %> <%= header.with_title(variant: variant) { title } %> <%= header.with_description { description } %> <%= header.with_back_button(href: "#", size: back_button_size, 'aria-label': "Back") if with_back_button %> <%= header.with_breadcrumbs(breadcrumb_items) if with_breadcrumbs %> <%= header.with_parent_link(href: "#") { "Parent link" } if with_parent_link %> <% if with_actions %> <% header.with_actions do %> <%= render(Primer::Alpha::ActionMenu.new) do |component| %> <% component.with_show_button { "Menu" } %> <% component.with_item(label: "Item", tag: :button, value: "") %> <% component.with_item( label: "Show dialog", tag: :button, content_arguments: { "data-show-dialog-id": "my-dialog" }, value: "", scheme: :danger ) %> <% end %> <% end %> <% end %> <% if with_context_bar_actions %> <% header.with_context_bar_actions do %> <%= render(Primer::Beta::IconButton.new( scheme: :default, size: :small, icon: "pencil", "aria-label": "aria_label" )) %> <% end %> <% end %> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems