diff options
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r-- | templates/repo/diff.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 3d4a8b1fa7..443e002d59 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -89,7 +89,11 @@ {{$.i18n.Tr "repo.diff.bin"}} {{end}} </div> + {{if $file.IsDeleted}} + <a class="btn btn-gray btn-header btn-radius text-black pull-right" rel="nofollow" href="{{$.BeforeSourcePath}}/{{.Name}}">{{$.i18n.Tr "repo.diff.view_file"}}</a> + {{else}} <a class="btn btn-gray btn-header btn-radius text-black pull-right" rel="nofollow" href="{{$.SourcePath}}/{{.Name}}">{{$.i18n.Tr "repo.diff.view_file"}}</a> + {{end}} <span class="file">{{$file.Name}}</span> </div> {{$isImage := (call $.IsImageFile $file.Name)}} |