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>
<div id="tab-content-{{ unique }}"> <div id="tab-content-{{ unique }}">
<div class="is-active" data-content="1"> <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' %} {% include 'partials/context_table.html' %}
{% if user.is_superuser and source == 'irc' %} {% if user.is_superuser and source == 'irc' %}
<form method="PUT"> <form method="PUT">

View File

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