Sha256: 9096519ea97896336b85071a70e66336ef91432efc70f21cae9a9e341b37481a
Contents?: true
Size: 854 Bytes
Versions: 107
Compression:
Stored size: 854 Bytes
Contents
<%= render(Primer::Alpha::ActionMenu.new(select_variant: :single)) do |menu| %> <% menu.with_show_button { "Group By" } %> <% menu.with_item( label: "Repository", href: action_menu_form_action_path(format: route_format), form_arguments: { method: :post, inputs: [{ name: "query", value: "query" }, { name: "foo", # use "foo" here because that's what the controller expects value: "group-by-repository", }], } ) %> <% menu.with_item( label: "Date", href: action_menu_form_action_path(format: route_format), form_arguments: { method: :post, inputs: [{ name: "query", value: "query" }, { name: "foo", # use "foo" here because that's what the controller expects value: "sort-by-date" }] } ) %> <% end %>
Version data entries
107 entries across 107 versions & 2 rubygems