mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 13:09:18 +08:00
86fdba177a
* Add octicon SVG sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Static prefix Signed-off-by: jolheiser <john.olheiser@gmail.com> * SVG for all repo icons Signed-off-by: jolheiser <john.olheiser@gmail.com> * make vendor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap out octicons Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move octicons to top of less imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Definitely not a search/replace Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed regex Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move to more generic calls and webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * make svg -> make webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg-sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed a test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg from makefile Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Attempt to fix test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert timetracking test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap .octicon for .svg in less Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add aria-hidden Signed-off-by: jolheiser <john.olheiser@gmail.com> * Replace mega-octicon Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix webpack globbing on Windows Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Co-Authored-By: silverwind <me@silverwind.io> * Fix octions from upstream Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix Vue and missed JS function Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add JS helper and PWA Signed-off-by: jolheiser <john.olheiser@gmail.com> * Preload SVG Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net>
49 lines
1.8 KiB
Cheetah
49 lines
1.8 KiB
Cheetah
<div class="ui repository list">
|
|
{{range .Repos}}
|
|
<div class="item">
|
|
<div class="ui header">
|
|
{{if .RelAvatarLink}}
|
|
<img class="ui avatar image" src="{{.RelAvatarLink}}">
|
|
{{end}}
|
|
<a class="name" href="{{.Link}}">
|
|
{{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
|
|
{{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}}
|
|
</a>
|
|
{{if .IsPrivate}}
|
|
<span class="middle text gold">{{svg "octicon-lock" 16}}</span>
|
|
{{else if .IsFork}}
|
|
<span class="middle">{{svg "octicon-repo-forked" 16}}</span>
|
|
{{else if .IsMirror}}
|
|
<span class="middle">{{svg "octicon-repo-clone" 16}}</span>
|
|
{{else if .Owner}}
|
|
{{if .Owner.Visibility.IsPrivate}}
|
|
<span class="text gold">{{svg "octicon-lock" 16}}</span>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="ui right metas">
|
|
{{if .PrimaryLanguage }}
|
|
<span class="text grey"><i class="color-icon" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{ .PrimaryLanguage.Language }}</span>
|
|
{{end}}
|
|
<span class="text grey">{{svg "octicon-repo" 16}} {{.NumStars}}</span>
|
|
<span class="text grey">{{svg "octicon-git-branch" 16}} {{.NumForks}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="description">
|
|
{{if .DescriptionHTML}}<p class="has-emoji">{{.DescriptionHTML}}</p>{{end}}
|
|
{{if .Topics }}
|
|
<div class="ui tags">
|
|
{{range .Topics}}
|
|
{{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui small label topic">{{.}}</div></a>{{end}}
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div>
|
|
{{$.i18n.Tr "explore.repo_no_results"}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|