Don't display num if it's None in the context title

This commit is contained in:
Mark Veidemanis 2022-09-02 07:20:30 +01:00
parent f26daa2cb4
commit a9453b6459
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@
</div>
<div id="tab-content-{{ unique }}">
<div class="is-active" data-content="1">
<h4 class="subtitle is-4">Scrollback of {{ channel }} on {{ net }}{{ num }}</h4>
<h4 class="subtitle is-4">Scrollback of {{ channel }} on {{ net }}{% if num is not None %}{{ num }}{% endif %}</h4>
{% include 'partials/context_table.html' %}
{% if user.is_superuser and source == 'irc' %}
<form method="PUT">

View File

@ -17,7 +17,7 @@
value="{{ params.query }}"
class="input"
type="text"
placeholder="(science | tech | art) + (interest) -hello">
placeholder="Token search: (science | tech | art) + (interest) -hello">
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
@ -417,7 +417,7 @@
value="{{ params.query_full }}"
class="input"
type="text"
placeholder="msg: science AND src: 4ch AND channel: 100293">
placeholder="Full query: msg: science AND src: 4ch AND channel: 100293">
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
@ -433,7 +433,7 @@
class="input"
type="tags"
name="tags"
placeholder="nick: john"
placeholder="Tag search: nick: john"
value="{{ params.tags }}">
</div>
<div class="is-hidden"></div>