diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-30 13:57:47 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-30 13:57:47 +0800 |
commit | d078aa30d6e6f40978ea68e9ae6eee53dc028ada (patch) | |
tree | dec31fc5ed5b4bef43e8a8de847084affdf9728f /templates/user/dashboard | |
parent | 7765593018cf26e9d5c9b68374b981f24993cfae (diff) | |
download | gitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.tar.gz gitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.zip |
feat: add search repository on dashboard. (#773)
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index d234397269..28ac4dfecf 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -15,6 +15,9 @@ <a class="item" data-tab="mirrors">{{.i18n.Tr "mirror"}}</a> </div> <div class="ui tab active list" data-tab="repos"> + <div class="ui fluid input"> + <input id="search_repo" name="q" value="" placeholder="{{.i18n.Tr "home.search_repos"}}" autofocus=""> + </div> <h4 class="ui top attached header"> {{.i18n.Tr "home.my_repos"}} <span class="ui grey label">{{.ContextUser.NumRepos}}</span> <div class="ui right"> @@ -25,9 +28,9 @@ </div> </h4> <div class="ui attached table segment"> - <ul class="repo-owner-name-list"> + <ul class="repo-owner-name-list search-list"> {{range .Repos}} - <li {{if .IsPrivate}}class="private"{{end}}> + <li {{if .IsPrivate}}class="private"{{end}} data-title="{{.Name}}"> <a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> <i class="octicon octicon-{{if .IsFork}}repo-forked{{else if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> <strong class="text truncate item-name">{{.Name}}</strong> @@ -50,9 +53,9 @@ {{.i18n.Tr "home.collaborative_repos"}} </h4> <div class="ui attached table segment"> - <ul id="collaborative-repo-list"> + <ul id="collaborative-repo-list" class="search-list"> {{range .CollaborativeRepos}} - <li {{if .IsPrivate}}class="private"{{end}}> + <li {{if .IsPrivate}}class="private"{{end}} data-title="{{.Name}}"> <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}"> <i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> <span class="text truncate owner-and-repo"> |