From fd532d9aaab2a038613376cf447fd9401f84f168 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 2 Nov 2022 14:12:10 -0400 Subject: [PATCH] add label options to +renderBackButton --- app/views/components/library.pug | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/components/library.pug b/app/views/components/library.pug index 20eb6b0..e53b6f9 100644 --- a/app/views/components/library.pug +++ b/app/views/components/library.pug @@ -50,11 +50,13 @@ mixin renderCell (label, value, className) div(class=className)!= value .uk-text-muted.uk-text-small= label -mixin renderBackButton ( ) +mixin renderBackButton (options) + - options = Object.assign({ includeLabel: true, label: 'Back' }, options) button(type="button", onclick="window.history.back();").uk-button.uk-button-default span i.fas.fa-chevron-left - span(class="uk-visible@s").uk-margin-small-left Back + if options.includeLabel + span(class="uk-visible@s").uk-margin-small-left= options.label mixin renderUserLink (user) if user.coreUserId