]> source.dussan.org Git - gitea.git/commitdiff
Make basic functionality work without JavaScript (#2541)
authorJorge Maldonado Ventura <jorgesumle@freakspot.net>
Mon, 18 Sep 2017 23:03:01 +0000 (01:03 +0200)
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>
Mon, 18 Sep 2017 23:03:01 +0000 (01:03 +0200)
options/locale/locale_en-US.ini
templates/base/head.tmpl

index 2e4520a7a3eeadeb179b3651a3e3d698573a2d2c..6d4c79e8f53a851b40b271c8c1f8ceb51e1f04fd 100644 (file)
@@ -20,6 +20,7 @@ notifications = Notifications
 create_new = Create...
 user_profile_and_more = User profile and more
 signed_in_as = Signed in as
+enable_javascript = This website works better with JavaScript
 
 username = Username
 email = Email
index edb7b2003da7a8a6523885c33bb361f376e975ae..23292cdbcd5f3bc1afae79a089c6078556441673 100644 (file)
        <!-- Stylesheet -->
        <link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/semantic/semantic.min.css">
        <link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
+       <noscript>
+               <style>
+                       .dropdown:hover > .menu { display: block; }
+                       .ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
+               </style>
+       </noscript>
 
 {{if .RequireHighlightJS}}
        <link rel="stylesheet" href="{{AppSubUrl}}/vendor/plugins/highlight/github.css">
 </head>
 <body>
        <div class="full height">
-               <noscript>Please enable JavaScript in your browser!</noscript>
+               <noscript>{{.i18n.Tr "enable_javascript"}}</noscript>
 
                {{if not .PageIsInstall}}
                        <div class="following bar light">