FIX: Link domains were not showing up in the topic map

This commit is contained in:
Robin Ward 2015-01-02 10:46:04 -05:00
parent 853e2ee535
commit 701d896912
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
Handlebars.registerHelper('link-domain', function(property, options) {
var link = Em.get(this, property, options);
import registerUnbound from 'discourse/helpers/register-unbound';
registerUnbound('link-domain', function(link) {
if (link) {
var internal = Em.get(link, 'internal'),
hasTitle = (!Em.isEmpty(Em.get(link, 'title')));

View file

@ -82,7 +82,7 @@
{{#if showAllLinksControls}}
<div class='link-summary'>
<a href='#' {{action "showAllLinks"}}>{{i18n 'topic_map.links_shown' totalLinks=details.links.length}}</a>
<a href {{action "showAllLinks"}}>{{i18n 'topic_map.links_shown' totalLinks=details.links.length}}</a>
</div>
{{/if}}