From 36f901fbbd68479a911058f4ec3b9717e81e2b92 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Mon, 8 Jul 2013 17:28:21 -0700 Subject: used template hooks instead of hardcoding basic_auth functionality into templates --- mediagoblin/templates/mediagoblin/auth/login.html | 11 +++-------- mediagoblin/templates/mediagoblin/edit/edit_account.html | 7 ------- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'mediagoblin/templates') 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 %} - + {{ 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 %} -

- - {% trans %}Forgot your password?{% endtrans %} -

- {% endif %} + {% template_hook("fp_link") %}
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 -%} - {% if pass_auth is defined %} -

- - {% trans %}Change your password.{% endtrans %} - -

- {% endif %} {% template_hook("edit_link") %} {{ wtforms_util.render_divs(form, True) }}
-- cgit v1.2.3