tranlaste.json tiny typo; first, very carefull small change in style.css and default.handlebars to get an idea about complete UI-Control frontend.
JSuenram committed
Jan 26, 2022 at 19:07 UTC
3d22d246ee1790f38e9fc24ec8730ef189fbc8e5
3 files changed
+9
-5
public/styles/style.css
+4
@@ -257,6 +257,10 @@ body {
257
right: 3px;
258
}
259
260
+.LogoffLinkColor {
261
+ color:white;
262
+}
263
+
264
#logoutControlSpan2 {
265
cursor: pointer;
266
color: white;
translate/translate.json
+1
-1
@@ -59113,7 +59113,7 @@
59113
{
59114
"cs": "Zastavil",
59115
"da": "Stoppet",
59116
- "de": "Gestoppt",
59116
+ "de": "gestoppt",
59117
"en": "Stopped",
59118
"es": "Detenido",
59119
"fi": "Pysähtyi",
views/default.handlebars
+4
-4
@@ -132,7 +132,7 @@
132
<div style="float:right">
133
<div id=notificationCount onclick="clickNotificationIcon()" class="unselectable" style="display: none;" title="Click to view current notifications">0</div>
134
</div>
135
- <p id="logoutControl"><span id=logoutControlSpan class="logoncontrolspan" style="color:white"></span><span id=idleTimeoutNotify style="color:yellow"></span></p>
135
+ <p id="logoutControl"><span id=logoutControlSpan class="logoncontrolspan"></span><span id=idleTimeoutNotify style="color:yellow"></span></p>
136
</div>
137
<div id="page_leftbar">
138
<div style="height:16px"></div>
@@ -158,7 +158,7 @@
158
<div id=topbar class=noselect>
159
<div>
160
<div style="position:relative">
161
- <span id=logoutControlSpan2 style="color:white"></span>
161
+ <span id=logoutControlSpan2></span>
162
<div tabindex=0 id=uiMenuButton title="User interface selection" onclick="showUserInterfaceSelectMenu()" onkeypress="if (event.key == 'Enter') showUserInterfaceSelectMenu()">
163
♦
164
<div id=uiMenu style="display:none">
@@ -1492,8 +1492,8 @@
1492
// Setup logout control
1493
var logoutControl = '';
1494
if (logoutControls) {
1495
- if (logoutControls.name != null) { logoutControl = ('<span onclick=go(2) style="color:white;cursor:pointer">' + format("Welcome {0}.", logoutControls.name) + '</span>'); }
1496
- if (logoutControls.logoutUrl != null) { logoutControl += format(' <a href="' + logoutControls.logoutUrl + '" style="color:white">' + "Logout" + '</a>'); }
1495
+ if (logoutControls.name != null) { logoutControl = ('<span onclick=go(2) CLASS="LogoffLinkColor" style="cursor:pointer">' + format("Welcome {0}.", logoutControls.name) + '</span>'); }
1496
+ if (logoutControls.logoutUrl != null) { logoutControl += format(' <a href="' + logoutControls.logoutUrl + '" CLASS="LogoffLinkColor">' + "Logout" + '</a>'); }
1497
}
1498
if (args.hide & 1) { QH('logoutControlSpan2', logoutControl); } else { QH('logoutControlSpan', logoutControl); }
1499