mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 22:17:59 +00:00
fix instance table styling and add footer
This commit is contained in:
parent
ae490a9bf3
commit
0ad0bb0ff5
|
@ -14,3 +14,9 @@
|
|||
|
||||
#content
|
||||
-block content
|
||||
|
||||
#footer.section
|
||||
.col1
|
||||
.version
|
||||
%a(href="https://git.pleroma.social/pleroma/relay")
|
||||
ActivityRelay/{{version}}
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
%p
|
||||
You may subscribe to this relay with the address:
|
||||
%a(href="https://{{domain}}/actor") << https://{{domain}}/actor</a>
|
||||
%p
|
||||
To host your own relay, you may download the code at
|
||||
%a(href="https://git.pleroma.social/pleroma/relay") << git.pleroma.social/pleroma/relay
|
||||
|
||||
-if config["whitelist-enabled"]
|
||||
%p.section.message
|
||||
|
|
|
@ -43,30 +43,30 @@ p:not(:last-child) {
|
|||
}
|
||||
|
||||
table {
|
||||
border-spacing: 0px;
|
||||
/* border-radius: 10px; */
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid var(--primary);
|
||||
border-radius: 5px;
|
||||
border-spacing: 0px;
|
||||
}
|
||||
|
||||
/*thead td:first-child {
|
||||
border-top-left-radius: 10px;
|
||||
table tbody tr:nth-child(even) td {
|
||||
background-color: var(--section-background);
|
||||
}
|
||||
|
||||
thead td:first-child {
|
||||
border-top-left-radius: 3px;
|
||||
}
|
||||
|
||||
thead td:last-child {
|
||||
border-top-right-radius: 10px;
|
||||
border-top-right-radius: 3px;
|
||||
}
|
||||
|
||||
tbody tr:last-child td:first-child {
|
||||
border-bottom-left-radius: 10px;
|
||||
border-bottom-left-radius: 5px;
|
||||
}
|
||||
|
||||
tbody tr:last-child td:last-child {
|
||||
border-bottom-right-radius: 10px;
|
||||
}*/
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 5px;
|
||||
|
@ -111,6 +111,15 @@ table tbody td {
|
|||
text-align: center !important;
|
||||
}
|
||||
|
||||
#footer {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto;
|
||||
}
|
||||
|
||||
#footer .version {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
|
||||
.message {
|
||||
color: var(--message-text) !important;
|
||||
|
@ -122,7 +131,7 @@ table tbody td {
|
|||
background-color: var(--section-background);
|
||||
padding: var(--spacing);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.section:not(:first-child) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import typing
|
|||
from hamlish_jinja.extension import HamlishExtension
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
from . import __version__
|
||||
from .database.config import THEMES
|
||||
from .misc import get_resource
|
||||
|
||||
|
@ -41,6 +42,7 @@ class Template(Environment):
|
|||
new_context = {
|
||||
'view': view,
|
||||
'domain': self.app.config.domain,
|
||||
'version': __version__,
|
||||
'config': config,
|
||||
'theme': THEMES.get(config['theme'], THEMES['default']),
|
||||
**(context or {})
|
||||
|
|
Loading…
Reference in a new issue