Skip to content

Commit 6d98aa1

Browse files
committed
Fix OpenUserJS#221. Move /forum/announcments link to the heading.
Linkify the announcements header, and remove the "older" link. Refine "th > a { display:block; }" rule to only work inside a .table as it breaks tables in .user-content
1 parent 2dfae45 commit 6d98aa1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

public/css/common.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,15 @@ h6:hover a.anchor {
259259
overflow-x: auto;
260260
}
261261

262-
th > a {
262+
.table th > a {
263263
color: initial;
264264
display: block;
265265
}
266266

267267
.inline-block {
268268
display: inline-block;
269269
}
270+
271+
.panel-default > a.panel-heading {
272+
display: block;
273+
}

views/includes/announcementsPanel.html

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="panel panel-default">
2-
<div class="panel-heading">
2+
<a class="panel-heading" href="{{{announcementsCategory.categoryPageUrl}}}">
33
<div class="panel-title">
44
<i class="fa fa-fw fa-exclamation-circle"></i>
55
Announcements
66
</div>
7-
</div>
7+
</a>
88
<div>
99
<div class="table-responsive">
1010
<table class="table table-hover table-condensed table-striped">
@@ -26,9 +26,6 @@
2626
{{/announcementsDiscussionList}}
2727
</tbody>
2828
</table>
29-
<div class="text-center">
30-
<a href="{{{announcementsCategory.categoryPageUrl}}}" class="btn btn-link">Older</a>
31-
</div>
3229
</div>
3330
</div>
3431
</div>

0 commit comments

Comments
 (0)