Remove add option, specialize templates for the public view
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<% @page_title = @collection.name %>
|
||||
|
||||
<div class="card-columns">
|
||||
<%= render "cards/index/engagement/considering", **@considering.to_h %>
|
||||
<%= render "cards/index/engagement/doing", **@doing.to_h %>
|
||||
<%= render "public/collections/show/considering", **@considering.to_h %>
|
||||
<%= render "public/collections/show/doing", **@doing.to_h %>
|
||||
</div>
|
||||
|
||||
<%= render "cards/index/engagement/closed", **@closed.to_h %>
|
||||
<%= render "public/collections/show/closed", **@closed.to_h %>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<section id="closed-cards" class="cards cards--closed">
|
||||
<%= render "cards/index/closure_filter", filter: filter %>
|
||||
|
||||
<% if page.used? %>
|
||||
<%= render partial: "cards/display/preview", collection: page.records, as: :card, cached: true %>
|
||||
|
||||
<% unless page.last? %>
|
||||
<%= cards_next_page_link "closed-cards", page: page, filter: filter, fetch_on_visible: true %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p class="txt-medium translucent">Nothing here</p>
|
||||
<% end %>
|
||||
</section>
|
||||
@@ -0,0 +1,15 @@
|
||||
<section id="considering-cards" class="cards cards--considering">
|
||||
<h2 class="cards__heading">
|
||||
Considering
|
||||
</h2>
|
||||
|
||||
<% if page.used? %>
|
||||
<%= render partial: "cards/display/preview", collection: page.records, as: :card, cached: true %>
|
||||
|
||||
<% unless page.last? %>
|
||||
<%= cards_next_page_link "considering-cards", page: page, filter: filter %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p class="txt-medium translucent">Nothing here</p>
|
||||
<% end %>
|
||||
</section>
|
||||
@@ -0,0 +1,19 @@
|
||||
<section id="doing-cards" class="cards cards--doing" style="view-transition-name: cards-container;">
|
||||
<% if workflow = filter.single_workflow %>
|
||||
<%= render "cards/index/workflow_filter", workflow: workflow, filter: filter %>
|
||||
<% else %>
|
||||
<h2 class="cards__heading">
|
||||
Doing
|
||||
</h2>
|
||||
<% end %>
|
||||
|
||||
<% if page.used? %>
|
||||
<%= render partial: "cards/display/preview", collection: page.records, as: :card, cached: ->(card) { cacheable_preview_parts_for(card) } %>
|
||||
|
||||
<% unless page.last? %>
|
||||
<%= cards_next_page_link "doing-cards", page: page, filter: filter %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p class="txt-medium translucent">Nothing here</p>
|
||||
<% end %>
|
||||
</section>
|
||||
Reference in New Issue
Block a user