diff options
author | Michael Peppler <peppage@gmail.com> | 2015-08-31 18:20:23 -0400 |
---|---|---|
committer | Michael Peppler <mpeppler@carnegiehall.org> | 2015-08-31 18:23:43 -0400 |
commit | d1c5a5ed685f3bf330ced5a31bedf245ce0b294e (patch) | |
tree | f0f0b1df5acfe6b6848f2962566c73dcb941299e /templates/explore | |
parent | ee3e0c3c49d2a4bf9a33386ab22d4c521e5016b6 (diff) | |
download | gitea-d1c5a5ed685f3bf330ced5a31bedf245ce0b294e.tar.gz gitea-d1c5a5ed685f3bf330ced5a31bedf245ce0b294e.zip |
new explore UI
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/nav.tmpl | 14 | ||||
-rw-r--r-- | templates/explore/repos.tmpl | 59 |
2 files changed, 40 insertions, 33 deletions
diff --git a/templates/explore/nav.tmpl b/templates/explore/nav.tmpl index 556627b0cb..374376bf77 100644 --- a/templates/explore/nav.tmpl +++ b/templates/explore/nav.tmpl @@ -1,8 +1,8 @@ -<div id="setting-menu" class="grid-1-5 panel panel-radius left"> - <p class="panel-header"><strong>{{.i18n.Tr "explore"}}</strong></p> - <div class="panel-body"> - <ul class="menu menu-vertical switching-list grid-1-5 left"> - <li {{if .PageIsExploreRepositories}}class="current"{{end}}><a href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore.repos"}}</a></li> - </ul> - </div> +<div class="four wide column"> + <div class="ui vertical menu"> + <div class="header item">{{.i18n.Tr "explore"}}</div> + <a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore"> + {{.i18n.Tr "explore.repos"}} + </a> + </div> </div>
\ No newline at end of file diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl index 1e0143f56a..d568ef8e49 100644 --- a/templates/explore/repos.tmpl +++ b/templates/explore/repos.tmpl @@ -1,27 +1,34 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -<div id="setting-wrapper" class="main-wrapper"> - <div id="org-setting" class="container clear"> - {{template "explore/nav" .}} - <div class="grid-4-5 left"> - <div class="setting-content"> - <div id="org-repo-list"> - {{range .Repos}} - <div class="org-repo-item"> - <ul class="org-repo-status right"> - <li><i class="octicon octicon-star"></i> {{.NumStars}}</li> - <li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li> - </ul> - <h2> - <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a> - </h2> - <p class="org-repo-description">{{.Description}}</p> - <p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> - </div> - {{end}} - </div> - </div> - </div> - </div> +{{template "base/head" .}} +<div class="explore"> + <div class="ui container"> + <div class="ui grid"> + {{template "explore/nav" .}} + <div class="twelve wide column content"> + <h4 class="ui top attached header"> + Repositories + </h4> + <div class="ui attached segment"> + {{range $i, $v := .Repos}} + <div class="item"> + <div class="ui right"> + <span class="text grey right"><i class="octicon octicon-star"></i> {{.NumStars}}</li> </span> + <span class="text grey right"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li></span> + </div> + <h2> + <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a> + </h2> + <p class="org-repo-description">{{.Description}}</p> + <p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> + </div> + {{if not (eq 1 (len $.Repos))}} + {{if not $i}} + <div class="ui divider"></div> + {{end}} + {{end}} + {{end}} + </div> + </div> + </div> + </div> </div> -{{template "ng/base/footer" .}} +{{template "base/footer" .}} |