Add a user list
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="{%url forums.views.index%}">Forums</a></li>
|
||||
<li><a href="{%url profiles.views.list %}">User List</a></li>
|
||||
<li><a href="{% url petition.views.create %}">Create Petition</a></li>
|
||||
{% get_flatpages '/' as pages %}
|
||||
{% for page in pages %}
|
||||
|
13
templates/profiles/list.html
Normal file
13
templates/profiles/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base_simple.html' %}
|
||||
{% load avatar_tags %}
|
||||
|
||||
{% block title %}Users{% endblock %}
|
||||
{% block sectiontitle %}Users{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul id='profile-list'>
|
||||
{% for user in profiles %}
|
||||
<li>{% avatar user %}<p>{{user}}</p></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user