Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change from /user?email= to /user/email - use decorators for auth checks. it looks like nobody posts anyway?
- Loading branch information
Dolapo Falola
committed
Jan 10, 2011
1 parent
260d367
commit 18ada37
Showing
2 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,19 @@ | |||
{% extends "base.html" %} | {% extends "base.html" %} | ||
|
|
||
{% block body %} | {% block body %} | ||
<h2><a href="/user?email={{ current_user.email }}">{{ current_user.email }}</a></h2> | <h2><a href="/user/{{ current_user.email }}">{{ current_user.email }}</a></h2> | ||
currently | currently | ||
{% if current_user.enabled %} | {% if current_user.enabled %} | ||
<b>enabled</b> <a href="?setenabled=0">disable</a> | <b>enabled</b> <a href="?setenabled=0">disable</a> | ||
{% else %} | {% else %} | ||
<b>disabled</b> <a href="?setenabled=1">enable</a> | <b>disabled</b> <a href="?setenabled=1">enable</a> | ||
{% endif %} | {% endif %} | ||
|
|||
<h3>Users</h3> | <h3>Users</h3> | ||
{% for user in all_users %} | {% for user in all_users %} | ||
<a href="/user?email={{ user.email }}">{{ user.email }}</a> | <a href="/user/{{ user.email }}">{{ user.email }}</a> | ||
<br/> | <br/> | ||
{% endfor %} | {% endfor %} | ||
|
|
||
|
|||
{% endblock %} | {% endblock %} |