@ -1,38 +1,41 @@
{{template "base/head" .}}
{{template "base/head" .}}
<div class="repository labels">
<div class="repository labels">
{{template "repo/header" .}}
{{template "repo/header" .}}
<div class="ui middle page grid body ">
<div class="ui container ">
<div class="navbar">
<div class="navbar">
{{template "repo/issue/navbar" .}}
{{template "repo/issue/navbar" .}}
{{if .IsRepositoryAdmin}}
{{if .IsRepositoryAdmin}}
<form class="ui right form" action="{{$.RepoLink}}/labels/new" method="post">
<div class="ui right">
<div class="ui green new-label button">{{.i18n.Tr "repo.issues.new_label"}}</div>
</div>
{{end}}
</div>
<div class="ui new-label segment hide">
<form class="ui form" action="{{$.RepoLink}}/labels/new" method="post">
{{.CsrfTokenHtml}}
{{.CsrfTokenHtml}}
<div class="ui right floated secondary menu">
<div class="ui g rid">
<div class="input item">
<div class="five wide column ">
<div class="ui large input">
<div class="ui small input">
<input class="new-label-input" name="title" placeholder="{{.i18n.Tr "repo.issues.new_label_placeholder"}}" required>
<input class="new-label-input" name="title" placeholder="{{.i18n.Tr "repo.issues.new_label_placeholder"}}" autofocus required>
</div>
</div>
</div>
</div>
<div class="item">
<div class="color picker column">
<div class="ui large input">
<input class="color-picker" name="color" value=" #70c24a" required>
<input class="color-picker" name="color" value=" #70c24a" required>
</div>
</div>
</div>
<div class="column precolors">
<div class="item precolors">
{{template "repo/issue/label_precolors"}}
{{template "repo/issue/label_precolors"}}
</div>
</div>
<button class="ui green button">{{.i18n.Tr "repo.issues.new_label"}}</button>
<div class="buttons">
<div class="ui blue small basic cancel button">{{.i18n.Tr "repo.milestones.cancel"}}</div>
<button class="ui green small button">{{.i18n.Tr "repo.issues.create_label"}}</button>
</div>
</div>
</div>
</form>
</form>
{{end}}
</div>
</div>
<div class="ui divider"></div>
<div class="ui divider"></div>
{{template "repo/issue/alert" .}}
{{template "base/alert" .}}
<div class="ui left">
<div class="ui black label">{{.i18n.Tr "repo.issues.label_count" .NumLabels}}</div>
<div class="ui black label">{{.i18n.Tr "repo.issues.label_count" .NumLabels}}</div>
</div>
<div class="sixteen wide column">
<div class="label list">
<div class="label list">
{{range .Labels}}
{{range .Labels}}
<li class="item">
<li class="item">
@ -47,34 +50,27 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{if .IsRepositoryAdmin}}
{{if .IsRepositoryAdmin}}
<div class="ui basic delete modal">
<div class="ui small basic delete modal">
<div class="header">
<div class="ui icon header">
<i class="trash icon"></i>
{{.i18n.Tr "repo.issues.label_deletion"}}
{{.i18n.Tr "repo.issues.label_deletion"}}
</div>
</div>
<div class="content">
<div class="content">
<div class="image">
<i class="trash icon"></i>
</div>
<div class="description">
<p>{{.i18n.Tr "repo.issues.label_deletion_desc"}}</p>
<p>{{.i18n.Tr "repo.issues.label_deletion_desc"}}</p>
</div>
</div>
</div>
<div class="actions">
<div class="actions">
<div class="two fluid ui inverted buttons">
<div class="ui red basic inverted cancel button">
<div class="ui red basic inverted button">
<i class="remove icon"></i>
<i class="remove icon"></i>
{{.i18n.Tr "modal.no"}}
{{.i18n.Tr "modal.no"}}
</div>
</div>
<div class="ui green basic inverted positive button">
<div class="ui green basic inverted ok button">
<i class="checkmark icon"></i>
<i class="checkmark icon"></i>
{{.i18n.Tr "modal.yes"}}
{{.i18n.Tr "modal.yes"}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui small edit-label modal">
<div class="ui small edit-label modal">
<div class="header">
<div class="header">
@ -84,14 +80,16 @@
<form class="ui edit-label form" action="{{$.RepoLink}}/labels/edit" method="post">
<form class="ui edit-label form" action="{{$.RepoLink}}/labels/edit" method="post">
{{.CsrfTokenHtml}}
{{.CsrfTokenHtml}}
<input id="label-modal-id" name="id" type="hidden">
<input id="label-modal-id" name="id" type="hidden">
<div class="inline fields">
<div class="ui grid">
<div class="field">
<div class="five wide column">
<input id="label-modal-title" name="title" placeholder="{{.i18n.Tr "repo.issues.new_label_placeholder"}}" required>
<div class="ui small input">
<input class="new-label-input" name="title" placeholder="{{.i18n.Tr "repo.issues.new_label_placeholder"}}" autofocus required>
</div>
</div>
<div class="field">
<input id="label-modal-color" class="color-picker" name="color" value=" #70c24a" required>
</div>
</div>
<div class="field precolors">
<div class="color picker column">
<input class="color-picker" name="color" value=" #70c24a" required>
</div>
<div class="column precolors">
{{template "repo/issue/label_precolors"}}
{{template "repo/issue/label_precolors"}}
</div>
</div>
</div>
</div>