diff options
author | Jorge Maldonado Ventura <jorgesumle@freakspot.net> | 2017-09-19 01:03:01 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-09-19 01:03:01 +0200 |
commit | d155d0e6656df7b7699a4a6b60889689d6678ef5 (patch) | |
tree | ebed9ead3bdfd308e52442cd4b64a23852fd50e0 | |
parent | 566e8ecce0df27e09d9f3ed9503f788827cc1102 (diff) | |
download | gitea-d155d0e6656df7b7699a4a6b60889689d6678ef5.tar.gz gitea-d155d0e6656df7b7699a4a6b60889689d6678ef5.zip |
Make basic functionality work without JavaScript (#2541)
-rw-r--r-- | options/locale/locale_en-US.ini | 1 | ||||
-rw-r--r-- | templates/base/head.tmpl | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2e4520a7a3..6d4c79e8f5 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -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 diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index edb7b2003d..23292cdbcd 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -76,6 +76,12 @@ <!-- 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"> @@ -118,7 +124,7 @@ </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"> |