diff --git a/src/app/components/noosfero-blocks/link-list/link-list.html b/src/app/components/noosfero-blocks/link-list/link-list.html index 2bc871f..8ed43c8 100644 --- a/src/app/components/noosfero-blocks/link-list/link-list.html +++ b/src/app/components/noosfero-blocks/link-list/link-list.html @@ -1,3 +1,3 @@
diff --git a/src/app/components/noosfero/noosfero-template.filter.js b/src/app/components/noosfero/noosfero-template.filter.js new file mode 100644 index 0000000..0128d91 --- /dev/null +++ b/src/app/components/noosfero/noosfero-template.filter.js @@ -0,0 +1,13 @@ +(function() { + 'use strict'; + angular + .module("angular") + .filter("noosferoTemplateFilter", function() { + return function(text, options) { + for(var option in options) { + text = text.replace('{'+option+'}', options[option]); + } + return text; + } + }) +})(); diff --git a/src/app/views/profile/block.html b/src/app/views/profile/block.html index 19d380b..4fcc85b 100644 --- a/src/app/views/profile/block.html +++ b/src/app/views/profile/block.html @@ -3,7 +3,6 @@{{block}}