aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-27 02:16:12 -0500
committerUnknwon <u@gogs.io>2015-11-27 02:16:12 -0500
commit5d1f5f32d069ee58a9eb89072231d92dc9ec5f74 (patch)
treefa45e03f1f5fc876e2289bfebead88b6157c9c40 /templates/repo/wiki
parente42fcb033d4a7ee44fe397be3e933d7031b7d8f7 (diff)
downloadgitea-5d1f5f32d069ee58a9eb89072231d92dc9ec5f74.tar.gz
gitea-5d1f5f32d069ee58a9eb89072231d92dc9ec5f74.zip
wiki: finish pages
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r--templates/repo/wiki/pages.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl
new file mode 100644
index 0000000000..f99f6a4ecf
--- /dev/null
+++ b/templates/repo/wiki/pages.tmpl
@@ -0,0 +1,28 @@
+{{template "base/head" .}}
+<div class="repository wiki pages">
+ {{template "repo/header" .}}
+ <div class="ui container">
+ {{template "repo/sidebar" .}}
+ <div class="ui header">
+ {{.i18n.Tr "repo.wiki.pages"}}
+ <div class="ui right">
+ <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
+ </div>
+ </div>
+ <table class="ui table">
+ <tbody>
+ {{range .Pages}}
+ <tr>
+ <td>
+ <i class="icon octicon octicon-file-text"></i>
+ <a href="{{$.RepoLink}}/wiki/{{.URL}}">{{.Name}}</a>
+ </td>
+ {{$timeSince := TimeSince .Updated $.Lang}}
+ <td class="text right grey">{{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
+ </tr>
+ {{end}}
+ </tbody>
+ </table>
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file