From daaee6cc3c82f3653b7de0d743e4d3f28c77818f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 23 Apr 2010 15:34:58 +0100 Subject: [PATCH] Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations --- templates/404.html | 34 ------------------- templates/base.html | 14 ++++---- templates/hr/applications/add.html | 2 +- .../hr/applications/admin/view_list.html | 2 +- templates/hr/applications/view.html | 8 ++--- templates/hr/applications/view_list.html | 2 +- templates/hr/index.html | 10 +++--- templates/hr/recommendations/add.html | 2 +- templates/sso/characterlist.html | 2 +- templates/sso/eveapi.html | 2 +- templates/sso/index.html | 2 +- templates/sso/lookup/lookuplist.html | 2 +- templates/sso/lookup/user.html | 2 +- templates/sso/lookup/userlookup.html | 2 +- templates/sso/profile.html | 16 ++++----- templates/sso/redditaccount.html | 2 +- templates/sso/serviceaccount/created.html | 2 +- .../sso/serviceaccount/deleteconfirm.html | 2 +- templates/sso/serviceaccount/index.html | 2 +- .../sso/serviceaccount/noneavailable.html | 2 +- templates/sso/serviceaccount/reset.html | 2 +- .../sso/serviceaccount/resetcomplete.html | 2 +- 22 files changed, 41 insertions(+), 75 deletions(-) diff --git a/templates/404.html b/templates/404.html index 9f7862d..e69de29 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,34 +0,0 @@ - - - - 404 - - - -
- - -
-

404 - Derp not found

-
- -
- - - diff --git a/templates/base.html b/templates/base.html index 9de6e3c..5729c2b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,20 +16,20 @@ diff --git a/templates/hr/applications/add.html b/templates/hr/applications/add.html index 2447ff3..849d4ed 100644 --- a/templates/hr/applications/add.html +++ b/templates/hr/applications/add.html @@ -7,7 +7,7 @@ The person you are recommending needs to have created their application before you can add a recommendation.

-
+ {{ form.as_table }}
diff --git a/templates/hr/applications/admin/view_list.html b/templates/hr/applications/admin/view_list.html index 686affe..8e68f22 100644 --- a/templates/hr/applications/admin/view_list.html +++ b/templates/hr/applications/admin/view_list.html @@ -8,7 +8,7 @@ {% for app in apps %} - + diff --git a/templates/hr/applications/view.html b/templates/hr/applications/view.html index bcfaf36..1182000 100644 --- a/templates/hr/applications/view.html +++ b/templates/hr/applications/view.html @@ -8,13 +8,13 @@

Application Details

{% if form %} - +
Application IDCharacterCorporationApplication Status
{{ app.id }}
{{ app.id }} {{ app.character }} {{ app.corporation }} {{ app.status_description }}
{{ form.as_table }}
@@ -26,7 +26,7 @@

Recommendations

{% endif %} @@ -36,7 +36,7 @@ diff --git a/templates/hr/applications/view_list.html b/templates/hr/applications/view_list.html index ffc2c57..22218c3 100644 --- a/templates/hr/applications/view_list.html +++ b/templates/hr/applications/view_list.html @@ -8,7 +8,7 @@ {% for app in apps %} - + diff --git a/templates/hr/index.html b/templates/hr/index.html index f5cc749..f3ac1fd 100644 --- a/templates/hr/index.html +++ b/templates/hr/index.html @@ -4,18 +4,18 @@ {% block content %}

Applications

-

View your current open applications
-Create a application

+

View your current open applications
+Create a application

Recommendations

-View your current open recommendations
-Add a recommendation
+View your current open recommendations
+Add a recommendation

{% if hrstaff %}

HR Admin

-View applications
+View applications

{% endif %} diff --git a/templates/hr/recommendations/add.html b/templates/hr/recommendations/add.html index 4a14c5c..e71ce18 100644 --- a/templates/hr/recommendations/add.html +++ b/templates/hr/recommendations/add.html @@ -7,7 +7,7 @@ The person you are recommending needs to have created their application before you can add a recommendation.

- +
Application IDCharacterCorporationApplication Status
{{ app.id }}
{{ app.id }} {{ app.character }} {{ app.corporation }} {{ app.status_description }}
{{ form.as_table }}
diff --git a/templates/sso/characterlist.html b/templates/sso/characterlist.html index f26eba4..1fbb032 100644 --- a/templates/sso/characterlist.html +++ b/templates/sso/characterlist.html @@ -8,7 +8,7 @@ {% for char in characters %} - + {% endfor %} diff --git a/templates/sso/eveapi.html b/templates/sso/eveapi.html index c7c6721..f3a0e14 100644 --- a/templates/sso/eveapi.html +++ b/templates/sso/eveapi.html @@ -7,7 +7,7 @@ href="http://eve-online.com/api">EVE Online API page and a optional description.

- +
Character NameCorp
{{ char.name }}
{{ char.name }} {{ char.corp }}
{{ form.as_table }}
diff --git a/templates/sso/index.html b/templates/sso/index.html index 684b77b..f827905 100644 --- a/templates/sso/index.html +++ b/templates/sso/index.html @@ -3,6 +3,6 @@

-Login
+Login diff --git a/templates/sso/lookup/lookuplist.html b/templates/sso/lookup/lookuplist.html index ce8e603..14c303f 100644 --- a/templates/sso/lookup/lookuplist.html +++ b/templates/sso/lookup/lookuplist.html @@ -8,7 +8,7 @@ diff --git a/templates/sso/lookup/user.html b/templates/sso/lookup/user.html index 8687a77..636e789 100644 --- a/templates/sso/lookup/user.html +++ b/templates/sso/lookup/user.html @@ -40,7 +40,7 @@ {% for char in characters %} - + {% endfor %} diff --git a/templates/sso/lookup/userlookup.html b/templates/sso/lookup/userlookup.html index 2248525..8365a2d 100644 --- a/templates/sso/lookup/userlookup.html +++ b/templates/sso/lookup/userlookup.html @@ -3,7 +3,7 @@ {% block title %}User Lookup{% endblock %} {% block content %} - +
Character NameCorp
{{ char.name }}
{{ char.name }} {{ char.corp }}
{{ form.as_table }}
diff --git a/templates/sso/profile.html b/templates/sso/profile.html index 8908a17..b76dd57 100644 --- a/templates/sso/profile.html +++ b/templates/sso/profile.html @@ -28,11 +28,11 @@ create a login for a service click the Add Service link

{{ acc.service_uid }} {{ acc.service.url }} {% if acc.active %}Yes{% else %}No{% endif %} - Delete + Delete {% if acc.active %} -  / Reset +  / Reset {% if acc.service.provide_login %} -  / Login +  / Login {% endif %} {% endif %} @@ -43,7 +43,7 @@ create a login for a service click the Add Service link

{% endif %}

-Add Service +Add Service


@@ -67,15 +67,15 @@ setup.

{{ acc.description }} {{ acc.api_status_description }} {{ acc.api_last_updated|naturaltimediff }} - Refresh,  - Delete + Refresh,  + Delete {% endfor %} {% endif %}

-Add a Eve API key +Add a Eve API key


@@ -99,7 +99,7 @@ setup.

{% endif %}

-Add a Reddit account +Add a Reddit account

If you encounter any errors during using this service, copy the massive diff --git a/templates/sso/redditaccount.html b/templates/sso/redditaccount.html index d0a193d..a8fd88e 100644 --- a/templates/sso/redditaccount.html +++ b/templates/sso/redditaccount.html @@ -7,7 +7,7 @@ corporation

Please note, you will be forever tied to this account and posts and comments made on this account will be checked on from time to time

- + {{ form.as_table }}
diff --git a/templates/sso/serviceaccount/created.html b/templates/sso/serviceaccount/created.html index 4c733f9..6140f71 100644 --- a/templates/sso/serviceaccount/created.html +++ b/templates/sso/serviceaccount/created.html @@ -18,7 +18,7 @@ this is incorrect please raise a bug on the tracker. Password:{{ acc.password }} -

Return to your profile page

+

Return to your profile page

{% endif %} {% endblock %} diff --git a/templates/sso/serviceaccount/deleteconfirm.html b/templates/sso/serviceaccount/deleteconfirm.html index 9a9bce7..004ff26 100644 --- a/templates/sso/serviceaccount/deleteconfirm.html +++ b/templates/sso/serviceaccount/deleteconfirm.html @@ -8,7 +8,7 @@ create a new account until fixed by a Sysop. If you are having issues logging in

If you are sure, then please click confirm

- +
diff --git a/templates/sso/serviceaccount/index.html b/templates/sso/serviceaccount/index.html index a4cfbdc..3c3e877 100644 --- a/templates/sso/serviceaccount/index.html +++ b/templates/sso/serviceaccount/index.html @@ -8,7 +8,7 @@ then provide select a username you wish to use create the account for

For details on how to connect to each service, please consult the wiki

-
+ {{ form.as_table }}
diff --git a/templates/sso/serviceaccount/noneavailable.html b/templates/sso/serviceaccount/noneavailable.html index 339d515..3fd9bff 100644 --- a/templates/sso/serviceaccount/noneavailable.html +++ b/templates/sso/serviceaccount/noneavailable.html @@ -5,5 +5,5 @@ {% block content %}

You have no services available to add to your account

-

Return to your Profile

+

Return to your Profile

{% endblock %} diff --git a/templates/sso/serviceaccount/reset.html b/templates/sso/serviceaccount/reset.html index 03f336c..2bb8694 100644 --- a/templates/sso/serviceaccount/reset.html +++ b/templates/sso/serviceaccount/reset.html @@ -7,7 +7,7 @@

This service will reset your password for account {{ acc.service_uid }} on {{ acc.service }}. If you wish to continue please click the link below.

- + {{ form.as_table }}
diff --git a/templates/sso/serviceaccount/resetcomplete.html b/templates/sso/serviceaccount/resetcomplete.html index 23600a7..d8c5188 100644 --- a/templates/sso/serviceaccount/resetcomplete.html +++ b/templates/sso/serviceaccount/resetcomplete.html @@ -15,7 +15,7 @@ Password:{{ passwd }} -

Return to your profile page

+

Return to your profile page

{% endif %} {% endblock %}