forked from mozilla/mozilla-ignite
/
all.html
53 lines (49 loc) · 1.83 KB
/
all.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends 'base.html' %}
{% from 'layout/breadcrumbs.html' import breadcrumbs %}
{% from 'layout/helpers.html' import sectiontitle, challenge_nav with context %}
{% block page_title %}
{{ _('Entries | {part} | Mozilla Labs')|f(part=challenge.title) }}
{% endblock %}
{% block page_id %}all_entries{% endblock %}
{% block section_class %}projects{% endblock %}
{% block breadcrumbs %}
{{ breadcrumbs(
(url('innovate_splash'), _('Mozilla Labs Home')),
(url('projects_programs'), _('Programs')),
(url('projects_show', slug=project.slug), project.name),
(challenge.get_absolute_url(), challenge.title),
last=_('Entries')) }}
{% endblock %}
{% block content %}
{{ sectiontitle(_('All Entries to {part}')|f(part=challenge.title)) }}
{{ challenge_nav(challenge.get_image_src(), challenge.summary, challenge.start_date, challenge.end_date) }}
<section class="c4 clearfix">
<div class="row clearfix">
{% if entries %}
<ul class="db_objects entries">
{% for e in entries %}
<li class="obj">
<article>
<h2 class="light sans">{{ e.title }}</h2>
<p>{{ e.brief_description }}</p>
<p><a href="{{ url('entry_show', project=project.slug, slug=challenge.slug, entry_id=e.id) }}">Read the full entry</a></p>
<footer>
<p>Entry from:</p>
<ul class="db_related clearfix">
{% for person in e.created_by.all() -%}
<li>
<a href="{{ url('users_profile', username=person.user.username) }}">
<img src="{{ person.avatar_url(32) }}" width="32" height="32">
</a>
</li>
{% endfor -%}
</ul>
</footer>
</article>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</section>
{% endblock %}