SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 501da4c1 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Minor improvements on multi-journal system

parent 341ce530
No related branches found
No related tags found
No related merge requests found
...@@ -11,20 +11,21 @@ ...@@ -11,20 +11,21 @@
{% endblock comment_author %} {% endblock comment_author %}
on {{comment.date_submitted|date:'Y-m-d'}} on {{comment.date_submitted|date:'Y-m-d'}}
</h3> </h3>
<h4> {% if comment.in_reply_to_comment or comment.in_reply_to_report %}
{% if comment.in_reply_to_comment %} <h4>
(in reply to <a href="#comment_id{{comment.in_reply_to_comment.id}}">{{comment.in_reply_to_comment.comment.get_author_str}}</a> on {{comment.in_reply_to_comment.date_submitted|date:'Y-m-d'}}) {% if comment.in_reply_to_comment %}
{% elif comment.in_reply_to_report %} (in reply to <a href="#comment_id{{comment.in_reply_to_comment.id}}">{{comment.in_reply_to_comment.comment.get_author_str}}</a> on {{comment.in_reply_to_comment.date_submitted|date:'Y-m-d'}})
(in reply to <a href="#report_id{{comment.in_reply_to_report.id}}"> {% elif comment.in_reply_to_report %}
(in reply to <a href="#report_id{{comment.in_reply_to_report.id}}">
{% if not comment.in_reply_to_report.anonymous %} {% if not comment.in_reply_to_report.anonymous %}
{{comment.in_reply_to_report.get_author_str}} {{comment.in_reply_to_report.get_author_str}}
{% else %} {% else %}
Report {{comment.in_reply_to_report.id}} Report {{comment.in_reply_to_report.id}}
{% endif %} {% endif %}
</a> on {{comment.in_reply_to_report.date_submitted|date:'Y-m-d'}}) </a> on {{comment.in_reply_to_report.date_submitted|date:'Y-m-d'}})
{% endif %} {% endif %}
</h4>
</h4> {% endif %}
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<footer class="secondary container-fluid py-2"> <footer class="secondary container-fluid py-2">
<div class="row my-1"> <div class="row my-1">
<div class="col-12"> <div class="col-12">
SciPost Physics is published by the SciPost Foundation under the journal doi: 10.21468/SciPostPhys and ISSN 2542-4653. {{journal}} is published by the SciPost Foundation under the journal doi: 10.21468/{{journal.name}} and ISSN {{journal.issn}}.
</div> </div>
</div> </div>
</footer> </footer>
......
...@@ -6,7 +6,7 @@ from journals import views as journals_views ...@@ -6,7 +6,7 @@ from journals import views as journals_views
urlpatterns = [ urlpatterns = [
# Journals # Journals
url(r'^$', journals_views.journals, name='journals'), url(r'^$', TemplateView.as_view(template_name='journals/journals.html'), name='journals'),
url(r'^journals_terms_and_conditions$', url(r'^journals_terms_and_conditions$',
TemplateView.as_view(template_name='journals/journals_terms_and_conditions.html'), TemplateView.as_view(template_name='journals/journals_terms_and_conditions.html'),
name='journals_terms_and_conditions'), name='journals_terms_and_conditions'),
......
...@@ -28,10 +28,6 @@ from guardian.decorators import permission_required ...@@ -28,10 +28,6 @@ from guardian.decorators import permission_required
# Journals # Journals
############ ############
def journals(request):
return render(request, 'journals/journals.html')
def landing_page(request, doi_string): def landing_page(request, doi_string):
journal = get_object_or_404(Journal, doi_string=doi_string) journal = get_object_or_404(Journal, doi_string=doi_string)
......
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