Skip to content

Commit d155d0e

Browse files
jorgesumlebkcsoft
authored andcommitted
Make basic functionality work without JavaScript (#2541)
1 parent 566e8ec commit d155d0e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ notifications = Notifications
2020
create_new = Create...
2121
user_profile_and_more = User profile and more
2222
signed_in_as = Signed in as
23+
enable_javascript = This website works better with JavaScript
2324

2425
username = Username
2526
email = Email

templates/base/head.tmpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
<!-- Stylesheet -->
7777
<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.css">
7878
<link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
79+
<noscript>
80+
<style>
81+
.dropdown:hover > .menu { display: block; }
82+
.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
83+
</style>
84+
</noscript>
7985

8086
{{if .RequireHighlightJS}}
8187
<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/highlight/github.css">
@@ -118,7 +124,7 @@
118124
</head>
119125
<body>
120126
<div class="full height">
121-
<noscript>Please enable JavaScript in your browser!</noscript>
127+
<noscript>{{.i18n.Tr "enable_javascript"}}</noscript>
122128

123129
{{if not .PageIsInstall}}
124130
<div class="following bar light">

0 commit comments

Comments
 (0)