[damned-lies] Add last login date of members for team coordinators



commit b6e5b69e43f53733442b5d3025cb75a245414a98
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Mar 19 18:22:23 2011 +0100

    Add last login date of members for team coordinators

 templates/teams/team_detail.html |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/templates/teams/team_detail.html b/templates/teams/team_detail.html
index 2430a3b..2f03c4e 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -82,7 +82,10 @@ $(document).ready(function() {
       {% else %}
         <ul>
         {% for member in group.members %}
-          <li><a href="{{ member.get_absolute_url }}">{{ member.name }}</a></li>
+          <li><a href="{{ member.get_absolute_url }}"
+              {% if can_edit_team %}
+                 title="{% blocktrans with member.last_login|date as last_login %}Last login on {{ last_login }}{% endblocktrans %}"
+              {% endif %}>{{ member.name }}</a></li>
         {% endfor %}
         </ul>
       {% endif %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]