1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/items/_item_list_row.html.haml

18 lines
564 B
Text

-# Run the block first, so we can get the subtitle content if provided! Clear
-# out any old values beforehand, too.
- content_for :subtitle, "", flush: true
- content = yield
- subtitle = yield :subtitle
%tr{"data-item-owned": item.owned?}
%td.thumbnail-cell
= link_to item_thumbnail_for(item), item, target: "_blank",
tabindex: "-1"
%td.name-cell
= link_to item.name, item, target: "_blank", class: "item-name"
- if item.owned?
%span.owned-explanation
(You own this)
- if subtitle.present?
.subtitle= subtitle
%td.actions-cell= content