diff options
author | Daniel Oaks <daniel@danieloaks.net> | 2016-09-01 23:08:05 +1000 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-09-01 09:08:05 -0400 |
commit | b3d9ca4ccd7c4353db0971b61bbcbffd126cb61d (patch) | |
tree | 2187f2c6631385bc0247af11e26648f5717b8acf /templates/explore | |
parent | 4efaf8e882dad4bffbb84104aec6df25d15b4f87 (diff) | |
download | gitea-b3d9ca4ccd7c4353db0971b61bbcbffd126cb61d.tar.gz gitea-b3d9ca4ccd7c4353db0971b61bbcbffd126cb61d.zip |
Add the ability to explore organizations (#3573)
* Add ability to explore organizations
* Use right icon for org explore links
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/navbar.tmpl | 3 | ||||
-rw-r--r-- | templates/explore/organizations.tmpl | 35 |
2 files changed, 38 insertions, 0 deletions
diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index 1e2ab786af..2e20da0fa5 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -7,5 +7,8 @@ <a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users"> <span class="octicon octicon-person"></span> {{.i18n.Tr "explore.users"}} </a> + <a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations"> + <span class="octicon octicon-organization"></span> {{.i18n.Tr "explore.organizations"}} + </a> </div> </div> diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl new file mode 100644 index 0000000000..6953414e85 --- /dev/null +++ b/templates/explore/organizations.tmpl @@ -0,0 +1,35 @@ +{{template "base/head" .}} +<div class="explore users"> + <div class="ui container"> + <div class="ui grid"> + {{template "explore/navbar" .}} + <div class="twelve wide column content"> + {{template "explore/search" .}} + + <div class="ui user list"> + {{range .Users}} + <div class="item"> + <img class="ui avatar image" src="{{.RelAvatarLink}}"> + <div class="content"> + <span class="header"><a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}</span> + <div class="description"> + {{if .Location}} + <i class="octicon octicon-location"></i> {{.Location}} + {{end}} + {{if and .Website}} + <i class="octicon octicon-link"></i> + <a href="{{.Website}}" rel="nofollow">{{.Website}}</a> + {{end}} + <i class="octicon octicon-clock"></i> {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}} + </div> + </div> + </div> + {{end}} + </div> + + {{template "explore/page" .}} + </div> + </div> + </div> +</div> +{{template "base/footer" .}} |