diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-05-08 21:31:30 -0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-09 08:31:30 +0800 |
commit | ab79069dc79c4a816eb8d53cbd90fc38833ec117 (patch) | |
tree | a4d59642968befa76afc4330345b8eaf23028a8f /templates/base | |
parent | 51d0becb4232eab6b18959ccc4a895e5df30c4dc (diff) | |
download | gitea-ab79069dc79c4a816eb8d53cbd90fc38833ec117.tar.gz gitea-ab79069dc79c4a816eb8d53cbd90fc38833ec117.zip |
Improve dashboard repo search (#1652)
* Add VueJS
* Improve dashboard search
* Fix tab switching
* Fix input autofocus
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/footer.tmpl | 1 | ||||
-rw-r--r-- | templates/base/head.tmpl | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index e2494c107b..e8ad0a4d9f 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -65,5 +65,6 @@ <script src="{{AppSubUrl}}/js/libs/autolink.js"></script> <script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script> <script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script> + <script src="{{AppSubUrl}}/js/libs/vue.js"></script> </body> </html> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index a80075513d..68a7e43b69 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -11,6 +11,9 @@ <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> <meta name="_suburl" content="{{AppSubUrl}}" /> + {{if .IsSigned}} + <meta name="_uid" content="{{.SignedUser.ID}}" /> + {{end}} {{if .GoGetImport}} <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> |