~rorymcc/loco-team-portal/lp-616544

« back to all changes in this revision

Viewing changes to templates/events/team_event_detail_comments.inc.html

  • Committer: Rory McCann
  • Date: 2010-08-14 22:21:58 UTC
  • Revision ID: rory@technomancy.org-20100814222158-a6319sdndbyoi6tj
provisional support for nicer 'organising team(s)' layout. note: since currently only one team is supported, i've removed the (s), but added in commented code that can be used when it's ready

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load i18n %}
 
2
{% if team_event_object.teameventcomment_set.all %}
 
3
<table id="team-event-comments">
 
4
{% regroup team_event_object.teameventcomment_set.all by date_created|date:"D d M Y" as comment_list %}
 
5
 
 
6
{% for comment_date in comment_list %}
 
7
        <tr>
 
8
        <th class="form-item-label" scope="row" colspan=2><label>{{comment_date.grouper}}</label></th>
 
9
        </tr>
 
10
        {% for comment in comment_date.list %}
 
11
        <tr>
 
12
        <th class="form-item-label" scope="row"><label>{{comment.comment_by}}:</label></th>
 
13
        <td class="form-item-value">{{comment.comment}}</td>
 
14
        </tr>
 
15
        {% endfor %}
 
16
{% endfor %}
 
17
</table>
 
18
{% endif %}