diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-08 17:28:21 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 10:28:48 -0700 |
commit | 36f901fbbd68479a911058f4ec3b9717e81e2b92 (patch) | |
tree | 5f0b06384a7cd2a653af6580c72e47772be2c0c1 /mediagoblin/templates | |
parent | af665c4eb9dfb53ef9ac28567f7f3806ed313093 (diff) | |
download | mediagoblin-36f901fbbd68479a911058f4ec3b9717e81e2b92.tar.lz mediagoblin-36f901fbbd68479a911058f4ec3b9717e81e2b92.tar.xz mediagoblin-36f901fbbd68479a911058f4ec3b9717e81e2b92.zip |
used template hooks instead of hardcoding basic_auth functionality into templates
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/auth/login.html | 11 | ||||
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/edit_account.html | 7 |
2 files changed, 3 insertions, 15 deletions
diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html index 3329b5d0..c394245e 100644 --- a/mediagoblin/templates/mediagoblin/auth/login.html +++ b/mediagoblin/templates/mediagoblin/auth/login.html @@ -20,8 +20,8 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_head %} - <script type="text/javascript" - src="{{ request.staticdirect('/js/autofilledin_password.js') }}"></script> + {{ super() }} + {% template_hook("fp_head") %} {% endblock %} {% block title -%} @@ -48,12 +48,7 @@ {% endif %} {% template_hook("login_link") %} {{ wtforms_util.render_divs(login_form, True) }} - {% if pass_auth %} - <p> - <a href="{{ request.urlgen('mediagoblin.auth.forgot_password') }}" id="forgot_password"> - {% trans %}Forgot your password?{% endtrans %}</a> - </p> - {% endif %} + {% template_hook("fp_link") %} <div class="form_submit_buttons"> <input type="submit" value="{% trans %}Log in{% endtrans %}" class="button_form"/> </div> diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html index 51293acb..069cfd85 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_account.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html @@ -41,13 +41,6 @@ Changing {{ username }}'s account settings {%- endtrans -%} </h1> - {% if pass_auth is defined %} - <p> - <a href="{{ request.urlgen('mediagoblin.edit.pass') }}"> - {% trans %}Change your password.{% endtrans %} - </a> - </p> - {% endif %} {% template_hook("edit_link") %} {{ wtforms_util.render_divs(form, True) }} <div class="form_submit_buttons"> |