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">
|
2013-05-12 18:28:53 +00:00
|
|
|
<h2>{{t("settings")}}</h2>
|
|
|
|
|
<h4>{{t("customDayStart")}}</h4>
|
2013-05-02 12:17:04 +00:00
|
|
|
<div class="option-group option-short">
|
|
|
|
|
<input class="option-content option-time" type="number" min=0 max=24 value={_user.preferences.dayStart}>
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">:00 ({{t("24HrClock")}})</span>
|
2013-05-02 12:17:04 +00:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2013-05-12 18:28:53 +00:00
|
|
|
<small>{{t("clockInfo")}}</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/>
|
2013-05-12 18:28:53 +00:00
|
|
|
<h4>{{t("misc")}}</h4>
|
|
|
|
|
<button x-bind="click:toggleHeader" class="btn">{#if _user.preferences.hideHeader}{{t("showHeader")}} {else} {{t("hideHeader")}}{/}</button>
|
2013-05-02 12:17:04 +00:00
|
|
|
|
|
|
|
|
{{#if _user.auth.local}}
|
|
|
|
|
<hr/>
|
2013-05-12 18:28:53 +00:00
|
|
|
<h4>{{t("changePass")}}</h4>
|
2013-05-02 12:17:04 +00:00
|
|
|
<derby-auth:changePassword />
|
|
|
|
|
{{/}}
|
|
|
|
|
|
|
|
|
|
<hr/>
|
2013-05-12 18:28:53 +00:00
|
|
|
<h4>{{t("dangerZone")}}</h4>
|
|
|
|
|
<a class='btn btn-danger' data-target="#reset-modal" data-toggle="modal" rel=tooltip title={{t("resetAltTest")}}>{{t("reset")}}</a>
|
|
|
|
|
<a class='btn btn-danger' data-target="#restore-modal" data-toggle="modal" rel=tooltip title={{t("restoreAltText")}}>{{t("restore")}}</a>
|
|
|
|
|
<a class='btn btn-danger' data-target="#delete-modal" data-toggle="modal" rel=tooltip title={{t("deleteAltText")}}>{{t("delete")}}</a>
|
2013-05-02 12:17:04 +00:00
|
|
|
</div>
|
2013-05-06 08:55:44 +00:00
|
|
|
<div class='span6'>
|
|
|
|
|
<h2>API</h2>
|
2013-05-12 18:28:53 +00:00
|
|
|
<small>{{t("APIText")}}</small>
|
|
|
|
|
<h6>{{t("userId")}}</h6>
|
2013-05-02 12:17:04 +00:00
|
|
|
<pre class=prettyprint>{_user.id}</pre>
|
|
|
|
|
|
2013-05-12 18:28:53 +00:00
|
|
|
<h6>{{t("APIToken")}}</h6>
|
2013-05-02 12:17:04 +00:00
|
|
|
<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-05-12 18:28:53 +00:00
|
|
|
<app:modals:modal modalId="reset-modal" header={{t("reset")}}>
|
|
|
|
|
<p>{{t("resetText1")}}</p>
|
|
|
|
|
<p>{{t("resetText2")}}</p>
|
2013-02-17 05:42:42 +00:00
|
|
|
<@footer>
|
2013-05-12 18:28:53 +00:00
|
|
|
<button class="btn" data-dismiss="modal" aria-hidden="true">{{t("close")}}</button>
|
|
|
|
|
<button data-dismiss="modal" x-bind=click:reset class="btn btn-danger">{{t("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
|
|
|
|
2013-05-12 18:28:53 +00:00
|
|
|
<app:modals:modal modalId="restore-modal" header={{t("restore")}}>
|
|
|
|
|
<p>{{t("restoreText1")}}</p>
|
2013-02-27 14:07:51 +00:00
|
|
|
|
|
|
|
|
{#with _user}
|
2013-03-21 17:03:03 +00:00
|
|
|
<form id='restore-form' class="form-horizontal restore-options">
|
2013-05-12 18:28:53 +00:00
|
|
|
<h3>{{t("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}}">
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">{{t("level")}}</span>
|
2013-02-27 14:07:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
2013-05-12 18:28:53 +00:00
|
|
|
<h3>{{t("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}}">
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">{{t("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}}">
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">{{t("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}}">
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">{{t("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}}">
|
2013-05-12 18:28:53 +00:00
|
|
|
<span class="input-suffix">{{t("shield")}}</span>
|
2013-02-27 14:07:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
{/}
|
|
|
|
|
|
|
|
|
|
<@footer>
|
2013-05-12 18:28:53 +00:00
|
|
|
<button class="btn" x-bind="click:restoreSave" data-dismiss="modal" aria-hidden="true">{{t("saveAndClose")}}</button>
|
2013-02-27 14:07:51 +00:00
|
|
|
</@footer>
|
|
|
|
|
</app:modals:modal>
|
|
|
|
|
|
2013-05-12 18:28:53 +00:00
|
|
|
<app:modals:modal modalId="delete-modal" header={{t("deleteHeader")}}>
|
|
|
|
|
<p>{{t("deleteText1")}}<strong>{{t("deleteText2")}}</strong> {{t("deleteText3")}}</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>
|
2013-05-12 18:28:53 +00:00
|
|
|
<button data-dismiss="modal" x-bind="click:deleteAccount" class="btn btn-danger btn-small {#unless equal(_deleteAccount,'DELETE')}disabled{/}">{{t("deleteHeader")}}</button>
|
2013-03-15 21:58:37 +00:00
|
|
|
</@footer>
|
|
|
|
|
</app:modals:modal>
|
|
|
|
|
|
2013-02-17 05:42:42 +00:00
|
|
|
{{else}}
|
2013-05-12 18:28:53 +00:00
|
|
|
<app:modals:modal modalId="login-modal" header={{t("loginAndReg")}}>
|
|
|
|
|
<a href="/auth/facebook"><img src='/img/facebook-login-register.jpeg' alt={{t("loginFacebookAlt")}}/></a>
|
|
|
|
|
<h3>{{t("or")}}</h3>
|
2013-02-17 05:42:42 +00:00
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs">
|
2013-05-12 18:28:53 +00:00
|
|
|
<li class="active"><a href="#" data-toggle="tab" data-target="#login">{{t("login")}}</a></li>
|
|
|
|
|
<li><a href="#" data-toggle="tab" data-target="#register">{{t("register")}}</a></li>
|
2013-02-17 05:42:42 +00:00
|
|
|
</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}}
|
2013-05-12 18:28:53 +00:00
|
|
|
<button class="task-action-btn tile solid" style='cursor:pointer' data-target="#login-modal" data-toggle="modal">{{t("loginAndRegister")}}</button>
|
2013-05-02 16:26:20 +00:00
|
|
|
{{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>
|
2013-05-12 18:28:53 +00:00
|
|
|
<li><a class="task-action-btn tile solid" href="/logout">{{t("logout")}}</a></li>
|
2013-05-02 16:26:20 +00:00
|
|
|
</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)}
|
2013-05-12 18:28:53 +00:00
|
|
|
<a style='cursor:pointer;' x-bind="click:gotoPartyChat"><i class='icon-heart' rel='tooltip' title={{t("")}}></i></a>
|
2013-05-02 19:16:09 +00:00
|
|
|
{/}
|
|
|
|
|
|
2013-03-17 18:25:23 +00:00
|
|
|
</div>
|