diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-25 12:12:27 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-25 12:12:27 -0400 |
commit | 2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf (patch) | |
tree | 7fdae59ac504c0aedd0a657ff9a9bd9f30de3b22 /templates/issue | |
parent | 23d103c72163cdb4ea65c9756edf22c597060a7e (diff) | |
download | gitea-2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf.tar.gz gitea-2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf.zip |
Added create issue
Diffstat (limited to 'templates/issue')
-rw-r--r-- | templates/issue/create.tmpl | 9 | ||||
-rw-r--r-- | templates/issue/list.tmpl (renamed from templates/issue/repo.tmpl) | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/templates/issue/create.tmpl b/templates/issue/create.tmpl index 34c7f40aa3..cbc21f6ce0 100644 --- a/templates/issue/create.tmpl +++ b/templates/issue/create.tmpl @@ -4,13 +4,14 @@ {{template "repo/toolbar" .}} <div id="body" class="container"> <div id="issue"> - <form class="form" action="#" method="post" id="issue-create-form"> + <form class="form" action="/{{.RepositoryLink}}/issues/new" method="post" id="issue-create-form"> + {{.CsrfTokenHtml}} <div class="col-md-1"> - <img class="avatar" src="http://tp2.sinaimg.cn/5068084885/50/40050297589/1" alt=""/> + <img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/> </div> <div class="col-md-8 panel panel-default"> <div class="form-group panel-body"> - <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title"/> + <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" /> </div> <div class="form-group panel-body"> <div class="md-help pull-right"><!-- todo help link --> @@ -23,7 +24,7 @@ <div class="tab-content"> <div class="tab-pane" id="issue-textarea"> <div class="form-group"> - <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content"></textarea> + <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content">{{.content}}</textarea> </div> </div> <div class="tab-pane" id="issue-preview">preview</div> diff --git a/templates/issue/repo.tmpl b/templates/issue/list.tmpl index c348f27ff6..685eaeeb96 100644 --- a/templates/issue/repo.tmpl +++ b/templates/issue/list.tmpl @@ -19,6 +19,11 @@ </div> </div> <div class="issues list-group"> + {{range .Issues}} + <div class="list-group-item issue-item" id="{{.Id}}"></div> + {{end}} + </div> + <div class="issues list-group"> <div class="list-group-item unread issue-item" id="issue-id"> <span class="number pull-right">#123</span> <h5 class="title"><a href="#">Bug: When running tests after generating a beego app, templates do not load.</a></h5> |