Skip to content

Commit

Permalink
fix(institutions): Show [No City] if no institution city
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Oct 15, 2024
1 parent a2f9875 commit 81f3c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include "global_search_bar.html" %}
</object>
<h3>{{ institution.name }} {% if institution.siglum %}({{ institution.siglum }}){% endif %}</h3>
<h4>{{ institution.city }}, {{ institution.country }}</h4>
<h4>{% if institution.city %}{{ institution.city }}{% else %}[No City]{% endif %}, {{ institution.country }}</h4>
{% if institution_authorities %}
<hr />
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ <h3>Institutions</h3>
{{ institution.country }}
</td>
<td>
{{ institution.city }}
{% if institution.city %}
{{ institution.city }}
{% else %}
[No City]
{% endif %}
</td>
<td class="text-wrap">
<a href="{% url "institution-detail" institution.id %}">
Expand Down

0 comments on commit 81f3c09

Please sign in to comment.