mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 05:52:10 +00:00
4ed7d2a2bb
Now that emojify.js has been removed, get rid of all instances of has-emoji class that was only used for that. Support for rendering shortcodes should remain in all of these places so it should still work the same. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
49 lines
1.7 KiB
Cheetah
49 lines
1.7 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-star" 16}} {{.NumStars}}</span>
|
|
<span class="text grey">{{svg "octicon-git-branch" 16}} {{.NumForks}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="description">
|
|
{{if .DescriptionHTML}}<p>{{.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>
|