SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0d3bb724 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add auto-generated toc for Proceedings issue

parent 77ca71a5
No related branches found
No related tags found
No related merge requests found
......@@ -16,13 +16,18 @@
{% include 'partials/proceedings/summary.html' with proceedings=proceedings %}
{% comment %}
<form method="post" action="{% url 'colleges:fellowship_terminate' fellowship.id %}" class="d-inline">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Terminate Fellowship</button>
</form>
<a href="{% url 'colleges:fellowship_edit' fellowship.id %}" class="btn btn-info ml-2">Edit Fellowship</a>
{% endcomment %}
{% comment %}
<form method="post" action="{% url 'colleges:fellowship_terminate' fellowship.id %}" class="d-inline">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Terminate Fellowship</button>
</form>
<a href="{% url 'colleges:fellowship_edit' fellowship.id %}" class="btn btn-info ml-2">Edit Fellowship</a>
{% endcomment %}
<h3>Table of contents</h3>
<p>
View the table of contents in <a href="javascript:;" data-toggle="modal" data-target="#textocmodal">TeX format</a>
</p>
<h3 class="mt-3">All Guest Fellowships of this Proceedings</h3>
......@@ -60,6 +65,7 @@
</table>
<h3>All Submissions for this Proceedings Issue</h3>
<table class="table table-hover">
<thead>
<tr>
......@@ -82,4 +88,23 @@
</tbody>
</table>
<div class="modal" id="textocmodal" tabindex="-1" role="dialog" aria-hidden="true" aria-labelledby="textocmodal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="pb-4">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div>{% include 'proceedings/proceedings_toc.html' with proceedings=proceedings %}</div>
</div>
</div>
</div>
</div>
{% endblock %}
<pre>
\begin{itemize}
{% for pub in proceedings.issue.publications.all|dictsort:"paper_nr" %}
\item {{ pub.author_list }}, {\it {{ pub.title }} }, {{ pub.paper_nr }}
{% endfor %}
\end{itemize}
</pre>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment