From 2825250043a2acaef1e2e19db3c7032a57f4cc21 Mon Sep 17 00:00:00 2001 From: theinterned Date: Wed, 12 Jan 2011 17:43:20 -0500 Subject: [PATCH] wired up 'member actions' (un/follow, message OR edit profile) for project lead --- templates/projects/project.html | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/templates/projects/project.html b/templates/projects/project.html index acf637f..5ef1b50 100644 --- a/templates/projects/project.html +++ b/templates/projects/project.html @@ -103,9 +103,23 @@
- {{ _('Follow User') }} - {{ _('Message') }} -
+ {% if project.created_by == user.get_profile %} + {{ _('Edit Profile') }} + {% else %} + {% if project.created_by in user.get_profile.following %} +
+ {% csrf_token %} + +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %} + {{ _('Private Message')}} + {% endif %} +