2013-05-02 12:17:04 +00:00
< settings-pane: >
2013-05-06 08:55:44 +00:00
< div class = 'row-fluid' >
< div class = "personal-options span6 border-right" >
< h2 > Settings< / h2 >
2013-05-02 12:17:04 +00:00
< h4 > Custom Day Start< / h4 >
< div class = "option-group option-short" >
< input class = "option-content option-time" type = "number" min = 0 max = 24 value = {_user.preferences.dayStart} >
< span class = "input-suffix" > :00 (24h clock)< / span >
< / div >
< div >
< small > Habit defaults to check and reset your dailies at midnight each day. You can customize that here (Enter number between 0 and 24).< / small >
2013-03-15 20:58:07 +00:00
< / div >
2013-02-17 05:42:42 +00:00
2013-05-02 12:17:04 +00:00
< hr / >
< h4 > Misc< / h4 >
< button x-bind = "click:toggleHeader" class = "btn" > {#if _user.preferences.hideHeader}Show Header{else}Hide Header{/}< / button >
{{#if _user.auth.local}}
< hr / >
< h4 > Change Password< / h4 >
< derby-auth:changePassword / >
{{/}}
< hr / >
< h4 > Danger Zone< / h4 >
< a class = 'btn btn-danger' data-target = "#reset-modal" data-toggle = "modal" rel = tooltip title = "Resets your entire account (dangerous)." > Reset< / a >
< a class = 'btn btn-danger' data-target = "#restore-modal" data-toggle = "modal" rel = tooltip title = "Restores attributes to your character." > Restore< / a >
< a class = 'btn btn-danger' data-target = "#delete-modal" data-toggle = "modal" rel = tooltip title = "Delete your account." > Delete< / a >
< / div >
2013-05-06 08:55:44 +00:00
< div class = 'span6' >
< h2 > API< / h2 >
2013-05-02 12:17:04 +00:00
< small > Copy these for use in third party applications.< / small >
< h6 > User ID< / h6 >
< pre class = prettyprint > {_user.id}< / pre >
< h6 > API Token< / h6 >
< pre class = prettyprint > {_user.apiToken}< / pre >
< / div >
< / div >
2013-02-17 05:42:42 +00:00
2013-05-02 12:17:04 +00:00
< modals: >
{{#if _loggedIn}}
2013-02-17 05:55:52 +00:00
< app:modals:modal modalId = "reset-modal" header = "Reset" >
2013-02-17 05:42:42 +00:00
< p > This resets your entire account - your tasks will be deleted and your character will start over.< / p >
< p > This is highly discouraged because you'll lose historical data, which is useful for graphing your progress over time. However, some people find it useful in the beginning after playing with the app for a while.< / p >
< @footer>
< button class = "btn" data-dismiss = "modal" aria-hidden = "true" > Close< / button >
2013-02-28 15:59:39 +00:00
< button data-dismiss = "modal" x-bind = click:reset class = "btn btn-danger" > Reset< / button >
2013-02-17 05:42:42 +00:00
< /@footer>
2013-02-17 05:55:52 +00:00
< / app:modals:modal >
2013-02-27 14:07:51 +00:00
< app:modals:modal modalId = "restore-modal" header = "Restore" >
< p > HabitRPG is quite Beta-quality at present, and many find they need to restore character attributes as a result. Enter your numbers here and it will be applied automatically to your character. This will be removed once Habit is more stable.< / p >
{#with _user}
2013-03-21 17:03:03 +00:00
< form id = 'restore-form' class = "form-horizontal restore-options" >
2013-02-27 14:07:51 +00:00
< h3 > Stats< / h3 >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'stats.hp' value = "{{.stats.hp}}" >
< span class = "input-suffix" > HP< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'stats.exp' value = "{{.stats.exp}}" >
< span class = "input-suffix" > Exp< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'stats.gp' value = "{{.stats.gp}}" >
< span class = "input-suffix" > GP< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'stats.lvl' value = "{{.stats.lvl}}" >
< span class = "input-suffix" > Level< / span >
2013-02-27 14:07:51 +00:00
< / div >
< h3 > Items< / h3 >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'items.weapon' value = "{{.items.weapon}}" >
< span class = "input-suffix" > Weapon< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'items.armor' value = "{{.items.armor}}" >
< span class = "input-suffix" > Armor< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'items.head' value = "{{.items.head}}" >
< span class = "input-suffix" > Helm< / span >
2013-02-27 14:07:51 +00:00
< / div >
2013-03-21 17:03:03 +00:00
< div class = "option-group option-medium" >
< input class = "option-content" type = "number" data-for = 'items.shield' value = "{{.items.shield}}" >
< span class = "input-suffix" > Shield< / span >
2013-02-27 14:07:51 +00:00
< / div >
< / form >
{/}
< @footer>
< button class = "btn" x-bind = "click:restoreSave" data-dismiss = "modal" aria-hidden = "true" > Save & Close< / button >
< /@footer>
< / app:modals:modal >
2013-03-15 21:58:37 +00:00
< app:modals:modal modalId = "delete-modal" header = "Delete Account" >
2013-03-15 22:26:40 +00:00
< p > Woa woa woa! Are you sure? This will seriously delete your account forever, and it can never be restored. If you're absolutely certain, type < strong > DELETE< / strong > into the text-box below.< / p >
2013-03-15 21:58:37 +00:00
< p > < input type = "text" value = "{_deleteAccount}" / > < / p >
< @footer>
< button class = "btn btn-large" data-dismiss = "modal" aria-hidden = "true" > Cancel< / button >
< button data-dismiss = "modal" x-bind = "click:deleteAccount" class = "btn btn-danger btn-small {#unless equal(_deleteAccount,'DELETE')}disabled{/}" > Delete Account< / button >
< /@footer>
< / app:modals:modal >
2013-02-17 05:42:42 +00:00
{{else}}
2013-02-17 05:55:52 +00:00
< app:modals:modal modalId = "login-modal" header = "Login / Register" >
2013-02-17 05:42:42 +00:00
< a href = "/auth/facebook" > < img src = '/img/facebook-login-register.jpeg' alt = "Login / Register With Facebook" / > < / a >
< h3 > Or< / h3 >
< ul class = "nav nav-tabs" >
< li class = "active" > < a href = "#" data-toggle = "tab" data-target = "#login" > Login< / a > < / li >
< li > < a href = "#" data-toggle = "tab" data-target = "#register" > Register< / a > < / li >
< / ul >
< div class = "tab-content" >
< div class = "tab-pane active" id = "login" > < derby-auth:login / > < / div >
< div class = "tab-pane" id = "register" > < derby-auth:register / > < / div >
< / div >
2013-02-17 05:55:52 +00:00
< / app:modals:modal >
2013-02-17 05:42:42 +00:00
{{/}}
< menu: >
2013-03-18 20:48:47 +00:00
< div class = "user-menu" >
2013-05-02 16:26:20 +00:00
{{#unless _loggedIn}}
< button class = "task-action-btn tile solid" style = 'cursor:pointer' data-target = "#login-modal" data-toggle = "modal" > Login / Register< / button >
{{else}}
< ul class = "nav site-nav" >
< li class = "flyout" >
2013-05-02 19:16:09 +00:00
< h1 class = "task-action-btn tile solid user-reporter" > {{username(_user.auth, _user.profile.name)}}< / h1 >
2013-05-02 16:26:20 +00:00
< ul class = "flyout-content nav stacked" >
< li >
< a class = "task-action-btn tile solid" x-bind = 'click:toggleGamePane' >
2013-05-02 19:16:09 +00:00
{#if _gamePane}Tasks{else}Options{/}
2013-05-02 16:26:20 +00:00
< / a >
< / li >
< li > < a class = "task-action-btn tile solid" href = "/logout" > Logout< / a > < / li >
< / ul >
< / li >
< / ul >
{{/}}
2013-05-02 19:16:09 +00:00
<!-- party invitation notification -->
{#if _user.party.invitation}
< a style = 'cursor:pointer;' x-bind = "click:gotoPartyChat" > < i class = 'icon-user' > < / i > < / a >
{/}
<!-- party chat notification -->
{#if newChatMessages(_party.chat,_user.party.lastMessageSeen)}
< a style = 'cursor:pointer;' x-bind = "click:gotoPartyChat" > < i class = 'icon-comment' rel = 'tooltip' title = 'New Party Messages' > < / i > < / a >
{/}
2013-03-17 18:25:23 +00:00
< / div >