All callers pass the description local. After changes: Line Coverage: 100.0% (11671 / 11671) Branch Coverage: 99.87% (3099 / 3103)
17 lines
746 B
Plaintext
17 lines
746 B
Plaintext
<%# locals: (title:, icon:, description:, button_link: nil, button_title: nil) %>
|
|
|
|
<div class="text-center">
|
|
<%== render("components/icon", locals: { name: icon, classes: "mx-auto h-12 w-12 text-gray-400" }) %>
|
|
<h3 class="mt-2 text-sm font-semibold text-gray-900"><%= title %></h3>
|
|
<p class="mt-1 text-sm text-gray-500"><%= description %></p>
|
|
<div class="mt-6">
|
|
<% if button_link %>
|
|
<%== render("components/button", locals: { icon: "hero-plus", link: button_link, text: button_title }) %>
|
|
<% elsif button_title %>
|
|
<div class="flex justify-center">
|
|
<%== render("components/button", locals: { icon: "hero-plus", text: button_title, attributes: { type: "submit" } }) %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|