Browse Source

Небольшие правки по родителям #31

repo_rename
parent
commit
9ec307e7fd
  1. 2
      routers/web/repo/issue_parent.go
  2. 4
      templates/repo/issue/view_content/sidebar.tmpl

2
routers/web/repo/issue_parent.go

@ -104,7 +104,7 @@ func RemoveParent(ctx *context.Context) {
case "child": case "child":
parentType = models.ParentTypeChild parentType = models.ParentTypeChild
default: default:
ctx.Error(http.StatusBadRequest, "GetDependecyType") ctx.Error(http.StatusBadRequest, "GetParentType")
return return
} }

4
templates/repo/issue/view_content/sidebar.tmpl

@ -477,7 +477,7 @@
</div> </div>
<div class="item-right df ac"> <div class="item-right df ac">
{{if and $.CanCreateIssueParents (not $.Repository.IsArchived)}} {{if and $.CanCreateIssueParents (not $.Repository.IsArchived)}}
<a class="delete-parent-button tooltip ci muted" data-id="{{.Issue.ID}}" data-type="blocking" data-content="{{$.i18n.Tr "repo.issues.parent.remove_info"}}" data-inverted=""> <a class="delete-parent-button tooltip ci muted" data-id="{{.Issue.ID}}" data-type="child" data-content="{{$.i18n.Tr "repo.issues.parent.remove_info"}}" data-inverted="">
{{svg "octicon-trash" 16}} {{svg "octicon-trash" 16}}
</a> </a>
{{end}} {{end}}
@ -504,7 +504,7 @@
</div> </div>
<div class="item-right df ac"> <div class="item-right df ac">
{{if and $.CanCreateIssueParents (not $.Repository.IsArchived)}} {{if and $.CanCreateIssueParents (not $.Repository.IsArchived)}}
<a class="delete-parent-button tooltip ci muted" data-id="{{.Issue.ID}}" data-type="blockedBy" data-content="{{$.i18n.Tr "repo.issues.parent.remove_info"}}" data-inverted=""> <a class="delete-parent-button tooltip ci muted" data-id="{{.Issue.ID}}" data-type="father" data-content="{{$.i18n.Tr "repo.issues.parent.remove_info"}}" data-inverted="">
{{svg "octicon-trash" 16}} {{svg "octicon-trash" 16}}
</a> </a>
{{end}} {{end}}

Loading…
Cancel
Save