summaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/navbar.tmpl3
-rw-r--r--templates/explore/organizations.tmpl35
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" .}}