summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-16 11:11:59 -0500
committerUnknwon <u@gogs.io>2015-11-16 11:11:59 -0500
commit5dc3dd17049a5c097122c6159aa7a915658c263a (patch)
tree5ab99c59f6b9cf55f4e4de5b0cf5619d95c81355 /cmd/web.go
parent134d8e7681d098b8b37d4ee47cea0e03d643965d (diff)
downloadgitea-5dc3dd17049a5c097122c6159aa7a915658c263a.tar.gz
gitea-5dc3dd17049a5c097122c6159aa7a915658c263a.zip
fix #1960
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 095ddeb1f0..dfe47021c7 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -515,10 +515,13 @@ func runWeb(ctx *cli.Context) {
m.Group("", func() {
m.Get("/releases", repo.Releases)
m.Get("/^:type(issues|pulls)$", repo.RetrieveLabels, repo.Issues)
- m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue)
m.Get("/labels/", repo.RetrieveLabels, repo.Labels)
m.Get("/milestones", repo.Milestones)
- }, middleware.RepoRef())
+ }, middleware.RepoRef(),
+ func(ctx *middleware.Context) {
+ ctx.Data["PageIsList"] = true
+ })
+ m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue)
m.Get("/branches", repo.Branches)
m.Get("/archive/*", repo.Download)
highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new issue">
	{{template "repo/header" .}}
	<div class="ui container">
		{{if .Flash.WarningMsg}}
			{{/*
			There's already an importing of alert.tmpl in new_form.tmpl,
			but only the negative message will be displayed within forms for some reasons, see semantic.css:10659.
			To avoid repeated negative messages, the importing here if for .Flash.WarningMsg only.
			 */}}
			{{template "base/alert" .}}
		{{end}}
		{{template "repo/issue/new_form" .}}
	</div>
</div>
{{template "base/footer" .}}