Skip to content

Commit

Permalink
fix: notice
Browse files Browse the repository at this point in the history
  • Loading branch information
crab85193 committed Jan 16, 2024
1 parent 3956647 commit 40ec3f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions templates/main_app/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@
<i class="bi bi-info-circle text-primary"></i>
{% endif %}
<div>
<h4>{{ notice.title|truncatechars:20 }}</h4>
<p>{{ notice.message|truncatechars:20 }}</p>
{% if request.LANGUAGE_CODE == 'en' %}
<h4>{{ notice.title_en|truncatechars:20 }}</h4>
<p>{{ notice.message_en|truncatechars:20 }}</p>
{% else %}
<h4>{{ notice.title_ja|truncatechars:20 }}</h4>
<p>{{ notice.message_ja|truncatechars:20 }}</p>
{% endif %}
<p>{{ notice.datetime }}</p>
</div>
</li>
Expand Down

0 comments on commit 40ec3f8

Please sign in to comment.