Add cards from the home screen
This commit is contained in:
@@ -1 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1 -.25-.25v-8.75a1.5 1.5 0 0 0 -3 0v8.75a.25.25 0 0 1 -.25.25h-8.75a1.5 1.5 0 0 0 -1.5 1.5z"/></svg>
|
||||
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="m4 16c0 .8.7 1.5 1.5 1.5h8.8c.1 0 .2.1.2.2v8.8c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5v-8.8c0-.1.1-.2.2-.2h8.8c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5h-8.8c-.1 0-.2-.1-.2-.2v-8.8c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5v8.8c0 .1-.1.2-.2.2h-8.8c-.8 0-1.5.7-1.5 1.5z"/></svg>
|
||||
|
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 326 B |
@@ -9,7 +9,7 @@
|
||||
<% end %>
|
||||
|
||||
<header>
|
||||
<h1 class="txt-large overflow-ellipsis margin-block-start-none margin-block-end-double font-black">
|
||||
<h1 class="txt-large overflow-ellipsis margin-block-start-none margin-block-end-half font-black">
|
||||
<div class="overflow-ellipsis">
|
||||
<% if @filter.collections.any? %>
|
||||
<%= filter_selected_collections_label(@filter) %>
|
||||
@@ -27,6 +27,12 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
</h1>
|
||||
<% if collection = @filter.single_collection || Current.user.collections.first %>
|
||||
<%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link txt-x-small margin-block-end", form_class: "center" do %>
|
||||
<%= icon_tag "add" %>
|
||||
<span>Add a card</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</header>
|
||||
<div class="events" id="activity">
|
||||
<%= render "events/day", day_timeline: @day_timeline %>
|
||||
|
||||
Reference in New Issue
Block a user