~bnrubin/bantrackertwo/devel

« back to all changes in this revision

Viewing changes to templates/bt/events.html

  • Committer: Benjamin Rubin
  • Date: 2009-09-02 02:14:31 UTC
  • Revision ID: bnrubin@romulus-20090902021431-02x226yec1d5sxal
- Cleaned up Event code and presentation
- Added basic Issue and Settings forms and presentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
<div id="events">
7
7
<table>
8
8
<tr class="event-header">
 
9
    <th class="channel">Channel</th>
 
10
    <th class="nick">Nick/Mask</th>
9
11
    <th class="operator">Operator</th>
10
 
    <th class="channel">Channel</th>
11
12
    <th class="event-time">Time</th>
12
13
    <th class="event-log">Log</th>
13
14
</tr>
 
15
 
14
16
{% for e in events %}
15
 
<tr class="event-info">
16
 
    <td class="operator">{{ e.operator }}</td>
17
 
    <td class="channel">{{ e.channel }}</td>
18
 
    <td class="event-time">{{ e.create_date|date:"M d, Y H:i" }} </td>
19
 
    <td class="event-log"><a href="#">LOG</a></td>
20
 
</tr>
 
17
<div class="bleh">
 
18
    <tr class="event-info" id="id-{{ e.id }}">
 
19
        <td class="channel">{{ e.channel }}</td>
 
20
        <td class="nick">
 
21
            {% if e.ban %}
 
22
                {{ e.ban.mask }}
 
23
            {% else %}
 
24
                {{ e.nick }}
 
25
            {% endif %}
 
26
        </td>
 
27
        <td class="operator">{{ e.operator }}</td>
 
28
        <td class="event-time">{{ e.create_date|date:"M d, Y H:i" }}</td>
 
29
        <td class="event-log"><a href="#">LOG</a></td>
 
30
    </tr>
 
31
{% for comment in e.comments.all %}
 
32
    <tr id="comment-{{ comment.id }}" class="comment-info">
 
33
        <td> </td>
 
34
        <td class="comment-text"><b>{{ comment.author }} ({{ comment.create_date|date:"M d, Y H:i" }}): </b>{{ comment.text }}</td>
 
35
    </tr>
 
36
{% endfor %}
 
37
</div>
21
38
{% endfor %}
22
39
</table>
23
40
</div>