From b4c0b7b98b925eb470d361d9e90d0032770513ff Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 12 Aug 2015 17:04:23 +0800 Subject: finish view issue without comments and ops --- templates/repo/issue/view.tmpl | 297 ++--------------------------------------- 1 file changed, 14 insertions(+), 283 deletions(-) (limited to 'templates/repo/issue/view.tmpl') diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index d13364aa54..129bfd0859 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -1,284 +1,15 @@ -{{template "base/head_old" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -
-
-
-
-
-
#{{.Issue.Index}}
- -

{{.Issue.Name}}

- - -

- {{if .IsIssueOwner}}Edit - - {{end}} - {{if .Issue.IsClosed}}Closed{{else}}Open{{end}} - {{.Issue.Poster.Name}} opened this issue - {{TimeSince .Issue.Created $.Lang}} ยท {{.Issue.NumComments}} comments -

-
-
-
-
-
- {{Str2html .Issue.RenderedContent}} -
- -
- {{with $attachments := .Issue.Attachments}} - {{if $attachments}} -
- Attachments: - - {{range $attachments}} - {{.Name}} - {{end}} -
- {{end}} - {{end}} -
- {{range .Comments}} - {{/* 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE, 4 = COMMIT, 5 = PULL */}} - {{if eq .Type 0}} -
- -
-
- {{.Poster.Name}} commented {{TimeSince .Created $.Lang}} - - {{if eq .Poster.Id $.Owner.Id}} - Owner - {{end}} -
-
- {{if len .Content}} - {{Str2html .Content}} - {{else}} - No comment entered - {{end}} -
- {{with $attachments := .Attachments}} - {{if $attachments}} -
- Attachments: - - {{range $attachments}} - {{.Name}} - {{end}} -
- {{end}} - {{end}} -
-
- {{else if eq .Type 1}} -
- -
- {{.Poster.Name}} Reopened this issue {{TimeSince .Created $.Lang}} -
-
- {{else if eq .Type 2}} -
- -
- {{.Poster.Name}} Closed this issue {{TimeSince .Created $.Lang}} -
-
- {{else if eq .Type 4}} -
- -
- {{.Poster.Name}} Referenced this issue {{TimeSince .Created $.Lang}} -

- - {{.ContentHtml}} -

-
-
- {{end}} - {{end}} -
- {{if .SignedUser}}
- -
- {{.CsrfTokenHtml}} -
-
-
Content with Markdown -
- -
-
-
-
- - -
-
-
Loading...
-
-
- {{if .AttachmentsEnabled}} - - {{end}} -
-
- {{if .AttachmentsEnabled}} - - {{end}} - {{if .IsIssueOwner}}{{if .Issue.IsClosed}} - {{else}} - {{end}}{{end}}   - -
-
-
-
-
{{else}}
Sign up for free to join this conversation. Already have an account? Sign in to comment
{{end}} -
-
- -
-
- {{if .IsRepositoryOwner}} -
- - -
- {{end}} -

Labels

- {{if .Issue.Labels}} - {{range .Issue.Labels}} -

{{.Name}}

- {{end}} - {{else}} -

None yet

- {{end}} -
-
-
- {{if .IsRepositoryOwner}} - - - {{end}} -
-

Milestone

- {{if .Milestone}} -

 

-

{{.Milestone.Name}}

- {{else}} -

No milestone

- {{end}} -
- -
{{if .IsRepositoryOwner}} -
- - -
{{end}} -

Assignee

-

{{if .Issue.Assignee}}{{.Issue.Assignee.Name}}{{else}}No one assigned{{end}}

-
-
-
-
+{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ +
+ {{template "repo/issue/view_content" .}} +
-{{template "base/footer_old" .}} +{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3