Commit af7485cb8a9c42a7c18f4d8331fd2463cfbc33b0
1 parent
2709e359
Exists in
master
and in
38 other branches
Add filter to replace noosfero template attributes
Showing
3 changed files
with
14 additions
and
2 deletions
Show diff stats
src/app/components/noosfero-blocks/link-list/link-list.html
... | ... | @@ -0,0 +1,13 @@ |
1 | +(function() { | |
2 | + 'use strict'; | |
3 | + angular | |
4 | + .module("angular") | |
5 | + .filter("noosferoTemplateFilter", function() { | |
6 | + return function(text, options) { | |
7 | + for(var option in options) { | |
8 | + text = text.replace('{'+option+'}', options[option]); | |
9 | + } | |
10 | + return text; | |
11 | + } | |
12 | + }) | |
13 | +})(); | ... | ... |
src/app/views/profile/block.html