summaryrefslogtreecommitdiffstats
path: root/templates/issue/view.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-28 17:34:07 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-28 17:34:07 -0400
commita55941ff833155cba88dbcc957b15c0ddcf07cb4 (patch)
treedd892998bfb0b25eeb2b6f1d0ea8c8b9a69bf422 /templates/issue/view.tmpl
parent9047cadcd33f95eebafa2f794b895c8406eb80c5 (diff)
downloadgitea-a55941ff833155cba88dbcc957b15c0ddcf07cb4.tar.gz
gitea-a55941ff833155cba88dbcc957b15c0ddcf07cb4.zip
Add auto-detect home directory
Diffstat (limited to 'templates/issue/view.tmpl')
-rw-r--r--templates/issue/view.tmpl18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/issue/view.tmpl b/templates/issue/view.tmpl
index 609974f413..6f0a384800 100644
--- a/templates/issue/view.tmpl
+++ b/templates/issue/view.tmpl
@@ -11,7 +11,7 @@
<h1 class="title pull-left">{{.Issue.Name}}</h1>
<input id="issue-edit-title" class="form-control input-lg pull-left hidden" type="text" value="{issue.title}" data-ajax-rel="issue-save"/>
<p class="info pull-left">
- <a class="btn btn-default pull-right issue-edit" href="#" id="issue-edit-btn">Edit</a>
+ <!-- <a class="btn btn-default pull-right issue-edit" href="#" id="issue-edit-btn">Edit</a> -->
<a class="btn btn-danger pull-right issue-edit-cancel hidden" href="#">Cancel</a>
<a class="btn btn-primary pull-right issue-edit-save hidden" href="#" data-ajax="{issue.save.link}" data-ajax-name="issue-save">Save</a>
<span class="status label label-{{if .Issue.IsClosed}}danger{{else}}success{{end}}">{{if .Issue.IsClosed}}Closed{{else}}Open{{end}}</span>
@@ -34,8 +34,8 @@
<div class="issue-content panel panel-default">
<div class="panel-heading">
<a href="/user/{{.Poster.Name}}" class="user">{{.Poster.Name}}</a> commented <span class="time">{{TimeSince .Created}}</span>
- <a class="issue-comment-del pull-right issue-action" href="#" title="Edit Comment"><i class="fa fa-times-circle"></i></a>
- <a class="issue-comment-edit pull-right issue-action" href="#" title="Remove Comment" data-url="{remove-link}"><i class="fa fa-edit"></i></a>
+ <!-- <a class="issue-comment-del pull-right issue-action" href="#" title="Edit Comment"><i class="fa fa-times-circle"></i></a>
+ <a class="issue-comment-edit pull-right issue-action" href="#" title="Remove Comment" data-url="{remove-link}"><i class="fa fa-edit"></i></a> -->
<span class="role label label-default pull-right">Owner</span>
</div>
<div class="panel-body markdown">
@@ -44,7 +44,7 @@
</div>
</div>
{{end}}
- <div class="issue-child issue-closed">
+ <!-- <div class="issue-child issue-closed">
<a class="user pull-left" href="{user.link}"><img class="avatar" src="{user.avatar}" alt=""/></a>
<div class="issue-content">
<a class="user pull-left" href="{user.link}">{user.name}</a>
@@ -59,7 +59,7 @@
<span class="btn btn-success">Reopened</span> this
<span class="time">{close.time}</span>
</div>
- </div>
+ </div> -->
<hr class="issue-line"/>
<div class="issue-child issue-reply">
<a class="user pull-left" href="/user/{{.SignedUser.Name}}"><img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/></a>
@@ -86,9 +86,11 @@
</div>
<div class="text-right">
<div class="form-group">
- <input type="hidden" value="id" name="repo-id"/>
- <button class="btn-default btn issue-open" id="issue-open-btn" data-origin="Re-Open" data-text="Re-Open & Comment">Open</button>&nbsp;&nbsp;
- <button class="btn-default btn issue-close" id="issue-close-btn" data-origin="Close" data-text="Close & Comment">Close</button>&nbsp;&nbsp;
+ {{if .Issue.IsClosed}}
+ <input type="hidden" value="reopen" name="change_status"/>
+ <button class="btn-default btn issue-open" id="issue-open-btn" data-origin="Re-Open" data-text="Re-Open & Comment">Reopen</button>{{else}}
+ <input type="hidden" value="close" name="change_status"/>
+ <button class="btn-default btn issue-close" id="issue-close-btn" data-origin="Close" data-text="Close & Comment">Close</button>{{end}}&nbsp;&nbsp;
<button class="btn-success btn" id="issue-reply-btn">Comment</button>
</div>
</div>