Skip to content

Commit

Permalink
fixed the author_role
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishim12 committed Aug 23, 2024
1 parent 6ee7605 commit 52778f2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions article/templates/article/objects/author_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
<a href="{{ author.author.full_url }}"> {{ author.author.full_name|safe }}</a>
</span>
<span class="author_role">
{% if author.author_role == "org_role" %}
{{author.author.ubyssey_role}}
{% else %}
{{ author_roles|join:", " }}
{% endif %}
{% for role in author_roles %}
{% if role == "org_role" %}
{{ author.author.ubyssey_role }}{% if not forloop.last %},{% endif %}
{% else %}
{{ role }}{% if not forloop.last %},{% endif %}
{% endif %}
{% endfor %}
</span>
</p>
</div>
Expand Down

0 comments on commit 52778f2

Please sign in to comment.