|
3 | 3 | <div class="item"> |
4 | 4 | <div class="ui header gt-df gt-ac"> |
5 | 5 | <div class="repo-title"> |
6 | | - {{$avatar := (repoAvatar .Repo 32 "gt-mr-3")}} |
7 | | - {{if $avatar}} |
8 | | - {{$avatar}} |
9 | | - {{end}} |
| 6 | + {{template "repo/icon" .Repo}} |
10 | 7 | {{if .Release}} |
11 | 8 | <a class="name" href="{{.Repo.Link}}/releases/tag/{{.Ref | PathEscapeSegments}}"> |
12 | 9 | {{else}} |
|
52 | 49 | <div class="description"> |
53 | 50 | <table> |
54 | 51 | <tr> |
55 | | - <td><strong>{{if .Release}}{{$ctx.Locale.Tr "repo.metadata.publisher"}}{{else}}{{$ctx.Locale.Tr "repo.metadata.provider"}}{{end}}:</strong></td> |
| 52 | + <td><strong>{{if .Release}}{{$.locale.Tr "repo.metadata.publisher"}}{{else}}{{$.locale.Tr "repo.metadata.provider"}}{{end}}:</strong></td> |
56 | 53 | <td><a href="?sort={{$.SortType}}&q=owner%3A{{.Repo.OwnerName}}">{{.Repo.OwnerName}}</a></td> |
57 | 54 | <tr> |
58 | | - <td><strong>{{$ctx.Locale.Tr "repo.metadata.subject"}}:</strong></td> |
| 55 | + <td><strong>{{$.locale.Tr "repo.metadata.subject"}}:</strong></td> |
59 | 56 | <td><a href="?sort={{$.SortType}}&q=subject%3A{{.Subject}}">{{.Subject}}</a></td> |
60 | 57 | </tr> |
61 | 58 | <tr> |
62 | | - <td><strong>{{$ctx.Locale.Tr "repo.metadata.resource"}}:</strong></td> |
| 59 | + <td><strong>{{$.locale.Tr "repo.metadata.resource"}}:</strong></td> |
63 | 60 | <td><a href="?sort={{$.SortType}}&q=resource%3A{{.Resource}}">{{.Resource}}</a></td> |
64 | 61 | </tr> |
65 | 62 | <tr> |
66 | | - <td><strong>{{$ctx.Locale.Tr "repo.metadata.metadata_type"}}:</strong></td> |
| 63 | + <td><strong>{{$.locale.Tr "repo.metadata.metadata_type"}}:</strong></td> |
67 | 64 | <td> |
68 | 65 | <img src="{{AssetUrlPrefix}}/img/dcs/{{.GetMetadataTypeIcon}}" style="height:16px;vertical-align:middle" /> |
69 | 66 | <a href="?sort={{$.SortType}}&q=metadata_type%3A{{.MetadataType}}"> |
|
72 | 69 | </td> |
73 | 70 | </tr> |
74 | 71 | <tr> |
75 | | - <td><strong>{{$ctx.Locale.Tr "repo.metadata.language"}}:</strong></td> |
| 72 | + <td><strong>{{$.locale.Tr "repo.metadata.language"}}:</strong></td> |
76 | 73 | <td><a href="?sort={{$.SortType}}&q=lang%3A{{.Language}}">{{.LanguageTitle}} ({{.Language}}, {{.LanguageDirection}})</a></td> |
77 | 74 | </tr> |
78 | 75 | <tr> |
79 | | - <td><strong>{{ctx.Locale.Tr "repo.metadata.stage"}}:</strong></td> |
| 76 | + <td><strong>{{$.locale.Tr "repo.metadata.stage"}}:</strong></td> |
80 | 77 | <td>{{.StageStr}}</td> |
81 | 78 | </tr> |
82 | 79 | <tr> |
83 | | - <td><strong>{{ctx.Locale.Tr "repo.metadata.ingredients"}}:</strong></td> |
| 80 | + <td><strong>{{$.locale.Tr "repo.metadata.ingredients"}}:</strong></td> |
84 | 81 | <td> |
85 | 82 | {{range .Ingredients}} |
86 | 83 | <a href="?sort={{$.SortType}}&q=book%3A{{.Identifier}}">{{.Identifier}}</a> |
87 | 84 | {{end}} |
88 | 85 | </td> |
89 | 86 | </tr> |
90 | 87 | <tr> |
91 | | - <td><strong>{{if .Release}}{{ctx.Locale.Tr "repo.metadata.release_date"}}{{else}}{{ctx.Locale.Tr "repo.metadata.last_updated"}}{{end}}:</strong></td> |
| 88 | + <td><strong>{{if .Release}}{{$.locale.Tr "repo.metadata.release_date"}}{{else}}{{$.locale.Tr "repo.metadata.last_updated"}}{{end}}:</strong></td> |
92 | 89 | <td>{{DateTime "full" .ReleaseDateUnix.AsTime}}</td> |
93 | 90 | </tr> |
94 | 91 | </table> |
95 | 92 | </div> |
96 | 93 | </div> |
97 | 94 | {{else}} |
98 | 95 | <div> |
99 | | - {{ctx.Locale.Tr "explore.repo_no_results"}} |
| 96 | + {{$.locale.Tr "explore.repo_no_results"}} |
100 | 97 | </div> |
101 | 98 | {{end}} |
102 | 99 | </div> |
0 commit comments