mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 19:54:25 +00:00
c0246677a6
Fix regression from https://github.com/go-gitea/gitea/pull/23578. Only visible on arc-green. Before: <img width="997" alt="Screenshot 2023-03-27 at 19 14 21" src="https://user-images.githubusercontent.com/115237/228016589-e7cabfb9-bfd0-45fd-9407-6b76c665ed1a.png"> After: <img width="1000" alt="Screenshot 2023-03-27 at 19 14 05" src="https://user-images.githubusercontent.com/115237/228016600-db2e6002-4e2c-4d18-8393-9d7e1f525acb.png"> Fixes: https://github.com/go-gitea/gitea/issues/20625 Fixes: https://github.com/go-gitea/gitea/issues/23718
32 lines
914 B
Handlebars
32 lines
914 B
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository wiki pages">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<h2 class="ui header gt-df gt-ac gt-sb">
|
|
<div>
|
|
{{.locale.Tr "repo.wiki.pages"}}
|
|
</div>
|
|
<div>
|
|
{{if and .CanWriteWiki (not .IsRepositoryMirror)}}
|
|
<a class="ui green small button" href="{{.RepoLink}}/wiki?action=_new">{{.locale.Tr "repo.wiki.new_page_button"}}</a>
|
|
{{end}}
|
|
</div>
|
|
</h2>
|
|
<table class="ui table">
|
|
<tbody>
|
|
{{range .Pages}}
|
|
<tr>
|
|
<td>
|
|
{{svg "octicon-file"}}
|
|
<a href="{{$.RepoLink}}/wiki/{{.SubURL}}">{{.Name}}</a>
|
|
</td>
|
|
{{$timeSince := TimeSinceUnix .UpdatedUnix $.locale}}
|
|
<td class="text right">{{$.locale.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|