diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-04 16:48:36 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-04 16:48:36 -0400 |
commit | be8ac7fb75a389402929dd726f39bbbbdb9a6531 (patch) | |
tree | add27b884bc67d9f04cc13befe081cd64e0706b3 /templates | |
parent | 7f3015b32b27d18300c0baaf26729a89dec43985 (diff) | |
download | gitea-be8ac7fb75a389402929dd726f39bbbbdb9a6531.tar.gz gitea-be8ac7fb75a389402929dd726f39bbbbdb9a6531.zip |
fix #273
Diffstat (limited to 'templates')
-rw-r--r-- | templates/VERSION | 2 | ||||
-rw-r--r-- | templates/repo/issue/create.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view.tmpl | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/templates/VERSION b/templates/VERSION index 8777e13060..6237548bbc 100644 --- a/templates/VERSION +++ b/templates/VERSION @@ -1 +1 @@ -0.4.5.0702 Alpha
\ No newline at end of file +0.4.5.0704 Alpha
\ No newline at end of file diff --git a/templates/repo/issue/create.tmpl b/templates/repo/issue/create.tmpl index 34cecc78bd..b548b1e749 100644 --- a/templates/repo/issue/create.tmpl +++ b/templates/repo/issue/create.tmpl @@ -15,6 +15,7 @@ <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" /> </div> <div class="form-group panel-body"> + {{if .IsRepositoryOwner}} <span><strong id="assigned" data-no-assigned="No one">No one</strong> will be assigned</span> <input type="hidden" name="assigneeid" value="0" id="assignee"/> <div style="display: inline-block;position: relative"> @@ -82,6 +83,7 @@ </div> </div> </div> + {{end}} <div class="form-group panel-body"> <div class="md-help pull-right"><!-- todo help link --> Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index ba1fe16b79..d95fba40d8 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -119,6 +119,7 @@ <div class="issue-bar col-md-2"> <div class="labels" data-ajax="{{.Issue.Index}}/label"> + {{if .IsRepositoryOwner}} <div class="pull-right action"> <button class="btn btn-default btn-sm" data-toggle="dropdown"> <i class="fa fa-tags"></i> @@ -136,6 +137,7 @@ </ul> </div> </div> + {{end}} <h4>Labels</h4> {{if .Issue.Labels}} {{range .Issue.Labels}} @@ -147,6 +149,7 @@ </div> <div class="milestone" data-milestone="{{.Milestone.Id}}" data-ajax="{{.Issue.Index}}/milestone"> <div class="pull-right action"> + {{if .IsRepositoryOwner}} <button class="btn btn-default btn-sm" data-toggle="dropdown"> <i class="fa fa-check-square-o"></i> <span class="caret"></span> @@ -193,6 +196,7 @@ </li> </ul> </div> + {{end}} </div> <h4>Milestone</h4> {{if .Milestone}} |