2019-07-08 16:20:22 +08:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="repository wiki revisions">
|
|
|
|
{{template "repo/header" .}}
|
|
|
|
{{ $title := .title}}
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="ui stackable grid">
|
|
|
|
<div class="ui eight wide column text right">
|
|
|
|
<div class="ui action small input" id="clone-panel">
|
|
|
|
{{if not $.DisableHTTP}}
|
|
|
|
<button class="ui basic clone button" id="repo-clone-https" data-link="{{.WikiCloneLink.HTTPS}}">
|
|
|
|
{{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
|
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
{{if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
|
|
|
|
<button class="ui basic clone button" id="repo-clone-ssh" data-link="{{.WikiCloneLink.SSH}}">
|
|
|
|
SSH
|
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
{{if not $.DisableHTTP}}
|
|
|
|
<input id="repo-clone-url" value="{{$.WikiCloneLink.HTTPS}}" readonly>
|
|
|
|
{{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
|
|
|
|
<input id="repo-clone-url" value="{{$.WikiCloneLink.SSH}}" readonly>
|
|
|
|
{{end}}
|
2020-04-17 05:26:24 +08:00
|
|
|
{{if or (not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))}}
|
2019-07-08 16:20:22 +08:00
|
|
|
<button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
|
2020-02-12 01:02:41 +08:00
|
|
|
{{svg "octicon-clippy" 16}}
|
2019-07-08 16:20:22 +08:00
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ui header eight wide column">
|
2020-07-17 23:15:12 +08:00
|
|
|
<a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> {{svg "octicon-home" 16}}</a>
|
2019-07-08 16:20:22 +08:00
|
|
|
{{$title}}
|
2019-07-11 22:45:10 +08:00
|
|
|
<div class="ui sub header wrap">
|
2019-07-08 16:20:22 +08:00
|
|
|
{{$timeSince := TimeSince .Author.When $.Lang}}
|
|
|
|
{{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 class="ui top header">{{.i18n.Tr "repo.wiki.wiki_page_revisions"}}</h2>
|
|
|
|
<div class="ui" style="margin-top: 1rem;">
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
<div class="ui stackable grid">
|
|
|
|
<div class="sixteen wide column">
|
|
|
|
{{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
{{if and .Commits (gt .CommitCount 0)}}
|
2019-11-02 06:02:41 +08:00
|
|
|
{{template "repo/commits_list" .}}
|
2019-07-08 16:20:22 +08:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{template "base/paginate" .}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{{template "base/footer" .}}
|