8ea2d7346b
It will add to the first selected collection, or to the first one in the menu if no collection selected
9 lines
326 B
Plaintext
9 lines
326 B
Plaintext
<div class="header__actions header__actions--start">
|
|
<% if collection = user_filtering.single_collection_or_first %>
|
|
<%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link btn--circle-mobile" do %>
|
|
<%= icon_tag "add" %>
|
|
<span>Add a card</span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|