2013-01-12 09:45:20 -08:00
{% extends "base.html" %}
{% block page-title %}/ Account - {{ block.super }}{% endblock %}
{% block body-class %}{{ block.super }} static account{% endblock %}
{% block breadcrumb %}
< li > < a href = "/account/" > Account< / a > < / li >
{% endblock %}
{% block content %}
< div class = "static-box" >
2013-01-13 09:51:25 -08:00
< h2 > Account< / h2 >
{% if messages %}
{% for message in messages %}
< p class = "alert alert-{{ message.tags }}" > {{ message }}< / p >
{% endfor %}
{% endif %}
2013-01-12 09:45:20 -08:00
< ul >
2013-01-13 09:51:25 -08:00
< li > Username: {{ request.user.username }}< / li >
2013-01-12 09:45:20 -08:00
< li > < a href = "/api/" > API< / a > key: {{ request.user.api_key.key }}< / li >
< li > < a href = "/api/" > API< / a > user ID: {{ request.user.id }}< / li >
< li > < a href = "/password/change/" > Change password< / a > < / li >
< / ul >
2013-01-13 09:51:25 -08:00
{% if request.user.profile.is_pro %}
< form class = "form-horizontal" action = "/account/" method = "post" >
< legend > Edit Pro settings< / legend >
2013-01-15 21:09:54 -08:00
< div class = "control-group" >
< label class = "control-label" for = "id_blog_title" > Blog title:< / label >
< div class = "controls" >
{{ form.blog_title }}
< / div >
< / div >
< div class = "control-group" >
< label class = "control-label" for = "id_blog_theme" > Blog theme:< / label >
< div class = "controls" >
{{ form.blog_theme }}
< / div >
< / div >
< div class = "control-group" >
< label class = "control-label" for = "id_blog_domain" > Blog domain:< / label >
< div class = "controls" >
{{ form.blog_domain }}
2013-01-20 19:43:29 -08:00
< span class = "help-block" > Like 'snipt.nicksergeant.com' or 'nicksergeant.com' (without quotes). Set your CNAME / A-record to point to 96.126.110.160< / span >
2013-01-15 21:09:54 -08:00
< / div >
< / div >
2013-02-04 11:40:45 -08:00
< div class = "control-group" >
< label class = "control-label" for = "id_default_editor" > Default editor:< / label >
< div class = "controls" >
{{ form.default_editor }}
< / div >
< / div >
2013-02-05 12:24:51 -08:00
< div class = "control-group" >
< label class = "control-label" for = "id_editor_theme" > Default editor theme:< / label >
< div class = "controls" >
{{ form.editor_theme }}
< / div >
< / div >
2013-02-02 20:01:34 -08:00
< div class = "control-group" >
2013-02-02 20:19:34 -08:00
< label class = "control-label" for = "id_gittip_username" > Gittip username:< / label >
2013-02-02 20:01:34 -08:00
< div class = "controls" >
{{ form.gittip_username }}
2013-02-02 20:19:34 -08:00
< span class = "help-block" > Your < a href = "https://www.gittip.com/" > Gittip< / a > username, if you have one.< / span >
2013-02-02 20:01:34 -08:00
< / div >
< / div >
< div class = "control-group" >
< label class = "control-label" for = "id_disqus_shortname" > Disqus shortname:< / label >
< div class = "controls" >
{{ form.disqus_shortname }}
2013-02-02 20:11:38 -08:00
< span class = "help-block" > If you have your own < a href = "http://disqus.com/" > Disqus< / a > account that you'd like to use for your blog comments, enter your shortname here.< / span >
2013-02-02 20:01:34 -08:00
< / div >
< / div >
2013-02-05 06:59:43 -08:00
< div class = "control-group" >
< label class = "control-label" for = "id_google_analytics_tracking_id" > Google Analytics tracking ID:< / label >
< div class = "controls" >
{{ form.google_analytics_tracking_id }}
< span class = "help-block" > If you'd like to track visits to your blog site with < a href = "http://analytics.google.com" > Google Analytics< / a > , enter your tracking ID here.< / span >
< / div >
< / div >
2013-02-07 07:58:26 -08:00
< div class = "control-group" >
< label class = "control-label" for = "id_gauges_site_id" > Gauges site ID:< / label >
< div class = "controls" >
{{ form.id_gauges_site_id }}
< span class = "help-block" > If you'd like to track visits to your blog site with < a href = "http://get.gaug.es/" > Gauges< / a > , enter your site ID here.< / span >
< / div >
< / div >
2013-01-13 09:51:25 -08:00
< div class = "form-actions" >
< button type = "submit" class = "btn btn-success" > Save< / button >
< / div >
{% csrf_token %}
< / form >
{% endif %}
2013-01-12 09:45:20 -08:00
< / div >
{% endblock %}