Skip to content

Commit

Permalink
Update datum.tt
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts-ctrlo authored Dec 18, 2024
1 parent bf56bec commit 3f687d2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions views/snippets/datum.tt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@
[% END %]
</table>
[% END %]
[% IF (col.limit_rows AND curval.links.size >= col.limit_rows) OR col.show_view_all %]
<p><em>(showing[% IF col.limit_rows AND curval.links.size >= col.limit_rows %] maximum [% col.limit_rows %]
[% ELSE %]
[% curval.links.size %] [% END %]row[%IF curval.links.size != 1%]s[%END%].</em>
<a href="/[% curval.parent_layout_identifier %]/data?curval_record_id=[% curval.record_id %]&curval_layout_id=[% curval.column_id %]" target="_blank">view all</a>)</p>
[% END %]
[% IF (col.limit_rows AND curval.links.size >= col.limit_rows) OR col.show_view_all %]
<p><em>(showing[% IF col.limit_rows AND curval.links.size >= col.limit_rows %] maximum [% col.limit_rows %]
[% ELSE %]
[% curval.links.size %]
[% END %]
row[%IF curval.links.size != 1%]s[%END%].</em>

<a href="/[% curval.parent_layout_identifier %]/data?curval_record_id=[% curval.record_id %]&curval_layout_id=[% curval.column_id %]" target="_blank">view all</a>)</p>
[% END %]
[% END %]

[% MACRO render_curcommon_datum(is_multivalue, curval, header, full_content) BLOCK %]
[% IF curval.text.length > MORE_LESS_TRESHOLD AND NOT full_content %]
Expand Down

0 comments on commit 3f687d2

Please sign in to comment.