1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

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'))

View file

@ -18,5 +18,6 @@ module.exports = angular.module('stf/common-ui', [
require('./icon-inside-input').name,
require('./focus-element').name,
require('./blur-element').name,
require('./stacked-icon').name
require('./stacked-icon').name,
require('./help-icon').name
])

View file

@ -2,8 +2,8 @@
.heading
stacked-icon(icon='fa-bug', color='color-darkgreen')
span(translate) Remote debug
a(ng-href='/#!/docs/remote-debug').pull-right
i.fa.fa-question-circle(tooltip='{{remoteDebugTooltip | translate}}', tooltip-placement='left')
help-icon(topic='remote-debug', tooltip='{{remoteDebugTooltip | translate}}')
.widget-content.padded
.form-inline
textarea(readonly, rows='1', ng-model='debugCommand', msd-elastic, text-focus-select).form-control.remote-debug-textarea

View file

@ -3,12 +3,11 @@
stacked-icon(icon='fa-terminal', color='color-darkgray')
span(translate) Shell
clear-button(ng-click='clear()', ng-disabled='!command && !data').btn-xs
help-icon(topic='remote-shell', tooltip='{{"Executes remote shell commands" | translate}}')
a(ng-href='/#!/docs/remote-shell').btn.btn-xs.btn-primary-outline.pull-right.transparent-border
i.fa.fa-book
.widget-content.padded
// TODO: find why autofill doesn't work here
// TODO: autofill doesn't work here
form(method='post', enable-autofill, ng-submit='run(command)')
.input-group.form-inline
input(type=text, ng-model='command', Xtext-focus-select,