2012-10-16 06:03:29 +02:00
|
|
|
{# Settings tab of the app. #}
|
|
|
|
|
2012-10-05 17:46:07 +02:00
|
|
|
<div class="row-fluid">
|
2013-02-21 17:45:40 +01:00
|
|
|
<div id="current_settings" class="span7">
|
2012-10-04 22:59:18 +02:00
|
|
|
<h1>Settings</h1>
|
2012-10-17 22:26:59 +02:00
|
|
|
<div id="API">
|
|
|
|
<label>API Key</label>
|
|
|
|
<div id="api_key_button_box">
|
2013-04-02 20:47:18 +02:00
|
|
|
<a href="#api-settings" id="api_key_button">(show)</a>
|
2012-10-17 22:26:59 +02:00
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<div id="get_api_key_box">
|
2013-04-03 22:51:14 +02:00
|
|
|
<form action="/json/fetch_api_key" method="post">{% csrf_token %}
|
2012-11-02 17:52:18 +01:00
|
|
|
<label for="password">Enter your password to get your API key</label>
|
2012-10-17 22:26:59 +02:00
|
|
|
<input type="password" autocomplete="off" name="password" id="get_api_key_password" value="" /><br />
|
|
|
|
<input type="submit" name="view_api_key" value="Get API Key" class="btn" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="show_api_key_box">
|
|
|
|
<b><span id="api_key_value"></span></b>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
</div>
|
2012-09-21 19:32:01 +02:00
|
|
|
<div id="Photo">
|
|
|
|
<label>Photo</label>
|
2012-11-05 23:51:27 +01:00
|
|
|
<img class="img-rounded gravatar-profile" src="https://secure.gravatar.com/avatar/{{ email_hash }}?d=identicon&s=80"/>
|
2013-04-02 20:47:18 +02:00
|
|
|
<a href="https://en.gravatar.com/emails" target="_blank" class="change_gravatar_button">
|
|
|
|
(change at Gravatar.com)</a>
|
2012-09-21 19:32:01 +02:00
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
2012-10-17 22:26:59 +02:00
|
|
|
<div id="settings-change-box">
|
2013-04-03 22:47:59 +02:00
|
|
|
<form action="/json/settings/change" method="post"
|
2013-04-03 22:51:14 +02:00
|
|
|
class="form-horizontal">{% csrf_token %}
|
2013-04-03 22:47:59 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label for="full_name" class="control-label">Full name</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" name="full_name" id="full_name"
|
|
|
|
value="{{ user_profile.full_name }}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label for="old_password" class="control-label">Old password</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="password" autocomplete="off"
|
|
|
|
name="old_password" id="old_password" value="" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label for="new_password" class="control-label">New password</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="password" autocomplete="off"
|
|
|
|
name="new_password" id="new_password" value="" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label for="confirm_password" class="control-label">Confirm password</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="password" autocomplete="off"
|
|
|
|
name="confirm_password" id="confirm_password" value="" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label for="enable_desktop_notifications" class="control-label">
|
|
|
|
Desktop notifications (Chrome only)</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="checkbox" name="enable_desktop_notifications" id="enable_desktop_notifications"
|
2012-11-23 21:23:41 +01:00
|
|
|
{% if user_profile.enable_desktop_notifications %}
|
|
|
|
checked="yes"
|
2013-04-03 22:47:59 +02:00
|
|
|
{% endif %} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<input type="submit" name="change_settings" value="Save changes" class="btn btn-big btn-primary" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-21 19:32:01 +02:00
|
|
|
</form>
|
2012-10-17 22:26:59 +02:00
|
|
|
</div>
|
2013-02-20 04:19:18 +01:00
|
|
|
|
2012-09-21 19:32:01 +02:00
|
|
|
<div class="alert" id="settings-status"></div>
|
2013-02-20 04:19:18 +01:00
|
|
|
|
2013-04-03 22:58:17 +02:00
|
|
|
<hr class="settings_separator" />
|
2013-02-20 04:19:18 +01:00
|
|
|
|
2013-04-03 22:58:17 +02:00
|
|
|
<p><button class="btn declare_bankruptcy_button" data-dismiss="modal" aria-hidden="true">
|
|
|
|
Declare Humbug bankruptcy
|
|
|
|
</button></p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Too many unread messages? Press this button to declare Humbug
|
|
|
|
bankruptcy and travel to right now in your feed.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Your historical messages will all still exist and be searchable.
|
|
|
|
</p>
|
2013-02-20 04:19:18 +01:00
|
|
|
|
2012-09-21 19:32:01 +02:00
|
|
|
</div>
|
2013-02-20 04:19:18 +01:00
|
|
|
|
2012-09-21 19:32:01 +02:00
|
|
|
</div>
|
|
|
|
|