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 diff --git a/package.json b/package.json index 3e52e6d..154e8ba 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "express": "^4.17.3", "express-limiter": "^1.6.1", "express-session": "^1.17.2", + "favicon": "^0.0.2", "feed": "^4.2.2", "feed-reader": "^6.1.2", "geoip-lite": "^1.4.3",