From e42fcb033d4a7ee44fe397be3e933d7031b7d8f7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 27 Nov 2015 01:50:38 -0500 Subject: wiki: finish edit --- templates/repo/nav.tmpl | 67 ------------------------------------------- templates/repo/wiki/new.tmpl | 11 +++++-- templates/repo/wiki/view.tmpl | 32 +++++++++++++++++++-- 3 files changed, 39 insertions(+), 71 deletions(-) delete mode 100644 templates/repo/nav.tmpl (limited to 'templates') diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl deleted file mode 100644 index dfcfd74542..0000000000 --- a/templates/repo/nav.tmpl +++ /dev/null @@ -1,67 +0,0 @@ -
-
-
-
-

{{.Owner.Name}} / {{.Repository.Name}} {{if .Repository.IsPrivate}}Private{{else if .Repository.IsMirror}}Mirror{{end}}

-

{{.Repository.DescriptionHtml}}{{if .Repository.Website}} {{.Repository.Website}}{{end}}

-
-
- {{if not .IsBareRepo}} -
- - - -
- {{if .IsSigned}} -
- {{if .IsRepositoryWatching}} - - {{else}} - - {{end}} - - -
- {{end}} - - {{end}} - -
-
-
-
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index fc556e491d..6a2ce43a58 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -3,16 +3,23 @@ {{template "repo/header" .}}
{{template "repo/sidebar" .}} + {{template "base/alert" .}}
{{.i18n.Tr "repo.wiki.new_page"}} + {{if .PageIsWikiEdit}} + + {{end}}
{{.CsrfTokenHtml}} -
+ +
- +
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index f41e297ec0..a23076ef2a 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -3,15 +3,43 @@ {{template "repo/header" .}}
{{template "repo/sidebar" .}} +
+ +
- {{.Title}} + {{.title}} + {{if .IsRepositoryPusher}} + + {{end}}
{{$timeSince := TimeSince .Author.When $.Lang}} {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
- {{.Content | Str2html}} + {{.content | Str2html}}
-- cgit v1.2.3