aboutsummaryrefslogtreecommitdiff
path: root/templates/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-19 14:40:49 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-19 14:40:49 +0800
commit9e8e910bd64e3fd6526ead90f7211fcc1a81964d (patch)
tree709f40d26a56325abfca42024bd28f0843feeca9 /templates/repo
parent3da325591b5d8578f575f5fad59595f3c5efe4d6 (diff)
parent38776a0dd5762b2efbf70ebe98eeecdcd395c185 (diff)
merge
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issues.tmpl9
-rw-r--r--templates/repo/pulls.tmpl9
-rw-r--r--templates/repo/single.tmpl5
3 files changed, 20 insertions, 3 deletions
diff --git a/templates/repo/issues.tmpl b/templates/repo/issues.tmpl
new file mode 100644
index 00000000..daacc089
--- /dev/null
+++ b/templates/repo/issues.tmpl
@@ -0,0 +1,9 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+{{template "repo/nav" .}}
+{{template "repo/toolbar" .}}
+<div id="gogs-body" class="container">
+ <div id="gogs-source">
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file
diff --git a/templates/repo/pulls.tmpl b/templates/repo/pulls.tmpl
new file mode 100644
index 00000000..daacc089
--- /dev/null
+++ b/templates/repo/pulls.tmpl
@@ -0,0 +1,9 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+{{template "repo/nav" .}}
+{{template "repo/toolbar" .}}
+<div id="gogs-body" class="container">
+ <div id="gogs-source">
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index c19ade77..f1674446 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -42,10 +42,10 @@
<div class="panel panel-default info-box">
<div class="panel-heading info-head">
- <a href="/{{$username}}/{{$reponame}}/commit/{{.LatestCommit.SHA}}">{{.LatestCommit.Message}}</a>
+ <a href="/{{$username}}/{{$reponame}}/commit/{{.LastCommit.Oid.String}}">{{.LastCommit.Message}}</a>
</div>
<div class="panel-body info-content">
- <a href="/user/{{.LatestCommit.Author}}">{{.LatestCommit.Author}}</a> <span class="text-muted">{{TimeSince .CurrentCommit.Committer.When}}</span>
+ <a href="/user/{{.LastCommit.Author.Name}}">{{.LastCommit.Author.Name}}</a> <span class="text-muted">{{TimeSince .LastCommit.Author.When}}</span>
</div>
<table class="panel-footer table file-list">
<thead class="hidden">
@@ -57,7 +57,6 @@
</tr>
</thead>
<tbody>
- {{$currentCommit := .CurrentCommit}}
{{range .Files}}
<tr
{{if .IsDir}}class="is-dir"{{end}}>