diff options
author | Unknwon <u@gogs.io> | 2015-08-19 23:14:57 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 23:14:57 +0800 |
commit | 87f5ca8e1f74616d9dc36a5f6fe57023444ed25c (patch) | |
tree | a1236ad9a0bb90b6d1968e67ce40bf890ba94f47 /templates | |
parent | a35911486ffe0cd373662219a8f231b9cf38d84c (diff) | |
download | gitea-87f5ca8e1f74616d9dc36a5f6fe57023444ed25c.tar.gz gitea-87f5ca8e1f74616d9dc36a5f6fe57023444ed25c.zip |
able edit issue title
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 26 |
3 files changed, 26 insertions, 4 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e99b163e66..11cfcdb938 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -60,7 +60,7 @@ <input class="ipt ipt-large ipt-radius {{if .Err_Filter}}ipt-error{{end}}" id="filter" name="filter" value="{{.Source.LDAP.Filter}}" /> </div> <div class="field"> - <label class="req" for="filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label> + <label for="filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_AdminFilter}}ipt-error{{end}}" id="admin_filter" name="admin_filter" value="{{.Source.LDAP.AdminFilter}}" /> </div> <div class="field"> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 3f8f3d375b..4e9e2f8ef3 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -56,7 +56,7 @@ <input class="ipt ipt-large ipt-radius {{if .Err_Filter}}ipt-error{{end}}" id="filter" name="filter" value="{{.filter}}" /> </div> <div class="field"> - <label class="req" for="filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label> + <label for="filter">{{.i18n.Tr "admin.auths.admin_filter"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_AdminFilter}}ipt-error{{end}}" id="admin_filter" name="admin_filter" value="{{.admin_filter}}" /> </div> <div class="field"> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 393a583822..1b1c035b4b 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -5,7 +5,23 @@ </div> {{end}} <div class="sixteen wide column title"> - <h1><span class="index">#{{.Issue.Index}}</span> {{.Issue.Name}}</h1> + <div class="ui grid"> + <h1 class="twelve wide column"> + <span class="index">#{{.Issue.Index}}</span> <span id="issue-title">{{.Issue.Name}}</span> + <div id="edit-title-input" class="ui input" style="display: none"> + <input value="{{.Issue.Name}}"> + </div> + </h1> + {{if .IsIssueOwner}} + <div class="four wide column"> + <div class="edit-zone text right"> + <div id="edit-title" class="ui basic green not-in-edit button">{{.i18n.Tr "repo.issues.edit"}}</div> + <div id="cancel-edit-title" class="ui basic blue in-edit button" style="display: none">{{.i18n.Tr "repo.issues.cancel"}}</div> + <div id="save-edit-title" class="ui green in-edit button" style="display: none" data-update-url="{{.Link}}/title">{{.i18n.Tr "repo.issues.save"}}</div> + </div> + </div> + {{end}} + </div> {{if .Issue.IsClosed}} <div class="ui red large label"><i class="octicon octicon-issue-closed"></i> {{.i18n.Tr "repo.issues.closed_title"}}</div> {{else}} @@ -33,6 +49,9 @@ <div class="ui top attached header"> <span class="text grey"><a {{if gt .Issue.Poster.Id 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.Name}}</a> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span> <div class="ui right actions"> + {{if .IsIssueOwner}} + <a class="item" href="#"><i class="octicon octicon-pencil"></i></a> + {{end}} </div> </div> <div class="ui attached segment markdown"> @@ -68,7 +87,7 @@ <span class="text grey"><a {{if gt .Poster.Id 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}</span> <div class="ui right actions"> {{if gt .ShowTag 0}} - <div class="tag"> + <div class="item tag"> {{if eq .ShowTag 1}} {{$.i18n.Tr "repo.issues.poster"}} {{else if eq .ShowTag 2}} @@ -78,6 +97,9 @@ {{end}} </div> {{end}} + {{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}} + <a class="item" href="#"><i class="octicon octicon-pencil"></i></a> + {{end}} </div> </div> <div class="ui attached segment markdown"> |