mirror of https://github.com/gogits/gogs.git
Unknwon
9 years ago
31 changed files with 634 additions and 461 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@ |
|||||||
|
{{with .Page}} |
||||||
|
{{if gt .TotalPages 1}} |
||||||
|
<div class="center page buttons"> |
||||||
|
<div class="ui borderless pagination menu"> |
||||||
|
<a class="{{if .IsFirst}}disabled{{end}} item" href="{{$.Link}}?q={{$.Keyword}}"><i class="angle double left icon"></i> {{$.i18n.Tr "admin.first_page"}}</a> |
||||||
|
<a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}&q={{$.Keyword}}"{{end}}> |
||||||
|
<i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}} |
||||||
|
</a> |
||||||
|
{{range .Pages}} |
||||||
|
{{if eq .Num -1}} |
||||||
|
<a class="disabled item">...</a> |
||||||
|
{{else}} |
||||||
|
<a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}&q={{$.Keyword}}"{{end}}>{{.Num}}</a> |
||||||
|
{{end}} |
||||||
|
{{end}} |
||||||
|
<a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}&q={{$.Keyword}}"{{end}}> |
||||||
|
{{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i> |
||||||
|
</a> |
||||||
|
<a class="{{if .IsLast}}disabled{{end}} item" href="{{$.Link}}?page={{.TotalPages}}&q={{$.Keyword}}">{{$.i18n.Tr "admin.last_page"}} <i class="angle double right icon"></i></a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
{{end}} |
@ -0,0 +1,6 @@ |
|||||||
|
<form class="ui form"> |
||||||
|
<div class="ui fluid action input"> |
||||||
|
<input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus> |
||||||
|
<button class="ui blue button">{{.i18n.Tr "explore.search"}}</button> |
||||||
|
</div> |
||||||
|
</form> |
@ -1,8 +1,11 @@ |
|||||||
<div class="four wide column"> |
<div class="four wide column"> |
||||||
<div class="ui vertical menu"> |
<div class="ui vertical menu navbar"> |
||||||
<div class="header item">{{.i18n.Tr "explore"}}</div> |
<div class="header item">{{.i18n.Tr "explore"}}</div> |
||||||
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore"> |
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore/repos"> |
||||||
{{.i18n.Tr "explore.repos"}} |
<span class="octicon octicon-repo"></span> {{.i18n.Tr "explore.repos"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users"> |
||||||
|
<span class="octicon octicon-person"></span> {{.i18n.Tr "explore.users"}} |
||||||
</a> |
</a> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
@ -0,0 +1,21 @@ |
|||||||
|
{{with .Page}} |
||||||
|
{{if gt .TotalPages 1}} |
||||||
|
<div class="center page buttons"> |
||||||
|
<div class="ui borderless pagination menu"> |
||||||
|
<a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}&q={{$.Keyword}}"{{end}}> |
||||||
|
<i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}} |
||||||
|
</a> |
||||||
|
{{range .Pages}} |
||||||
|
{{if eq .Num -1}} |
||||||
|
<a class="disabled item">...</a> |
||||||
|
{{else}} |
||||||
|
<a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}&q={{$.Keyword}}"{{end}}>{{.Num}}</a> |
||||||
|
{{end}} |
||||||
|
{{end}} |
||||||
|
<a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}&q={{$.Keyword}}"{{end}}> |
||||||
|
{{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
{{end}} |
@ -0,0 +1,7 @@ |
|||||||
|
<form class="ui form"> |
||||||
|
<div class="ui fluid action input"> |
||||||
|
<input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus> |
||||||
|
<button class="ui blue button">{{.i18n.Tr "explore.search"}}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
<div class="ui divider"></div> |
@ -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="{{.AvatarLink}}"> |
||||||
|
<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 .Email $.IsSigned}} |
||||||
|
<i class="octicon octicon-mail"></i> |
||||||
|
<a href="mailto:{{.Email}}" rel="nofollow">{{.Email}}</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" .}} |
Loading…
Reference in new issue