(type, text, link, icon)
| 53 | restrict: 'A', |
| 54 | link: function(scope, element, attrs) { |
| 55 | function makeLink(type, text, link, icon) { |
| 56 | return '<a href="' + link + '" class="btn syntax-' + type + '" target="_blank" rel="nofollow">' + |
| 57 | '<span class="' + icon + '"></span> ' + text + |
| 58 | '</a>'; |
| 59 | }; |
| 60 | |
| 61 | var html = ''; |
| 62 | var types = { |