mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-30 16:08:14 +00:00
Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<table>
|
||||
<tr><th>Character Name</th><th>Corp</th></tr>
|
||||
{% for char in characters %}
|
||||
<tr><td><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a></td>
|
||||
<tr><td><a href="{% url sso.views.characters char.id %}">{{ char.name }}</a></td>
|
||||
<td>{{ char.corp }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
href="http://eve-online.com/api">EVE Online API
|
||||
page</a> and a optional description.</p>
|
||||
|
||||
<form action="/profile/add/eveapi" method="post">
|
||||
<form action="{% url sso.views.eveapi_add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<body bgcolor="#2F383D" link="#ffffff" vlink="#ffffff">
|
||||
|
||||
<center><img src="/static/img/dreddit_logo.jpg"><br/>
|
||||
<a color="white" href="/login">Login</a></center>
|
||||
<a color="white" href="{% url registration.auth_login %}">Login</a></center>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<ul>
|
||||
{% for user in users %}
|
||||
<li><a href="/users/{{ user.name }}/">{{ user.name }}</a></li>
|
||||
<li><a href="{% url sso.views.view_user user.name %}/">{{ user.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<table>
|
||||
<tr><th>Character Name</th><th>Corp</th></tr>
|
||||
{% for char in characters %}
|
||||
<tr><td><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a></td>
|
||||
<tr><td><a href="{% url sso.views.view_characters char.id %}/">{{ char.name }}</a></td>
|
||||
<td>{{ char.corp }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block title %}User Lookup{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="/users/" method="post">
|
||||
<form action="{% url sso.views.user_lookup %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
@@ -28,11 +28,11 @@ create a login for a service click the Add Service link</p>
|
||||
<td>{{ acc.service_uid }}</td>
|
||||
<td><a href="{{ acc.service.url }}">{{ acc.service.url }}</a></td>
|
||||
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
|
||||
<td><a href="/profile/del/service/{{ acc.id }}/">Delete</a>
|
||||
<td><a href="{% url sso.views.service_del acc.id %}/">Delete</a>
|
||||
{% if acc.active %}
|
||||
/ <a href="/profile/reset/service/{{ acc.id }}/">Reset</a>
|
||||
/ <a href="{% url sso.views.service_reset acc.id %}/">Reset</a>
|
||||
{% if acc.service.provide_login %}
|
||||
/ <a href="/profile/login/service/{{ acc.id }}/">Login</a>
|
||||
/ <a href="{% url sso.views.service_login acc.id %}/">Login</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
@@ -43,7 +43,7 @@ create a login for a service click the Add Service link</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<a href="/profile/add/service">Add Service</a>
|
||||
<a href="{% url sso.views.service_add %}">Add Service</a>
|
||||
</p>
|
||||
|
||||
<br/>
|
||||
@@ -67,15 +67,15 @@ setup.</p>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.api_status_description }}</td>
|
||||
<td>{{ acc.api_last_updated|naturaltimediff }}</td>
|
||||
<td><a href="/profile/refresh/eveapi/{{ acc.api_user_id }}/">Refresh</a>,
|
||||
<a href="/profile/del/eveapi/{{ acc.api_user_id }}/">Delete</a></td>
|
||||
<td><a href="{% url sso.views.eveapi_refresh acc.api_user_id %}">Refresh</a>,
|
||||
<a href="{% url sso.views.eveapi_del acc.api_user_id %}">Delete</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="/profile/add/eveapi">Add a Eve API key</a>
|
||||
<a href="{% url sso.views.eveapi_add %}">Add a Eve API key</a>
|
||||
</p>
|
||||
|
||||
<br/>
|
||||
@@ -99,7 +99,7 @@ setup.</p>
|
||||
</table>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="/profile/add/reddit">Add a Reddit account</a>
|
||||
<a href="{% url sso.views.reddit_add %}">Add a Reddit account</a>
|
||||
</p>
|
||||
|
||||
<p>If you encounter any errors during using this service, copy the massive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
corporation</p>
|
||||
<p>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</p>
|
||||
<form action="/profile/add/reddit" method="post">
|
||||
<form action="{% url sso.views.reddit_add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
@@ -18,7 +18,7 @@ this is incorrect please raise a bug on the tracker.
|
||||
<tr><td>Password:</td><td>{{ acc.password }}</td></tr>
|
||||
</table>
|
||||
|
||||
<p><a href="/profile">Return to your profile page</a></p>
|
||||
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -8,7 +8,7 @@ create a new account until fixed by a Sysop. If you are having issues logging in
|
||||
|
||||
<p>If you are sure, then please click confirm</p>
|
||||
|
||||
<form action="/profile/del/service/{{ acc.id }}/" method="post">
|
||||
<form action="{% url sso.views.service_del acc.id %}/" method="post">
|
||||
<input name="confirm-delete" type="hidden" value="1"/>
|
||||
<input type="submit" value="Confirm Delete" />
|
||||
</form>
|
||||
|
||||
@@ -8,7 +8,7 @@ then provide select a username you wish to use create the account for<br/>
|
||||
<br/>
|
||||
For details on how to connect to each service, please consult the <a
|
||||
href="http://wiki.dredd.it">wiki</a></p>
|
||||
<form action="/profile/add/service" method="post">
|
||||
<form action="{% url sso.views.service_add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
{% block content %}
|
||||
<p>You have no services available to add to your account</p>
|
||||
|
||||
<p><a href="/profile">Return to your Profile</a></p>
|
||||
<p><a href="{% url sso.views.profile %}">Return to your Profile</a></p>
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<p>This service will reset your password for account {{ acc.service_uid }} on {{ acc.service }}. If you wish to continue please click the link
|
||||
below.</p>
|
||||
|
||||
<form action="/profile/reset/service/{{ serviceid }}/" method="post">
|
||||
<form action="{% url sso.views.service_reset serviceid %}/" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<tr><td>Password:</td><td>{{ passwd }}</td></tr>
|
||||
</table>
|
||||
|
||||
<p><a href="/profile">Return to your profile page</a></p>
|
||||
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user