SciPost Code Repository

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

Alter stuff

parent 2efe4cc0
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ class NewsItem(models.Model):
class Meta:
db_table = 'scipost_newsitem'
ordering = ['-date']
def __str__(self):
return self.date.strftime('%Y-%m-%d') + ', ' + self.headline
......@@ -9,7 +9,11 @@
<nav class="submenu">
<span class="item">Our Journals:</span>
{% for journal in journals %}
<a href="{{journal.get_absolute_url}}" class="item">{{journal}}</a>
{% if journal.active %}
<a href="{{journal.get_absolute_url}}" class="item">{{journal}}</a>
{% else %}
<a href="{% url 'journal:about' journal.name %}" class="item">{{journal}}</a>
{% endif %}
{% endfor %}
</nav>
{% endblock %}
......
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