|
|
@ -17,11 +17,11 @@ |
|
|
|
<h4>Label</h4> |
|
|
|
<h4>Label</h4> |
|
|
|
<ul class="list-unstyled" id="label-list" data-ajax="{{$.RepoLink}}/issues/labels/delete"> |
|
|
|
<ul class="list-unstyled" id="label-list" data-ajax="{{$.RepoLink}}/issues/labels/delete"> |
|
|
|
{{range .Labels}} |
|
|
|
{{range .Labels}} |
|
|
|
<li class="label-item" id="label-{{.Id}}" data-id="{{.Id}}"> |
|
|
|
<li class="label-item{{if eq $.SelectLabels .Id}} label-selected{{end}}" id="label-{{.Id}}" data-id="{{.Id}}"> |
|
|
|
<a href="?type={{$.ViewType}}&state={{$.State}}{{if not (eq $.SelectLabels .Id)}}&labels={{.Id}}{{end}}"> |
|
|
|
<a href="?type={{$.ViewType}}&state={{$.State}}{{if not (eq $.SelectLabels .Id)}}&labels={{.Id}}{{end}}"> |
|
|
|
<span class="pull-right count">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</span> |
|
|
|
<span class="pull-right count">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</span> |
|
|
|
<span class="color" style="background-color: {{.Color}}" data-color="{{.Color}}"></span> |
|
|
|
<span class="color" style="background-color: {{.Color}}" data-color="{{.Color}}"></span> |
|
|
|
<span class="name">{{.Name}}{{if eq $.SelectLabels .Id}}*{{end}}</span> |
|
|
|
<span class="name">{{.Name}}</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<a class="del pull-right" href="#" data-id="{{.Id}}"><i class="fa fa-times-circle-o"></i></a> |
|
|
|
<a class="del pull-right" href="#" data-id="{{.Id}}"><i class="fa fa-times-circle-o"></i></a> |
|
|
|
</li> |
|
|
|
</li> |
|
|
@ -36,6 +36,7 @@ |
|
|
|
<input type="hidden" name="id" id="label-change-id-ipt" value="0"/> |
|
|
|
<input type="hidden" name="id" id="label-change-id-ipt" value="0"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group text-right"> |
|
|
|
<div class="form-group text-right"> |
|
|
|
|
|
|
|
<input class="form-control input-sm" type="text" id="label-color-change-ipt2" value="#444444"/> |
|
|
|
<button class="btn btn-default btn-sm">Save</button> |
|
|
|
<button class="btn btn-default btn-sm">Save</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
@ -52,6 +53,7 @@ |
|
|
|
<span class="input-group-addon"><i></i></span> |
|
|
|
<span class="input-group-addon"><i></i></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group text-right"> |
|
|
|
<div class="form-group text-right"> |
|
|
|
|
|
|
|
<input class="form-control input-sm" type="text" id="label-color-ipt2" value="#444444"/> |
|
|
|
<button class="btn btn-default btn-sm">Create</button> |
|
|
|
<button class="btn btn-default btn-sm">Create</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
@ -69,7 +71,11 @@ |
|
|
|
{{range .Issues}}{{if .Poster}} |
|
|
|
{{range .Issues}}{{if .Poster}} |
|
|
|
<div class="list-group-item issue-item{{if not .IsRead}} unread{{end}}" id="issue-{{.Id}}"> |
|
|
|
<div class="list-group-item issue-item{{if not .IsRead}} unread{{end}}" id="issue-{{.Id}}"> |
|
|
|
<span class="number pull-right">#{{.Index}}</span> |
|
|
|
<span class="number pull-right">#{{.Index}}</span> |
|
|
|
<h5 class="title"><a href="{{$.RepoLink}}/issues/{{.Index}}">{{.Name}}</a></h5> |
|
|
|
<h5 class="title"><a href="{{$.RepoLink}}/issues/{{.Index}}">{{.Name}}</a> |
|
|
|
|
|
|
|
<span class="labels"> |
|
|
|
|
|
|
|
<span class="label" style="background-color: #28a1c5">tag</span> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</h5> |
|
|
|
<p class="info"> |
|
|
|
<p class="info"> |
|
|
|
<span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/> |
|
|
|
<span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/> |
|
|
|
<a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span> |
|
|
|
<a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span> |
|
|
@ -87,10 +93,20 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
$(function(){ |
|
|
|
$(function(){ |
|
|
|
$('.label-color-picker').colorpicker({ |
|
|
|
$('.label-color-picker').colorpicker({ |
|
|
|
input:$('#label-color-ipt') |
|
|
|
input: $('#label-color-ipt') |
|
|
|
|
|
|
|
}).on('changeColor', function (ev) { |
|
|
|
|
|
|
|
var $ipt = $('#label-color-ipt2'); |
|
|
|
|
|
|
|
if ($ipt.val().length != 4) { |
|
|
|
|
|
|
|
$ipt.val(ev.color.toHex()); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('.label-change-color-picker').colorpicker({ |
|
|
|
$('.label-change-color-picker').colorpicker({ |
|
|
|
input:$('#label-color-change-ipt') |
|
|
|
input:$('#label-color-change-ipt') |
|
|
|
|
|
|
|
}).on('changeColor', function (ev) { |
|
|
|
|
|
|
|
var $ipt = $('#label-color-change-ipt2'); |
|
|
|
|
|
|
|
if ($ipt.val().length != 4) { |
|
|
|
|
|
|
|
$ipt.val(ev.color.toHex()); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|