mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-07 02:45:22 +02:00
#2287 Truncate repository name if too long
This commit is contained in:
parent
a2ef9a2b64
commit
f43cc90841
12 changed files with 89 additions and 33 deletions
|
@ -22,12 +22,12 @@
|
|||
</div>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
<ul>
|
||||
<ul class="repo-owner-name-list">
|
||||
{{range .Repos}}
|
||||
<li {{if .IsPrivate}}class="private"{{end}}>
|
||||
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
||||
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
||||
<strong>{{.Name}}</strong>
|
||||
<strong class="text truncate item-name">{{.Name}}</strong>
|
||||
<span class="ui right text light grey">
|
||||
<i class="octicon octicon-star"></i>{{.NumStars}}
|
||||
</span>
|
||||
|
@ -42,12 +42,14 @@
|
|||
{{.i18n.Tr "home.collaborative_repos"}} <span class="ui grey label">{{.CollaborateCount}}</span>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
<ul>
|
||||
<ul id="collaborative-repo-list">
|
||||
{{range .CollaborativeRepos}}
|
||||
<li {{if .IsPrivate}}class="private"{{end}}>
|
||||
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">
|
||||
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
||||
{{.Owner.Name}} / <strong>{{.Name}}</strong>
|
||||
<span class="text truncate owner-and-repo">
|
||||
<span class="text truncate owner-name">{{.Owner.Name}}</span> / <strong>{{.Name}}</strong>
|
||||
</span>
|
||||
<span class="ui right text light grey">
|
||||
<i class="octicon octicon-star"></i>{{.NumStars}}
|
||||
</span>
|
||||
|
@ -68,12 +70,12 @@
|
|||
</div>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
<ul>
|
||||
<ul class="repo-owner-name-list">
|
||||
{{range .ContextUser.Orgs}}
|
||||
<li>
|
||||
<a href="{{AppSubUrl}}/{{.Name}}">
|
||||
<i class="icon octicon octicon-organization"></i>
|
||||
<strong>{{.ShortName 20}}</strong>
|
||||
<strong class="text truncate item-name">{{.Name}}</strong>
|
||||
<span class="ui right text light grey">
|
||||
<i class="octicon octicon-repo"></i>{{.NumRepos}}
|
||||
</span>
|
||||
|
@ -93,12 +95,12 @@
|
|||
</div>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
<ul>
|
||||
<ul class="repo-owner-name-list">
|
||||
{{range .Mirrors}}
|
||||
<li {{if .IsPrivate}}class="private"{{end}}>
|
||||
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
||||
<i class="icon octicon octicon-repo-clone"></i>
|
||||
<strong>{{.Name}}</strong>
|
||||
<strong class="text truncate item-name">{{.Name}}</strong>
|
||||
<span class="ui right text light grey">
|
||||
<i class="octicon octicon-sync"></i>{{.Interval}}H
|
||||
</span>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="ui fifteen wide column">
|
||||
<div class="{{if eq .GetOpType 5}}push news{{end}}">
|
||||
<p>
|
||||
<a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.GetActUserName}}</a>
|
||||
<a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.ShortActUserName}}</a>
|
||||
{{if eq .GetOpType 1}}
|
||||
{{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoPath | Str2html}}
|
||||
{{else if eq .GetOpType 2}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue