summaryrefslogtreecommitdiffstats
path: root/templates/explore/repos.tmpl
blob: 20e1b9d919ff05e70b31a6cdf7d4ae67ac8afef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{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">
					{{.i18n.Tr "explore.repos"}}
				</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 "base/footer" .}}