]> source.dussan.org Git - gitea.git/commitdiff
apply exclude label on milestone issue list (#8739)
authorjaqra <48099350+jaqra@users.noreply.github.com>
Tue, 29 Oct 2019 20:50:38 +0000 (23:50 +0300)
committerLauris BH <lauris@nix.lv>
Tue, 29 Oct 2019 20:50:38 +0000 (22:50 +0200)
* apply exclude label on milestone issue list

* remove __debug.bin file

templates/repo/issue/milestone_issues.tmpl

index 889cd2c2f6715d7475a5dfe9876de93398a37936..b347ad90e4cd6d97d395fe92be021eedf9a15af2 100644 (file)
                                </div>
                        </div>
                        <div class="ten wide right aligned column">
-                               <div class="ui secondary filter stackable menu">
+                               <div class="ui secondary filter stackable menu labels">
                                        <!-- Label -->
-                                       <div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item" style="margin-left: auto">
+                                       <div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item label-filter" style="margin-left: auto">
                                                <span class="text">
                                                        {{.i18n.Tr "repo.issues.filter_label"}}
                                                        <i class="dropdown icon"></i>
                                                </span>
                                                <div class="menu">
+                                                       <span class="info">{{.i18n.Tr "repo.issues.filter_label_exclude" | Safe}}</span>
                                                        <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_label_no_select"}}</a>
                                                        {{range .Labels}}
-                                                               <a class="item has-emoji" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.ID}}&assignee={{$.AssigneeID}}"><span class="octicon {{if eq $.SelectLabels .ID}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a>
+                                                               <a class="item has-emoji label-filter-item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.ID}}&assignee={{$.AssigneeID}}" data-label-id="{{.ID}}"><span class="octicon {{if .IsExcluded}}octicon-circle-slash{{else if eq $.SelectLabels .ID}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a>
                                                        {{end}}
                                                </div>
                                        </div>