fix unescaped string
improve tab "active" detection for categories
This commit is contained in:
parent
06b7085287
commit
ce82d18df5
|
@ -13,9 +13,9 @@
|
|||
</div>
|
||||
<div class="right">
|
||||
<span class="commit-message"><a {{bindAttr href="commitUrl"}} target="_blank">{{ commit.message }}</a></span><br/>
|
||||
<span class="commit-meta">{{i18n admin.commits.by}} <span class="committer-name">{{ commit.author.name }}</span> - <span class="commit-time">{{ timeAgo }}</span></span>
|
||||
<span class="commit-meta">{{i18n admin.commits.by}} <span class="committer-name">{{ commit.author.name }}</span> - <span class="commit-time">{{{ timeAgo }}}</span></span>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -74,8 +74,6 @@ Discourse.NavItem.reopenClass({
|
|||
filters: split.splice(1)
|
||||
};
|
||||
|
||||
// if (countSummary && countSummary[name]) opts.count = countSummary[name];
|
||||
|
||||
return Discourse.NavItem.create(opts);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ Discourse.NavItemView = Discourse.View.extend({
|
|||
}.property("content.filter"),
|
||||
|
||||
isActive: function() {
|
||||
if (this.get("content.name").replace(' ','-') === this.get("controller.filterMode")) return "active";
|
||||
if (this.get("content.name").toLowerCase().replace(' ','-') === this.get("controller.filterMode")) return "active";
|
||||
return "";
|
||||
}.property("content.name", "controller.filterMode"),
|
||||
|
||||
|
|
Loading…
Reference in New Issue