From fd532d9aaab2a038613376cf447fd9401f84f168 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 2 Nov 2022 14:12:10 -0400 Subject: [PATCH 1/2] 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 From 08d70c35a7720f6da97e5e433094f05a3d4f0dbb Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 2 Nov 2022 14:18:57 -0400 Subject: [PATCH 2/2] v0.5.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c16103a..bfdf0b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dtp-base", - "version": "0.5.2", + "version": "0.5.3", "description": "Open source web app engine for the Digital Telepresence Platform.", "main": "dtp-webapp.js", "author": "DTP Technologies, LLC",