Skip to content

Commit 3bc48c0

Browse files
committed
fixes UI in my comments listing
1 parent 7bba093 commit 3bc48c0

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/Legislator/LegislatorBundle/Resources/public/css/app.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,24 @@ a.button:hover {text-decoration: none;}
2626

2727
#org-unit {font-weight: normal;}
2828

29+
table tr.comment.principal td:first-child {border-left: solid red medium ;}
30+
table tr.comment.technical td:first-child {border-left: solid blue medium ;}
31+
table tr.comment.accepted {background-color: YellowGreen}
32+
table tr.comment.partly-accepted {background-color: orange;}
33+
table tr.comment.rejected {background-color: Tomato;}
34+
2935
#comments {width: 100%;}
3036
#comments form, #comments .button {margin: 0;}
3137
#comments .button {margin-right: 1em;}
3238
#comments th {text-align: center;}
3339
#comments th:first-child {width: 35%;}
3440
#comments th:first-child + th, #comments th:last-child {width: 25%;}
35-
#comments tbody tr {border-bottom: thin dashed #555;}
41+
#my-comments tbody tr, #comments tbody tr {border-bottom: thin dashed #555;}
3642
#comments tbody tr:last-child {border-bottom: none;}
3743

38-
table tr.comment.principal td:first-child {border-left: solid red medium ;}
39-
table tr.comment.technical td:first-child {border-left: solid blue medium ;}
40-
table tr.comment.accepted {background-color: YellowGreen}
41-
table tr.comment.partly-accepted {background-color: orange;}
42-
table tr.comment.rejected {background-color: Tomato;}
44+
#my-comments th:first-child {width: 15%;}
45+
#my-comments th:nth-of-type(2), #my-comments th:nth-of-type(3) {width: 25%;}
46+
#my-comments tr td:first-child {background-color: white;'}
4347

4448
.button-group form, form.action, form.action input {margin: 0}
4549
select {width: inherit;}

src/Legislator/LegislatorBundle/Resources/views/Comment/view_mine.html.twig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99

1010
<h1>{% trans %}menu.my_comments{% endtrans %}</h1>
1111
{% if comments %}
12-
<table id="comments">
12+
<table id="my-comments">
1313
<thead>
1414
<tr>
1515
<th>Dokument</th>
16-
<th width="40%">{% trans %}comment.content{% endtrans %}</th>
16+
<th>{% trans %}comment.content{% endtrans %}</th>
1717
<th>{% trans %}comment.substantiation{% endtrans %}</th>
18-
<th>Reply</th>
19-
<th>{% trans %}common.created_on{% endtrans %}</th>
18+
<th>{% trans %}comment.reply{% endtrans %}</th>
2019
<th>{% trans %}common.modified_on{% endtrans %}</th>
2120
</tr>
2221
</thead>
@@ -27,7 +26,6 @@
2726
<td>{{ comment.content }}</td>
2827
<td>{{ comment.substantiation }}</td>
2928
<td>{{ comment.reply }}</td>
30-
<td>{{ macros.datetime(comment.createdOn) }}</td>
3129
<td>{{ macros.datetime(comment.modifiedOn) }}</td>
3230
</tr>
3331
{% endfor %}

0 commit comments

Comments
 (0)