Small optimization: Don't include --active variation on button for non-logged-in (#11676)
This commit is contained in:
parent
a6537dde95
commit
652f8112d2
1 changed files with 2 additions and 0 deletions
|
|
@ -7,8 +7,10 @@
|
|||
<span class="crayons-reaction__icon crayons-reaction__icon--inactive">
|
||||
<%= inline_svg_tag(image_path, aria: true, class: "crayons-icon", title: description) %>
|
||||
</span>
|
||||
<% if user_signed_in? # We cannot trigger the action state unless the user is signed in, so no need to render. %>
|
||||
<span class="crayons-reaction__icon crayons-reaction__icon--active">
|
||||
<%= inline_svg_tag(image_active_path, aria: true, class: "crayons-icon", title: description) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<span class="crayons-reaction__count" id="reaction-number-<%= category %>" alt="count"><span class="bg-base-40 opacity-25 p-2 inline-block radius-default"></span></span>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue