a88264ed0a
* main: (94 commits) Source order seems to be significant Use `card.title` Nicer flow Fix string interpolation Fix constant Use record lookup Always use sole Explained less and extracted nothing of value Weird double negative Remove anemic and indirect method that explained nothing Can use record lookup for workflows Access control has already been done through the card Style Use _path in all cases where we are not potentially changing the domain Clearer Spacing Get rid of card_title Join the two users controllers but split out role setting Ensure user is returned We are not using the parameter ...
27 lines
974 B
Plaintext
27 lines
974 B
Plaintext
<% cache [ card ] do %>
|
|
<%= card_article_tag card, class: "card" do %>
|
|
<header class="card__header flex align-center gap min-width">
|
|
<span class="card__collection txt-uppercase overflow-ellipsis txt-reversed"><%= card.collection.name %></span>
|
|
<%= render "cards/display/preview/tags", card: card %>
|
|
</header>
|
|
|
|
<div class="card__body flex gap full-width flex-item-grow">
|
|
<h1 class="card__title">
|
|
<span class="card__title-link overflow-line-clamp"><%= card.title %></span>
|
|
</h1>
|
|
|
|
<%= link_to collection_card_path(card.collection, card), class: "card__link" do %>
|
|
<span class="for-screen-reader"><%= card.title %></span>
|
|
<% end %>
|
|
|
|
<%= render "cards/stagings/stages", card: card if card.doing? %>
|
|
</div>
|
|
|
|
<footer class="card__footer">
|
|
<%= render "cards/display/preview/meta", card: card %>
|
|
</footer>
|
|
|
|
<%= render "cards/display/common/background", card: card %>
|
|
<% end %>
|
|
<% end %>
|