mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Help icon is now the same everywhere. In some places it was an 'i' and in others a '?'. Same with the color. We had two different flavors of blue. Also streamlined the code. Now all help html is genereated from one place.
This commit is contained in:
@@ -12,7 +12,7 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
.factory('Attr', function() {
|
||||
return function(obj, key) {
|
||||
var result;
|
||||
var value = (typeof obj[key] === "string") ? obj[key].replace(/\'/g, '"') : obj[key];
|
||||
var value = (typeof obj[key] === "string") ? obj[key].replace(/[\'\"]/g, '"') : obj[key];
|
||||
switch(key) {
|
||||
case 'ngClick':
|
||||
result = "ng-click=\"" + value + "\" ";
|
||||
@@ -48,7 +48,13 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
result = "aw-tool-tip=\"" + value + "\" ";
|
||||
break;
|
||||
case 'awPopOver':
|
||||
result = "aw-pop-over='" + value + "' ";
|
||||
// construct the entire help link
|
||||
result = "<a href=\"\" aw-pop-over=\"" + value + "\" ";
|
||||
result += (obj.dataTitle) ? "data-title=\"" + obj['dataTitle'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
result += (obj.dataPlacement) ? "data-placement=\"" + obj['dataPlacement'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
result += (obj.dataContainer) ? "data-container=\"" + obj['dataContainer'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
result += "class=\"help-link\" ";
|
||||
result += "><i class=\"icon-question-sign\"></i></a> ";
|
||||
break;
|
||||
case 'dataTitle':
|
||||
result = "data-title=\"" + value + "\" ";
|
||||
|
||||
Reference in New Issue
Block a user