display bot's instance smaller than username, fixes #12

This commit is contained in:
Lynne Megido 2019-09-02 18:18:47 +10:00
parent fad45bd6d3
commit dc03ebed18
3 changed files with 7 additions and 3 deletions

View File

@ -26,6 +26,9 @@ body {
.small {
font-size: 0.8em;
}
.tiny {
font-size: 0.5em;
}
.centred {
text-align: center;
}

View File

@ -9,7 +9,7 @@
<body>
<div class="container centred">
<h1 class="thin centred">Set accounts to learn from</h1>
<p class="large centred">@botname@example.com</p>
<p class="large centred">{{ handle }}</p>
<p class="centred" style="margin: 50px 0;">
<a class="button btn-primary btn-large" href="/bot/accounts/add" role="button"><i class="fas fa-plus"></i> Add account</a>
<a class="button btn-secondary btn-large" href="/" role="button"><i class="fas fa-arrow-left"></i> Back</a>
@ -20,7 +20,7 @@
<div class="row light">
<div class="panel-icon"></div>
<div class="panel-text">
<div class="panel-name">@user<span class="subtle">@instan.ce</span></div>
<div class="panel-name">@user<span class="subtle tiny">@instan.ce</span></div>
<div class="panel-status">12345 posts stored</div>
</div>
<div class="panel-actions">

View File

@ -21,7 +21,8 @@
<div class="row light">
<div class="panel-icon {% if bot['enabled'] %}online{% else %}offline{% endif %}"></div>
<div class="panel-text">
<div class="panel-name">{{ bot['handle'] }}</div>
{% set handle_list = bot['handle'].split('@') %}
<div class="panel-name">@{{ handle_list[1] }}<span class="subtle tiny">@{{ handle_list[2] }}</span></div>
<div class="panel-status">{% if bot['enabled'] %}Online{% else %}Offline{% endif %}, learning from {{ bot_users[bot['handle']] }} accounts</div>
</div>
<div class="panel-actions">