File tree 2 files changed +24
-23
lines changed
src/Ghost/PostBundle/Resources/views/Topic
2 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" avatar" >
3
3
<a href =" {{ path(' user_show' , {' username' : item .user .username }) }}" ><img width =" 48" height =" 48" src =" {{ gravatar(item .user .email ) }}" /></a >
4
4
</div >
5
+
6
+ {% if item .repliesCount %}
7
+ <div class =" replies" >
8
+ <a href =" {{ path(' topic_show' , { ' id' : item .id }) }}#reply{{ item .repliesCount }}" >{{ item .repliesCount }}</a >
9
+ </div >
10
+ {% endif %}
5
11
<div class =" right" >
6
12
{% if item .repliesCount %}
7
- <div class =" replies" >
8
- <a href =" {{ path(' topic_show' , { ' id' : item .id }) }}#reply{{ item .repliesCount }}" >{{ item .repliesCount }}</a >
9
- </div >
10
- <h3 ><a href =" {{ path(' topic_show' , { ' id' : item .id }) }}#reply{{ item .repliesCount }}" >{{ item .title }}</a >
11
- </h3 >
13
+ <h3 ><a href =" {{ path(' topic_show' , { ' id' : item .id }) }}#reply{{ item .repliesCount }}" >{{ item .title }}</a ></h3 >
12
14
{% else %}
13
15
<h3 ><a href =" {{ path(' topic_show' , { ' id' : item .id }) }}" >{{ item .title }}</a ></h3 >
14
16
{% endif %}
15
-
16
17
<div class =" meta" >
17
18
{% if category is not defined %}
18
19
<a href =" {{ path(' topic_by_category' , {' categoryAlias' : item .category .alias }) }}" class =" category" >{{ item .category .name }}</a > •
19
20
{% endif %}
20
21
<a href =" {{ path(' user_show' , {' username' : item .user .username }) }}" >{{ item .user .username }}</a > • posted {{ item .created | time_ago }}
21
22
{% if item .lastPoster %}
22
- • last reply by
23
- <a href =" {{ path(' user_show' , {' username' : item .lastPoster }) }}" >{{ item .lastPoster }}</a >
23
+ • last reply by <a href =" {{ path(' user_show' , {' username' : item .lastPoster }) }}" >{{ item .lastPoster }}</a >
24
24
{% endif %}
25
25
</div >
26
26
</div >
Original file line number Diff line number Diff line change @@ -148,9 +148,21 @@ pre {
148
148
149
149
.topics .topic .right , .replies .reply .right {
150
150
padding-left : 58px ;
151
+ padding-right : 30px ;
151
152
}
152
153
153
- .topics .right .replies a {
154
+ .topics .topic h3 {
155
+ font-size : 14px ;
156
+ font-weight : normal;
157
+ margin-top : 5px ;
158
+ margin-bottom : 8px ;
159
+ }
160
+
161
+ .topics .topic .replies {
162
+ float : right;
163
+ }
164
+
165
+ .topics .topic .replies a {
154
166
display : inline-block;
155
167
padding : 2px 9px ;
156
168
font-size : 10px ;
@@ -164,29 +176,18 @@ pre {
164
176
text-decoration : none;
165
177
}
166
178
167
- .topics .right .replies a : hover {
179
+ .topics .topic .replies a : hover {
168
180
background-color : # 1DC115 ;
169
181
}
170
182
171
- .topics .right .replies a : visited {
183
+ .topics .topic .replies a : visited {
172
184
background-color : # E5E5E5 ;
173
185
}
174
186
175
- .topics .right .replies a : visited : hover {
187
+ .topics .topic .replies a : visited : hover {
176
188
background-color : # aaa ;
177
189
}
178
190
179
- .topics .topic .replies {
180
- float : right;
181
- }
182
-
183
- .topics .topic h3 {
184
- font-size : 14px ;
185
- font-weight : normal;
186
- margin-top : 5px ;
187
- margin-bottom : 8px ;
188
- }
189
-
190
191
.topics .topic .meta , .topic .meta , .replies .reply .meta {
191
192
color : # 999 ;
192
193
}
You can’t perform that action at this time.
0 commit comments