File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,8 @@ issues.LabelsView = Backbone.View.extend({
37
37
} ,
38
38
template : wcTmpl [ "issue/issue-labels.jst" ] ,
39
39
// this subTemplate will need to be kept in sync with
40
- // relavant parts in $('#issue-labels-tmpl')
41
- // TODO: put subTemplate in its own .tmpl file
42
- subTemplate : _ . template (
43
- [
44
- "<% _.each(labels, function(label) { %>" ,
45
- '<span class="wc-Label wc-Label--badge js-Label" style="background-color:#<%=label.color%>">' ,
46
- "<%= label.name %>" ,
47
- "</span>" ,
48
- "<% }); %>"
49
- ] . join ( "" )
50
- ) ,
40
+ // relavant parts in issue/issue-labels.jst
41
+ subTemplate : wcTmpl [ "issue/issue-lables-sub.jst" ] ,
51
42
render : function ( ) {
52
43
this . $el . html ( this . template ( this . model . toJSON ( ) ) ) ;
53
44
this . fetchLabels ( ) ;
Original file line number Diff line number Diff line change
1
+ <script type =" text/template" >
2
+ <% _.each(labels, function(label) { %>
3
+ <span class =" wc-Label wc-Label--badge js-Label
4
+ style=" background-color:# <% =label.color% >">
5
+ <%= label.name %>
6
+ </span >
7
+ <% }); %>
8
+ <script type =" text/template" >
You can’t perform that action at this time.
0 commit comments