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

« back to all changes in this revision

Viewing changes to templates/events/event_list.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
{% extends "base.html" %}
 
2
{% load i18n %}
 
3
 
 
4
{% block title %}{% trans "Ubuntu LoCo Events List" %}{% endblock %}
 
5
 
 
6
{% block sub_nav_links %}
 
7
{% if user_is_on_lc %}
 
8
<a class="sub-nav-item" href="{% url global-event-new %}">{% trans "Add Global Event" %}</a>
 
9
{% endif %}
 
10
{% if user.is_authenticated %}
 
11
<a class="sub-nav-item" href="{% url team-event-select %}">{% trans "Add Team Event" %}</a>
 
12
{% endif %}
 
13
<a class="sub-nav-item" href="{% url event-history-list %}">{% trans "Past Events" %}</a>
 
14
{% endblock %}
 
15
 
 
16
{% block search_box %}
 
17
<form action="." method="get">
 
18
                {{ form.as_line }}
 
19
                <input type="image" src="/media/img/search.png" title="{% trans "Search" %}" />
 
20
</form>
 
21
{% endblock %}
 
22
 
 
23
{% block content %}
 
24
<article class="main-content">
 
25
<h2>{% trans "Ubuntu LoCo Global Events" %}
 
26
{% if global_event_list %}
 
27
<a class="global_event_ical" href="{% url global-event-list-ical %}">
 
28
<img src="/media/images/ical.png" title="{% trans "Global Events as ical" %}"/></a></h2>
 
29
 
 
30
<p>{% trans "Select a global event below to see more information about it:" %}</p>
 
31
 
 
32
{% include "events/global_event_list.inc.html" %}
 
33
 
 
34
{% else %}
 
35
</h2><p>{% trans "There are currently no  LoCo Global Events" %}</p>
 
36
{% endif %}
 
37
</article>
 
38
 
 
39
<hr class="divide" />
 
40
 
 
41
<article class="main-content">
 
42
<h2>{% trans "Ubuntu LoCo Team Events" %}
 
43
{% if team_event_list %}
 
44
<a class="teams_event_ical" href="{% url teams-event-list-ical %}">
 
45
<img src="/media/images/ical.png" title="{% trans "Team Events as ical" %}"/></a></h2>
 
46
<p>{% trans "Select a team event below to see more information about it:" %}</p>
 
47
 
 
48
{% include "events/team_event_list.inc.html" %}
 
49
 
 
50
{% else %}
 
51
</h2><p>{% trans "There are currently no  LoCo Team Events" %}</p>
 
52
{% endif %}
 
53
 
 
54
</article>
 
55
{% endblock %}