mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
User.habits/dailys/todos/rewards. Move /#/tasks & /#/options page loading from server-sent html to everything loaded in the page as script templates (including necessary fixes for adsense). NOTE: this commit won't work, it depends a bit on the *next* commit with Challenges functionality, but I wanted to separate it out a bit for clarity
64 lines
No EOL
1.8 KiB
Text
64 lines
No EOL
1.8 KiB
Text
script(id='templates/habitrpg-options.html', type="text/ng-template")
|
|
.grid
|
|
.module.full-width
|
|
span.option-box.pull-right.wallet
|
|
include ../shared/gems
|
|
|
|
ul.nav.nav-tabs
|
|
li.active
|
|
a(data-toggle='tab', data-target='#profile-tab')
|
|
i.icon-user
|
|
| Profile
|
|
li
|
|
a(data-toggle='tab',data-target='#groups-tab', ng-click='fetchParty()')
|
|
i.icon-heart
|
|
| Groups
|
|
li(ng-show='user.flags.dropsEnabled')
|
|
a(data-toggle='tab',data-target='#inventory-tab')
|
|
i.icon-gift
|
|
| Inventory
|
|
li(ng-show='user.flags.dropsEnabled')
|
|
a(data-toggle='tab',data-target='#stable-tab')
|
|
i.icon-leaf
|
|
| Stable
|
|
li
|
|
a(data-toggle='tab',data-target='#tavern-tab', ng-click='fetchTavern()')
|
|
i.icon-eye-close
|
|
| Tavern
|
|
li
|
|
a(data-toggle='tab',data-target='#achievements-tab')
|
|
i.icon-certificate
|
|
| Achievements
|
|
//-li
|
|
a(data-toggle='tab',data-target='#challenges-tab')
|
|
i.icon-bullhorn
|
|
| Challenges
|
|
li
|
|
a(data-toggle='tab',data-target='#settings-tab')
|
|
i.icon-wrench
|
|
| Settings
|
|
|
|
.tab-content
|
|
.tab-pane.active#profile-tab
|
|
include ./profile
|
|
|
|
.tab-pane#groups-tab
|
|
include ./groups/index
|
|
|
|
.tab-pane#inventory-tab
|
|
include ./inventory
|
|
|
|
.tab-pane#stable-tab
|
|
include ./pets
|
|
|
|
.tab-pane#tavern-tab
|
|
include ./groups/tavern
|
|
|
|
.tab-pane#achievements-tab(ng-controller='UserCtrl')
|
|
include ../shared/profiles/achievements
|
|
|
|
.tab-pane#challenges-tab
|
|
include ./challenges/index
|
|
|
|
.tab-pane#settings-tab
|
|
include ./settings |