12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <div class="ui container user-cards">
- <h2 class="ui dividing header">
- {{.CardsTitle}}
- </h2>
- <ul class="list">
- {{range .Cards}}
- <li class="item ui segment">
- <a href="{{.HomeURLPath}}">
- <img class="avatar" src="{{.AvatarURLPath}}"/>
- </a>
- <h3 class="name"><a href="{{.HomeURLPath}}">{{.DisplayName}}</a></h3>
- <div class="meta">
- {{if .Website}}
- <span class="octicon octicon-link"></span> <a href="{{.Website}}" target="_blank" rel="noopener noreferrer">{{.Website}}</a>
- {{else if .Location}}
- <span class="octicon octicon-location"></span> {{.Location}}
- {{else}}
- <span class="octicon octicon-clock"></span> {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}}
- {{end}}
- </div>
- {{if $.IsAdmin}}
- <form class="display inline" action="{{$.RepoLink}}/action/unwatch?redirect_to={{$.Link}}" method="POST">
- {{$.CSRFTokenHTML}}
- <input type="hidden" name="user_id" value="{{.ID}}">
- <button class="ui red small button">{{$.i18n.Tr "repo.unwatch"}}</button>
- </form>
- {{end}}
- </li>
- {{end}}
- </ul>
- {{with .Page}}
- {{if gt .TotalPages 1}}
- <div class="center page buttons">
- <div class="ui borderless pagination menu">
- <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}"{{end}}>
- <i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
- </a>
- {{range .Pages}}
- {{if eq .Num -1}}
- <a class="disabled item">...</a>
- {{else}}
- <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}"{{end}}>{{.Num}}</a>
- {{end}}
- {{end}}
- <a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}"{{end}}>
- {{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i>
- </a>
- </div>
- </div>
- {{end}}
- {{end}}
- </div>
|