Added help icon.

This commit is contained in:
Gunther Brunner
2015-06-18 16:26:03 +09:00
parent e66e64d4fd
commit 3811275694
7 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
require('./help-icon.css')
module.exports = function clearButtonDirective() {
return {
restrict: 'EA',
replace: true,
scope: {
topic: '@',
tooltip: '@'
},
template: require('./help-icon.jade')
}
}

View File

@@ -0,0 +1,2 @@
a(ng-href='/#!/docs/{{topic}}', tooltip='{{tooltip}}', tooltip-placement='left').btn.btn-xs.btn-primary-outline.pull-right.transparent-border
i.fa.fa-question-circle

View File

@@ -0,0 +1,2 @@
module.exports = angular.module('stf.help-icon', [])
.directive('helpIcon', require('./help-icon-directive'))