From 59d0e73c3507296b31c8e741b44afc7bfe1eb695 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 26 Apr 2014 22:34:48 -0600 Subject: Batch mirror fix --- templates/repo/single_file.tmpl | 45 +++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'templates/repo/single_file.tmpl') diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl index 9199ca91..b8205024 100644 --- a/templates/repo/single_file.tmpl +++ b/templates/repo/single_file.tmpl @@ -21,30 +21,31 @@ {{end}} + {{if not .FileIsText}} - - {{else}} - {{if .ReadmeExist}} -
- {{.FileContent|str2html}} -
+
+ {{if .IsImageFile}} + {{else}} -
- - - - - - - -
{{.FileContent}}
-
+ View Raw {{end}} +
+ {{else}} + {{if .ReadmeExist}} +
+ {{.FileContent|str2html}} +
+ {{else}} +
+ + + + + + + +
{{.FileContent}}
+
+ {{end}} {{end}} -- cgit v1.2.3