aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemblob.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititemblob.qtpl')
-rw-r--r--templates/gititemblob.qtpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/gititemblob.qtpl b/templates/gititemblob.qtpl
new file mode 100644
index 0000000..89d002d
--- /dev/null
+++ b/templates/gititemblob.qtpl
@@ -0,0 +1,14 @@
+{% code
+type GitItemBlobPage struct {
+ File string
+ Content []byte
+}
+%}
+
+{% func (g *GitItemBlobPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Tree) %}{% endfunc %}
+
+{% func (g *GitItemBlobPage) GitContent() %}
+<div class="code-view">
+{%z= g.Content %}
+</div>
+{% endfunc %}