mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 19:42:15 +00:00
feat(backgrounds): move backgrounds to mixin
This commit is contained in:
parent
40fb17fdaf
commit
50d888e7f8
1 changed files with 5 additions and 3 deletions
|
|
@ -235,9 +235,8 @@ script(id='partials/options.profile.profile.html', type='text/ng-template')
|
|||
textarea.form-control(rows=5, placeholder=env.t('displayBlurb'), ng-model='editingProfile.blurb')
|
||||
include ../shared/formatting-help
|
||||
|
||||
script(type='text/ng-template', id='partials/options.profile.backgrounds.html')
|
||||
.container-fluid
|
||||
menu(type='list')
|
||||
mixin backgrounds(mobile)
|
||||
div(class=mobile ? 'padding' : 'container-fluid')
|
||||
// backgrounds are listed in content file in chronological order, but
|
||||
// we want to display them with most recent at top (reversed)
|
||||
- var bgsKeys = Object.keys(env.Content.backgrounds);
|
||||
|
|
@ -252,6 +251,9 @@ script(type='text/ng-template', id='partials/options.profile.backgrounds.html')
|
|||
button.customize-option(type='button',class='background_#{k}',ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter')
|
||||
- }
|
||||
|
||||
script(type='text/ng-template', id='partials/options.profile.backgrounds.html')
|
||||
+backgrounds()
|
||||
|
||||
script(id='partials/options.profile.html', type="text/ng-template")
|
||||
ul.options-menu
|
||||
li(ng-class="{ active: $state.includes('options.profile.avatar') }")
|
||||
|
|
|
|||
Loading…
Reference in a new issue