commit
67f07e21f5
5 changed files with 46 additions and 35 deletions
2
public/css/gogs.min.css
vendored
2
public/css/gogs.min.css
vendored
File diff suppressed because one or more lines are too long
3
public/less/_explore.less
Normal file
3
public/less/_explore.less
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.explore {
|
||||||
|
padding-top: 15px;
|
||||||
|
}
|
|
@ -8,4 +8,5 @@
|
||||||
@import "_organization";
|
@import "_organization";
|
||||||
@import "_user";
|
@import "_user";
|
||||||
@import "_dashboard";
|
@import "_dashboard";
|
||||||
@import "_admin";
|
@import "_admin";
|
||||||
|
@import "_explore";
|
|
@ -1,8 +1,8 @@
|
||||||
<div id="setting-menu" class="grid-1-5 panel panel-radius left">
|
<div class="four wide column">
|
||||||
<p class="panel-header"><strong>{{.i18n.Tr "explore"}}</strong></p>
|
<div class="ui vertical menu">
|
||||||
<div class="panel-body">
|
<div class="header item">{{.i18n.Tr "explore"}}</div>
|
||||||
<ul class="menu menu-vertical switching-list grid-1-5 left">
|
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore">
|
||||||
<li {{if .PageIsExploreRepositories}}class="current"{{end}}><a href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore.repos"}}</a></li>
|
{{.i18n.Tr "explore.repos"}}
|
||||||
</ul>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1,27 +1,34 @@
|
||||||
{{template "ng/base/head" .}}
|
{{template "base/head" .}}
|
||||||
{{template "ng/base/header" .}}
|
<div class="explore">
|
||||||
<div id="setting-wrapper" class="main-wrapper">
|
<div class="ui container">
|
||||||
<div id="org-setting" class="container clear">
|
<div class="ui grid">
|
||||||
{{template "explore/nav" .}}
|
{{template "explore/nav" .}}
|
||||||
<div class="grid-4-5 left">
|
<div class="twelve wide column content">
|
||||||
<div class="setting-content">
|
<h4 class="ui top attached header">
|
||||||
<div id="org-repo-list">
|
{{.i18n.Tr "explore.repos"}}
|
||||||
{{range .Repos}}
|
</h4>
|
||||||
<div class="org-repo-item">
|
<div class="ui attached segment">
|
||||||
<ul class="org-repo-status right">
|
{{range $i, $v := .Repos}}
|
||||||
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
|
<div class="item">
|
||||||
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
|
<div class="ui right">
|
||||||
</ul>
|
<span class="text grey right"><i class="octicon octicon-star"></i> {{.NumStars}}</li> </span>
|
||||||
<h2>
|
<span class="text grey right"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li></span>
|
||||||
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
|
</div>
|
||||||
</h2>
|
<h2>
|
||||||
<p class="org-repo-description">{{.Description}}</p>
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
|
||||||
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
|
</h2>
|
||||||
</div>
|
<p class="org-repo-description">{{.Description}}</p>
|
||||||
{{end}}
|
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{if not (eq 1 (len $.Repos))}}
|
||||||
</div>
|
{{if not $i}}
|
||||||
</div>
|
<div class="ui divider"></div>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{template "ng/base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
|
Reference in a new issue