aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemblob.qtpl
blob: f9bab3d53aa36fdc211bab7c9feea16b179b333f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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(name, ref string) %}
<div class="code-view">
{%z= g.Content %}
</div>
{% endfunc %}