Bugfix Id instead of names in url

This commit is contained in:
OzzieIsaacs 2017-02-04 10:01:28 +01:00 committed by GitHub
parent 861920af88
commit ee91fc03ef

View File

@ -21,7 +21,7 @@
</div>
<div class="meta">
<p class="title">{{entry.title|shortentitle}}</p>
<p class="author"><a href="{{url_for('author', name=entry.authors[0].name | urlencode) }}">{{entry.authors[0].name}}</a></p>
<p class="author"><a href="{{url_for('author', id=entry.authors[0].id) }}">{{entry.authors[0].name}}</a></p>
{% if entry.ratings.__len__() > 0 %}
<div class="rating">
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}