mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 18:49:29 +02:00
fix image display
This commit is contained in:
1 parent
16cb1e974c
commit
346db02d89
3 files changed
+26
-9
No files matched your search
@@ -23,7 +23,11 @@
|
||||
</div>
|
||||
{{if not .FileIsText}}
|
||||
<div class="panel-footer text-center">
|
||||
<a href="{{.FileLink}}" class="btn btn-default">View Raw</a>
|
||||
{{if .IsImageFile}}
|
||||
<img src="{{.FileLink}}">
|
||||
{{else}}
|
||||
<a href="{{.FileLink}}" class="btn btn-default">View Raw</a>
|
||||
{{end}}
|
||||
</div>
|
||||
{{else}}
|
||||
{{if .ReadmeExist}}
|
||||
@@ -43,4 +47,4 @@
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user