mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Added help icon.
This commit is contained in:
parent
e66e64d4fd
commit
3811275694
7 changed files with 23 additions and 6 deletions
|
@ -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')
|
||||
}
|
||||
}
|
0
res/app/components/stf/common-ui/help-icon/help-icon.css
Normal file
0
res/app/components/stf/common-ui/help-icon/help-icon.css
Normal 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
|
2
res/app/components/stf/common-ui/help-icon/index.js
Normal file
2
res/app/components/stf/common-ui/help-icon/index.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
module.exports = angular.module('stf.help-icon', [])
|
||||
.directive('helpIcon', require('./help-icon-directive'))
|
|
@ -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
|
||||
])
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue