Matchu
671e0becb6
Oh oops, I added an optional `subtitle` argument for the item table list row template, but didn't realize that it would crash in cases when not provided! Now, we add an initializer to set it to `nil` if undefined.
11 lines
282 B
Text
11 lines
282 B
Text
- subtitle = nil unless defined? subtitle
|
|
|
|
%tr
|
|
%td.thumbnail-cell
|
|
= link_to item_thumbnail_for(item), item, target: "_blank",
|
|
tabindex: "-1"
|
|
%td.name-cell
|
|
= link_to item.name, item, target: "_blank"
|
|
- if subtitle.present?
|
|
.subtitle= subtitle
|
|
%td.actions-cell= yield
|