File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -121,3 +121,12 @@ Template.resultsData.helpers({
121
121
}
122
122
} )
123
123
124
+ /**
125
+ *
126
+ */
127
+
128
+ Template . registerHelper ( 'mkList' , ( str ) => {
129
+ var arr = str . split ( ',' ) ;
130
+ return arr ;
131
+ } )
132
+
Original file line number Diff line number Diff line change 88
88
{{getCount @index}}
89
89
< strong > < span class ="{{#if isAPI}} has-text-danger {{/if}} "> {{fullname}}</ span > </ strong >
90
90
91
- {{#if keywords}}< a href ='# ' class ="setSettings button is-rounded is-small "
92
- data-settings ="keywordFilter:{{keywords}} "> < span
93
- class =" is-primary "> {{keywords}}</ span > </ a > {{/if}}
91
+ {{#if keywords}}
92
+
93
+ {{#each mkList keywords}}
94
+
95
+ < a href ='# ' class ="setSettings button is-rounded is-small "
96
+ data-settings ="keywordFilter:{{this}} "> < span
97
+ class =" is-primary "> {{this}}</ span > </ a >
98
+
99
+
100
+
101
+ {{/each}}
102
+
103
+
104
+
105
+
106
+ {{/if}}
94
107
< br />
95
108
< small > {{ moFormat this.createAt 'dddd, MMMM Do YYYY, h:mm:ss a'}}</ small >
96
109
< br >
You can’t perform that action at this time.
0 commit comments