# HG changeset patch # User Brian Neal # Date 1258229357 0 # Node ID 903ae6168071e7627f46401f50875a779b918f2a # Parent 9c18250972d57299c32e980ca944af97e75cbe54 Bio: added odd/even styling to profiles. Make member's list viewable to logged in users only. diff -r 9c18250972d5 -r 903ae6168071 gpp/bio/views.py --- a/gpp/bio/views.py Sat Nov 14 04:32:32 2009 +0000 +++ b/gpp/bio/views.py Sat Nov 14 20:09:17 2009 +0000 @@ -23,6 +23,7 @@ ####################################################################### +@login_required def member_list(request, type='user', page=1): if type == 'user': users = auth.models.User.objects.all().order_by('username') diff -r 9c18250972d5 -r 903ae6168071 gpp/templates/bio/view_profile.html --- a/gpp/templates/bio/view_profile.html Sat Nov 14 04:32:32 2009 +0000 +++ b/gpp/templates/bio/view_profile.html Sat Nov 14 20:09:17 2009 +0000 @@ -2,15 +2,23 @@ {% load avatar_tags %} {% load elsewhere_tags %} {% load core_tags %} +{% load forum_tags %} {% block title %}User Profile for {{ subject.username }}{% endblock %} +{% block custom_js %} + +{% endblock %} {% block content %}

User Profile for {{ subject.username }}

{% avatar subject %}

- +
- + {% if profile.location %}
Full Name{{ subject.get_full_name }}
Date Joined{{ subject.date_joined|date:"F d, Y" }}
Last Login{{ subject.last_login|date:"F d, Y @ H:i" }}
Last Login{% forum_date subject.last_login user %}
Active Member{% bool_icon subject.is_active %}
Staff Member{% bool_icon subject.is_staff %}