Browse Source

Make basic functionality work without JavaScript (#2541)

Jorge Maldonado Ventura 2 years ago
parent
commit
d155d0e665
2 changed files with 8 additions and 1 deletions
  1. 1 0
      options/locale/locale_en-US.ini
  2. 7 1
      templates/base/head.tmpl

+ 1 - 0
options/locale/locale_en-US.ini

@@ -20,6 +20,7 @@ notifications = Notifications
20 20
 create_new = Create...
21 21
 user_profile_and_more = User profile and more
22 22
 signed_in_as = Signed in as
23
+enable_javascript = This website works better with JavaScript
23 24
 
24 25
 username = Username
25 26
 email = Email

+ 7 - 1
templates/base/head.tmpl

@@ -76,6 +76,12 @@
76 76
 	<!-- Stylesheet -->
77 77
 	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.css">
78 78
 	<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>
79 85
 
80 86
 {{if .RequireHighlightJS}}
81 87
 	<link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/highlight/github.css">
@@ -118,7 +124,7 @@
118 124
 </head>
119 125
 <body>
120 126
 	<div class="full height">
121
-		<noscript>Please enable JavaScript in your browser!</noscript>
127
+		<noscript>{{.i18n.Tr "enable_javascript"}}</noscript>
122 128
 
123 129
 		{{if not .PageIsInstall}}
124 130
 			<div class="following bar light">