summaryrefslogtreecommitdiffstats
path: root/templates/issue/list.tmpl
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-26 21:21:30 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-26 21:21:30 +0800
commite0a6e6dd1a6cc534ee37fe149e2d11ac827b65d9 (patch)
tree797a5b7a46581035d4094cf388a50d1d6d0ca0db /templates/issue/list.tmpl
parentbf5fcfb49c777b649ccbb4c9e385cd247e194552 (diff)
downloadgitea-e0a6e6dd1a6cc534ee37fe149e2d11ac827b65d9.tar.gz
gitea-e0a6e6dd1a6cc534ee37fe149e2d11ac827b65d9.zip
issue ui update
Diffstat (limited to 'templates/issue/list.tmpl')
-rw-r--r--templates/issue/list.tmpl24
1 files changed, 20 insertions, 4 deletions
diff --git a/templates/issue/list.tmpl b/templates/issue/list.tmpl
index ba8055309d..aac27943f3 100644
--- a/templates/issue/list.tmpl
+++ b/templates/issue/list.tmpl
@@ -17,11 +17,11 @@
<h4>Label</h4>
<ul class="list-unstyled" id="label-list" data-ajax="{{$.RepoLink}}/issues/labels/delete">
{{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}}">
<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="name">{{.Name}}{{if eq $.SelectLabels .Id}}*{{end}}</span>
+ <span class="name">{{.Name}}</span>
</a>
<a class="del pull-right" href="#" data-id="{{.Id}}"><i class="fa fa-times-circle-o"></i></a>
</li>
@@ -36,6 +36,7 @@
<input type="hidden" name="id" id="label-change-id-ipt" value="0"/>
</div>
<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>
</div>
</form>
@@ -52,6 +53,7 @@
<span class="input-group-addon"><i></i></span>
</div>
<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>
</div>
</form>
@@ -69,7 +71,11 @@
{{range .Issues}}{{if .Poster}}
<div class="list-group-item issue-item{{if not .IsRead}} unread{{end}}" id="issue-{{.Id}}">
<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">
<span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/>
<a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span>
@@ -87,10 +93,20 @@
<script>
$(function(){
$('.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({
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>