Sha256: 228f91dbb6573ccfc37ccfe2ba81e808b3b34131c15f70d91185cfa471bfe28a

Contents?: true

Size: 976 Bytes

Versions: 175

Compression:

Stored size: 976 Bytes

Contents

<%# erblint:counter ButtonComponentMigrationCounter 1 %>
<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <% if spinner.present? %>
    <%= spinner %>
  <% elsif @icon.present? %>
    <%= primer_octicon @icon, size: @icon_size, classes: "blankslate-icon" %>
  <% elsif @image_src.present? && @image_alt.present? %>
    <%= image_tag @image_src.to_s, class: "mb-3", size: "56x56", alt: @image_alt.to_s %>
  <% end %>
  <% if @title.present? %>
    <%= render Primer::BaseComponent.new(tag: @title_tag, mb: 1) do %><%= @title %><% end %>
  <% end %>
  <% if @description.present? %>
    <p><%= @description %></p>
  <% end %>
  <%= content %>
  <% if @button_text.present? && @button_url.present? %>
    <a class="btn <%= @button_classes %>" href="<%= @button_url %>"><%= @button_text %></a>
  <% end %>
  <% if @link_text.present? && @link_url.present? %>
    <p>
      <%= link_to @link_url.to_s do %><%= @link_text %><% end %>
    </p>
  <% end %>
<% end %>

Version data entries

175 entries across 175 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.6.3 app/components/primer/blankslate_component.html.erb
primer_view_components-0.6.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.5.1 app/components/primer/blankslate_component.html.erb
primer_view_components-0.5.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.4.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.3.1 app/components/primer/blankslate_component.html.erb
primer_view_components-0.3.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.2.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.9 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.8 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.7 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.6 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.5 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.4 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.3 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.2 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.1 app/components/primer/blankslate_component.html.erb
primer_view_components-0.1.0 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.123 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.122 app/components/primer/blankslate_component.html.erb