~lucio.torre/graphite/add-events

« back to all changes in this revision

Viewing changes to webapp/graphite/templates/events.html

  • Committer: lucio.torre at gmail
  • Date: 2011-08-23 21:17:03 UTC
  • Revision ID: lucio.torre@gmail.com-20110823211703-tfemltk3cpn5rcs6
fixes, documentation and new events functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% autoescape off %}
2
 
 
3
1
<html>
4
2
  <head>
5
3
    <title>Events</title>
21
19
        </div>
22
20
        <div class="graphite">
23
21
            <div id="main" >
24
 
              <table class="styledtable" width=100%>
25
 
                <tr><th>when</th><th>what</th><th>tags</th></tr>
26
 
                {% for event in events %}
27
 
                    <tr>
28
 
                        <td>{{event.when|date:"H:m:s D d M Y" }}</td>
29
 
                        <td><a href="/events/{{event.id}}/">{{event.what}}</a></td>
30
 
                        <td>{{event.tags}}</td>
31
 
                    </tr>
32
 
                {% endfor %}
 
22
              {% if events %}
 
23
                <table class="styledtable" width=100%>
 
24
                  <tr><th>when</th><th>what</th><th>tags</th></tr>
 
25
                  {% for event in events %}
 
26
                      <tr>
 
27
                          <td>{{event.when|date:"H:m:s D d M Y" }}</td>
 
28
                          <td><a href="/events/{{event.id}}/">{{event.what}}</a></td>
 
29
                          <td>{{event.tags}}</td>
 
30
                      </tr>
 
31
                  {% endfor %}
 
32
              {% else %}
 
33
                <br/>No events. Add events using 
 
34
                <a href="/admin/events/event/">the admin interface</a> or by posting
 
35
                (eg, curl -X POST http://localhost:8000/events/ -d
 
36
                '{"what": "Something Interesting"}')
 
37
              {% endif %}
33
38
              </table>
34
39
            </div>
35
40
        </div>
36
41
    </body>
37
42
</html>
38
 
 
39
 
{% endautoescape %}
 
 
b'\\ No newline at end of file'