File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
<div class="ui stackable grid">
7
7
<div class="ui eight wide column">
8
8
<div class="ui header">
9
- <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}"><span>{{.revision}}</span> {{svg "octicon-home"}}</a>
9
+ <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}">{{if .revision}} <span>{{.revision}}</span> {{end}} {{svg "octicon-home"}}</a>
10
10
{{$title}}
11
11
<div class="ui sub header tw-break-anywhere">
12
12
{{$timeSince := DateUtils.TimeSince .Author.When}}
Original file line number Diff line number Diff line change 45
45
<div class="ui dividing header">
46
46
<div class="ui stackable grid">
47
47
<div class="eight wide column">
48
- <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.file_revision"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_revision" ><span>{{.CommitCount}}</span> {{svg "octicon-history"}}</a>
48
+ <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.file_revision"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_revision" >{{if .CommitCount}} <span>{{.CommitCount}}</span> {{end}} {{svg "octicon-history"}}</a>
49
49
{{$title}}
50
50
<div class="ui sub header">
51
51
{{$timeSince := DateUtils.TimeSince .Author.When}}
You can’t perform that action at this time.
0 commit comments