Skip to content

Commit ceabd15

Browse files
committed
Added a refresh button to the footer.
Every once in a while some new bug pops up that causes the page to be in a useless state. For testers using the embedded version, we don't show any browser controls, so they can't just natigate away. This refresh link is a temporary solution until we have figured out what causes those bugs.
1 parent 2c0e4fa commit ceabd15

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

codepulse/src/main/resources/toserve/common/common.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ ul.flat-list li {
326326
font-size: 0.8em;
327327
}
328328

329-
#footer a { color: #ef7600; }
330-
331329
#footer p { padding: 0px 0px 0px 5px; margin: 0px; }
332330

333331
a.to-login { font-size: 0.8em; color: #777; border-bottom: 1px dashed #777; text-decoration: none; }

codepulse/src/main/resources/toserve/common/desktop.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#footer {
1212
position: fixed;
1313
bottom: 0px;
14-
height: 25px;
14+
height: 25px;
15+
line-height: 25px;
1516
left: 0;
1617
right: 0;
18+
padding: 0 1px;
1719

1820
z-index: 3;
1921
}
@@ -33,4 +35,16 @@
3335
#footer .half {
3436
padding: 2px 5px;
3537
width: 50%;
38+
}
39+
40+
#refresh-link {
41+
cursor: pointer;
42+
color: #333;
43+
background-color: #777;
44+
padding: 3px;
45+
text-decoration: none;
46+
}
47+
48+
#refresh-link:hover {
49+
background-color: #999;
3650
}

codepulse/src/main/webapp/templates-hidden/desktop.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
</div>
2121

2222
<div id="footer">
23+
<span class="subtle">
24+
<a id="refresh-link" onclick="window.location.reload();"><i class="fa fa-refresh"></i> refresh</a>
25+
(If you encounter a bug, let us know! Refreshing will hopefully allow you to keep working.)
26+
</span>
2327
<span class="subtle lift:VersionSnippet" style="margin-right: 10px; float: right">Code Pulse v<v:number /></span>
2428
</div>
2529
</body>

0 commit comments

Comments
 (0)