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