Skip to content

Commit d70ca4a

Browse files
committed
move toggle to top of table
1 parent ab77c9f commit d70ca4a

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

server/index_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ var index = `<!DOCTYPE html><html>
4343
</div>
4444
<div class="content-box">
4545
<h1>{{call $.Translate "Activity"}}</h1>
46+
<div id="help-toggle"></div>
4647
<a href="rss"><img src="static/images/rss-icon-28.png" class="rss-icon" /></a>
4748
<table id="activity-table" class="list">
4849
<thead>

server/static/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ function loadActivity() {
137137
$tbody.append($tr);
138138
}
139139

140-
var activityNav = $('#activity-nav').empty();
141-
142140
var nohelpText;
143141
var nohelpHref;
144142
if (nohelp != 'true') {
@@ -148,12 +146,12 @@ function loadActivity() {
148146
nohelpText = 'Show Help Forum';
149147
nohelpHref = '#page=' + page + '&nohelp=false';
150148
}
151-
activityNav.append($('<a>').text(nohelpText).attr('href', nohelpHref).click(function() {
149+
$('#help-toggle').empty().append($('<a>').text(nohelpText).attr('href', nohelpHref).click(function() {
152150
currentPage = undefined;
153151
window.scrollTo(0, 0);
154152
}));
155153

156-
activityNav.append($('<a>').text('Next Page').attr('href', '#page=' + data.next + '&nohelp=' + nohelp).click(function() {
154+
$('#activity-nav').empty().append($('<a>').text('Next Page').attr('href', '#page=' + data.next + '&nohelp=' + nohelp).click(function() {
157155
window.scrollTo(0, 0);
158156
}));
159157
}).fail(function() {

server/static/style.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ div.notice {
6565
color: #202020;
6666
}
6767

68-
div.notice a, div.notice a:visited, div.notice a:active, div.notice a:hover {
68+
div.notice a,
69+
div.notice a:visited,
70+
div.notice a:active,
71+
div.notice a:hover {
6972
color: #202020;
7073
text-decoration: underline;
7174
}
@@ -100,6 +103,12 @@ div.container {
100103
opacity: 1.0;
101104
}
102105

106+
#help-toggle {
107+
position: absolute;
108+
top: 24px;
109+
right: 50px;
110+
}
111+
103112
div.content-box h1 {
104113
padding: 6px;
105114
padding-top: 0px;
@@ -197,7 +206,8 @@ td.toggle img {
197206
filter: opacity(70%);
198207
}
199208

200-
.expander:hover, .collapser:hover {
209+
.expander:hover,
210+
.collapser:hover {
201211
filter: opacity(100%);
202212
}
203213

@@ -258,7 +268,8 @@ td.body img {
258268
background-color: #323232;
259269
}
260270

261-
.spoilerTitle, .spoilerContent {
271+
.spoilerTitle,
272+
.spoilerContent {
262273
padding: 8px;
263274
}
264275

@@ -275,4 +286,4 @@ td.body img {
275286

276287
#locale-selection li.selected-locale {
277288
opacity: 1.0;
278-
}
289+
}

0 commit comments

Comments
 (0)