add label options to +renderBackButton

master
rob 2 years ago
parent 965e7d03f9
commit fd532d9aaa

@ -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

Loading…
Cancel
Save