1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

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 { .small {
font-size: 0.8em; font-size: 0.8em;
} }
.tiny {
font-size: 0.5em;
}
.centred { .centred {
text-align: center; text-align: center;
} }

View file

@ -9,7 +9,7 @@
<body> <body>
<div class="container centred"> <div class="container centred">
<h1 class="thin centred">Set accounts to learn from</h1> <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;"> <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-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> <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="row light">
<div class="panel-icon"></div> <div class="panel-icon"></div>
<div class="panel-text"> <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 class="panel-status">12345 posts stored</div>
</div> </div>
<div class="panel-actions"> <div class="panel-actions">

View file

@ -21,7 +21,8 @@
<div class="row light"> <div class="row light">
<div class="panel-icon {% if bot['enabled'] %}online{% else %}offline{% endif %}"></div> <div class="panel-icon {% if bot['enabled'] %}online{% else %}offline{% endif %}"></div>
<div class="panel-text"> <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 class="panel-status">{% if bot['enabled'] %}Online{% else %}Offline{% endif %}, learning from {{ bot_users[bot['handle']] }} accounts</div>
</div> </div>
<div class="panel-actions"> <div class="panel-actions">