mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 15:34:42 +08:00
move to use let, missed a spot
This commit is contained in:
parent
51d7dc4355
commit
7895b71817
@ -42,7 +42,7 @@ export default function(topic, params){
|
|||||||
if (customHtml || (tags && tags.length > 0)) {
|
if (customHtml || (tags && tags.length > 0)) {
|
||||||
buffer = "<div class='discourse-tags'>";
|
buffer = "<div class='discourse-tags'>";
|
||||||
if (tags) {
|
if (tags) {
|
||||||
for(var i=0; i<tags.length; i++){
|
for(let i=0; i<tags.length; i++){
|
||||||
buffer += renderTag(tags[i]);
|
buffer += renderTag(tags[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,13 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if topic.tags}}
|
{{discourse-tags topic mode="list"}}
|
||||||
<div class='discourse-tags'>
|
|
||||||
{{#each topic.visibleListTags as |tag|}}
|
|
||||||
{{discourse-tag tag}}
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{raw-plugin-outlet name="topic-list-tags"}}
|
{{raw-plugin-outlet name="topic-list-tags"}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user