Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit aa64c54

Browse files
committed
topic.html: signature
1 parent adc7643 commit aa64c54

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

inyoka_theme_default/static/style/inyoka/forum.less

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,15 @@
147147
&:target > &-heading {
148148
background-color: @active-target-bg;
149149
}
150-
& > &-body {
150+
&-body {
151151
&:extend(.panel-body);
152+
153+
&-signature {
154+
border-top: 1px solid lighten(@post-signature, 30%);
155+
color: @post-signature;
156+
padding-top: 1em;
157+
margin-top: 2em;
158+
}
152159
}
153160
& > &-footer {
154161
&:extend(.panel-footer);

inyoka_theme_default/static/style/inyoka/variables.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
@diff-removed: #e99;
2222
@diff-ellipsis: @table-bg-accent;
2323

24+
@post-signature: @gray-light;
25+
2426
//** Custom border-radius
2527

2628
@border-radius-base: 0;

inyoka_theme_default/templates/forum/topic.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696

9797
<div class="forum-post-body">
9898
{{ post.get_text() }}
99+
100+
{% if post.author.signature and not USER.settings['hide_signatures'] %}
101+
<div class="forum-post-body-signature">
102+
{{ post.author.signature_rendered }}
103+
</div>
104+
{% endif %}
99105
</div>
100106

101107
<div class="forum-post-footer">

0 commit comments

Comments
 (0)