Source

cardiff-research-applications / publications / templates / all_publications.html

The default branch has multiple heads

<h3 id = "index">Index of publications</h3>
<ul class = "none">
	{% regroup all_publications by kind as types %}
	{% for publication_set in types %}
		<li>
			<strong><a href ="#{{ publication_set.grouper|slugify }}">{{ publication_set.grouper }}</a></strong>
			<ul class = "horizontal">
				{% regroup publication_set.list by get_publication_year as publicationdates %}
				{% for date in publicationdates %}
					<li><a href = "#{{ publication_set.grouper|slugify }}-{{ date.grouper }}">{{ date.grouper }}</a></li>
				{% endfor %}
			</ul>
		</li>
	{% endfor %}
</ul>

<h3>Publications</h3>
<ul>
	{% for publication_set in types %}
		<li id = "{{ publication_set.grouper|slugify }}">{{ publication_set.grouper }}
			<ul>
				{% regroup publication_set.list by get_publication_year as publicationdates %}
				{% for date in publicationdates %}
					<li id = "{{ publication_set.grouper|slugify }}-{{ date.grouper }}">{{ date.grouper }}
		        		<ul>
							{% for publication in date.list %}
								<li>{% include publication.template %}</li>
							{% endfor %}
						</ul>
					</li>
				{% endfor %}
			</ul>
		</li>
	{% endfor %}
</ul>