aboutsummaryrefslogtreecommitdiff
path: root/templates/explore
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-17 22:18:41 +0800
committerUnknwon <u@gogs.io>2018-06-17 22:18:41 +0800
commit376a629c9f99893f341e76163e9b61273dd32c28 (patch)
tree4e3e1320c19d73c2282ff82c8d6aafb569ed9d87 /templates/explore
parent303fa37b608a4925f5a0137c89e20a906b3d9fdb (diff)
repo: add changes to repository avatar feature (#5221)
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/repo_list.tmpl38
1 files changed, 18 insertions, 20 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index 413cdc53..f215c21c 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -2,31 +2,29 @@
{{range .Repos}}
<div class="item">
<div class="ui grid">
- <div class="ui two wide column middle aligned">
+ <div class="ui two wide column middle aligned center">
{{if .RelAvatarLink}}<img class="ui tiny image" src="{{.RelAvatarLink}}">{{else}}<i class="mega-octicon octicon-repo"></i>{{end}}
</div>
- <div class="ui fourteen wide column">
- <div class="ui header">
- <a class="name" href="{{AppSubURL}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a>
- {{if .IsPrivate}}
- <span class="text gold"><i class="octicon octicon-lock"></i></span>
- {{else if .IsFork}}
- <span><i class="octicon octicon-repo-forked"></i></span>
- {{else if .IsMirror}}
- <span><i class="octicon octicon-repo-clone"></i></span>
- {{else}}
- <span class="text"><i class="octicon octicon-globe"></i></span>
- {{end}}
+ <div class="ui fourteen wide column no-padding-left">
+ <div class="ui header">
+ <a class="name" href="{{AppSubURL}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a>
+ {{if .IsPrivate}}
+ <span class="text gold"><i class="octicon octicon-lock"></i></span>
+ {{else if .IsFork}}
+ <span><i class="octicon octicon-repo-forked"></i></span>
+ {{else if .IsMirror}}
+ <span><i class="octicon octicon-repo-clone"></i></span>
+ {{end}}
- <div class="ui right metas">
- <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
- <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
+ <div class="ui right metas">
+ <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
+ <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
+ </div>
+ </div>
+ {{if .Description}}<p class="has-emoji">{{.Description | Str2html}}</p>{{end}}
+ <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
</div>
</div>
- {{if .Description}}<p class="has-emoji">{{.Description | Str2html}}</p>{{end}}
- <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
- </div>
- </div>
</div>
{{end}}
</div>