Skip to content

Commit 108e9fd

Browse files
authored
Feature/comment icon (#141)
* Comment icon
1 parent 24a4de4 commit 108e9fd

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

svjis/articles/static/css/styles.css

+8
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,10 @@ footer a:hover {
870870
font-size: 100%;
871871
}
872872

873+
.wrapper2 {
874+
margin: 0px 5px 0px 5px;
875+
}
876+
873877
input {
874878
font-size:100%;
875879
}
@@ -991,6 +995,10 @@ footer a:hover {
991995
}
992996

993997
/* Boxes */
998+
.boxes {
999+
margin: 10px 0px 10px 0px;
1000+
}
1001+
9941002
.box1, .box2 {
9951003
max-width: 400px;
9961004
}

svjis/articles/templates/article.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="article-detail">
88
<h1 class="article-title">{{ obj.header|highlight:search|safe }}</h1>
99
<p class="info">
10-
<a href="{% url 'main_filtered' menu=obj.menu.id %}">{{ obj.menu.description }}</a>: <strong>{{ obj.created_date|date:"d.m.Y" }}</strong>, {% translate 'Author' %}: <strong>{{ obj.author.first_name }}&nbsp;{{ obj.author.last_name }}</strong>{% if obj.comments %}, {% translate 'Comments' %}: <strong>{{ obj.comments|length }}</strong>{% endif %}
10+
<a href="{% url 'main_filtered' menu=obj.menu.id %}">{{ obj.menu.description }}</a>: <strong>{{ obj.created_date|date:"d.m.Y" }}</strong>, {% translate 'Author' %}: <strong>{{ obj.author.first_name }}&nbsp;{{ obj.author.last_name }}</strong>
1111
</p>
1212
{{ obj.perex|highlight:search|safe }}
1313
{{ obj.body|inject_pictures:assets|highlight:search|safe }}

svjis/articles/templates/main.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ <h1 class="article-title-list"><a {% if search != '' %} href="{% url 'article' s
1919
<a href="{% url 'main_filtered' menu=obj.menu.id %}">{{ obj.menu.description }}</a>:
2020
<strong>{{ obj.created_date|date:"d.m.Y" }}</strong>,
2121
{% translate 'Author' %}: <strong>{{ obj.author.first_name }}&nbsp;{{ obj.author.last_name }}</strong>
22-
{% if obj.comments %}, {% translate 'Comments' %}: <strong>{{ obj.comments|length }}</strong>{% endif %}
22+
{% if obj.comments %}
23+
&nbsp;
24+
<svg aria-hidden="true" viewBox="0 0 16 16" height="12" width="12" fill="currentColor" style="vertical-align: middle;">
25+
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
26+
</svg>
27+
<strong>{{ obj.comments|length }}</strong>
28+
{% endif %}
2329
</p>
2430
<p>{{ obj.perex|highlight:search|safe }}</p>
2531
</div>

0 commit comments

Comments
 (0)