~dooferlad/summit/requirements_bzr_version_bump

« back to all changes in this revision

Viewing changes to summit/schedule/templates/schedule/tracks.html

  • Committer: Tarmac
  • Author(s): Chris Johnston
  • Date: 2012-01-25 20:00:50 UTC
  • mfrom: (269.2.1 linaro-ui)
  • Revision ID: tarmac@nigelb.me-20120125200050-f9anfprghyux3cca
[r=danilo] Removes "Lead:" if there is no track lead set

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
{% block content %}
7
7
<article class="main-content">
8
 
<h1>{{ summit.title }} Tracks</h1>
 
8
    <h1>{{ summit.title }} Tracks</h1>
9
9
 
10
 
{% for track in summit.track_set.all %}
11
 
{% if forloop.counter == 1 %}
12
 
<div style="display:block;border-bottom-left-radius: 5px 5px;
13
 
border-bottom-right-radius: 5px 5px;clear: both;
14
 
padding: 5px;
15
 
margin-bottom: -3px;">
16
 
<ul class="tracks">
17
 
{% endif %}
18
 
<li>
19
 
<h3><a href="/{{ summit.name }}/track/{{ track.slug|lower }}">{{ track.title }}</a></h3>
20
 
<p>{{ track.description }}</p>
21
 
Lead: {% for lead in track.lead_set.all %}
22
 
<a href="http://launchpad.net/~{{ lead.lead.user }}">{{ lead.lead.name }}</a>{% if not forloop.last %},{% endif %}
23
 
{% endfor %}
24
 
</li>
25
 
{% if forloop.counter|divisibleby:"4" %}
26
 
</ul></div><div style="display:block;border-bottom-left-radius: 5px 5px;
27
 
border-bottom-right-radius: 5px 5px;clear: both;
28
 
padding: 5px;
29
 
margin-bottom: -3px;">
30
 
<ul class="tracks">
31
 
{% endif %}
32
 
{% endfor %}
33
 
</ul></div>
 
10
    {% for track in summit.track_set.all %}
 
11
        {% if forloop.counter == 1 %}
 
12
            <div style="display:block;border-bottom-left-radius: 5px 5px;
 
13
            border-bottom-right-radius: 5px 5px;clear: both;
 
14
            padding: 5px;
 
15
            margin-bottom: -3px;">
 
16
                <ul class="tracks">
 
17
        {% endif %}
 
18
        <li>
 
19
            <h3><a href="/{{ summit.name }}/track/{{ track.slug|lower }}">{{ track.title }}</a></h3>
 
20
            <p>{{ track.description }}</p>
 
21
            {% if track.lead_set %}
 
22
                Lead: {% for lead in track.lead_set.all %}
 
23
                    <a href="http://launchpad.net/~{{ lead.lead.user }}">{{ lead.lead.name }}</a>{% if not forloop.last %},{% endif %}
 
24
                {% endfor %}
 
25
            {% endif %}
 
26
        </li>
 
27
        {% if forloop.counter|divisibleby:"4" %}
 
28
                </ul>
 
29
            </div>
 
30
            <div style="display:block;border-bottom-left-radius: 5px 5px;
 
31
            border-bottom-right-radius: 5px 5px;clear: both;
 
32
            padding: 5px;
 
33
            margin-bottom: -3px;">
 
34
                <ul class="tracks">
 
35
       {% endif %}
 
36
    {% endfor %}
 
37
        </ul>
 
38
    </div>
34
39
</article>
35
40
{% endblock %}