From 951fb572a769acc965ec74b7152334e55b26de80 Mon Sep 17 00:00:00 2001 From: Morlinest Date: Thu, 17 Aug 2017 03:31:34 +0200 Subject: Fix and improve dashboard repo UI (#2285) * Fix and improve dashboard repo UI * Change order of scripts loading * Remove "mirror" tab * Remove single tab panel for "org user" * Add localization strings * Create vue component and change event for search * Add "mirrors" filter --- templates/base/footer.tmpl | 8 +-- templates/base/head.tmpl | 3 + templates/user/dashboard/dashboard.tmpl | 99 +------------------------------ templates/user/dashboard/repo-search.tmpl | 81 +++++++++++++++++++++++++ 4 files changed, 90 insertions(+), 101 deletions(-) create mode 100644 templates/user/dashboard/repo-search.tmpl (limited to 'templates') diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 923f39e85b..a0c14db218 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -45,10 +45,6 @@ {{end}} - - - - {{if .RequireHighlightJS}} @@ -66,5 +62,9 @@ + + + + diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index bb6f1ecaf5..88d2b14a46 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -17,6 +17,9 @@ {{if .ContextUser}} {{end}} + {{if .SearchLimit}} + + {{end}} {{if .GoGetImport}} diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 48d6966e18..01619ff4ee 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -8,105 +8,10 @@ {{template "user/dashboard/feeds" .}} +{{template "user/dashboard/repo-search" .}} {{template "base/footer" .}} diff --git a/templates/user/dashboard/repo-search.tmpl b/templates/user/dashboard/repo-search.tmpl new file mode 100644 index 0000000000..6b8bde5865 --- /dev/null +++ b/templates/user/dashboard/repo-search.tmpl @@ -0,0 +1,81 @@ + \ No newline at end of file -- cgit v1.2.3