Sha256: cf1772a2b1790547e4ce8aa190a4fecd958cbe4150e5921833b68c8ac7dcf0e9
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
<%# erblint:counter ButtonComponentMigrationCounter 1 %> <%= render Yattho::BaseComponent.new(**@system_arguments) do %> <% if spinner.present? %> <%= spinner %> <% elsif @icon.present? %> <%= yattho_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 Yattho::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | app/components/yattho/blankslate_component.html.erb |
yattho_view_components-0.0.1 | app/components/yattho/blankslate_component.html.erb |