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

Commit a082064

Browse files
committed
Fix layouting with "strong" in template
1 parent 4a5a7d2 commit a082064

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

inyoka_theme_default/static/style/inyoka/portal.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
vertical-align: middle;
3535
}
3636

37+
.private-message {
38+
&-unread {
39+
font-weight: bold;
40+
}
41+
}
42+
3743
&-privmsg-table {
3844
th.actions {
3945
text-align: center;
@@ -95,6 +101,7 @@
95101
}
96102
}
97103
}
104+
98105
.message {
99106
margin-bottom: 25px;
100107
.head {

inyoka_theme_default/templates/portal/privmsg/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@
128128
{% for entry in entries %}
129129
<tr{% if message == entry.message %} class="active_pn"{% endif %}>
130130
<td data-title="{% trans %}Subject{% endtrans %}">
131-
{% if not entry.read %}<strong>{% endif %}
132-
<a href="{{ entry|url }}">{{ entry.message.subject|e|truncate(50,false,'...') }}</a>
133-
{% if not entry.read %}</strong>{% endif %}
131+
<a href="{{ entry|url }}"
132+
{% if not entry.read %}class="private-message-unread"{% endif %}
133+
>
134+
{{ entry.message.subject|e|truncate(50)}}
135+
</a>
134136
</td>
135137
<td data-title="{% trans %}From{% endtrans %}">
136138
<a{% if not entry.message.author.is_active %} class="user_inactive"{% endif %} href="{{ entry.message.author|url }}">

0 commit comments

Comments
 (0)