@@ -3871,36 +3871,24 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
3871
3871
"</p>\n" +
3872
3872
"<p>\n" +
3873
3873
"After downloading and installing it, you can start by logging in using<span ng-if=\"sessionToken\"> this current session token</span>:\n" +
3874
- "<div ng-if=\"sessionToken\">\n" +
3875
- "<div class=\"code prettyprint ng-binding\">\n" +
3876
- "oc login {{loginBaseURL}} --token=<span ng-show=\"showSessionToken\">{{sessionToken}}</span><span ng-show=\"!showSessionToken\"><hidden></span>\n" +
3877
- "</div>\n" +
3878
- "<a href=\"#\" ng-click=\"toggleShowSessionToken()\">\n" +
3879
- "<span ng-show=\"!showSessionToken\">Show token</span>\n" +
3880
- "<span ng-show=\"showSessionToken\">Hide token</span>\n" +
3881
- "</a>\n" +
3882
- "<span ng-if=\"!IS_IOS\">\n" +
3883
- "<span class=\"action-divider\">|</span>\n" +
3884
- "<copy-to-clipboard display-as-link=\"true\" clipboard-text=\"'oc login ' + loginBaseURL + ' --token=' + sessionToken\" custom-link-text=\"'Copy command to clipboard'\"></copy-to-clipboard>\n" +
3885
- "</span>\n" +
3886
- "</div>\n" +
3874
+ "<copy-to-clipboard display-wide=\"true\" clipboard-text=\"'oc login ' + loginBaseURL + ' --token=' + sessionToken\" input-text=\"'oc login ' + loginBaseURL + ' --token=<hidden>'\"></copy-to-clipboard>\n" +
3887
3875
"<pre class=\"code prettyprint ng-binding\" ng-if=\"!sessionToken\">\n" +
3888
3876
" oc login {{loginBaseURL}}\n" +
3889
3877
" </pre>\n" +
3890
3878
"</p>\n" +
3891
- "<div class=\"alert alert-warning\" ng-if=\"sessionToken\" >\n" +
3879
+ "<div class=\"alert alert-warning\">\n" +
3892
3880
"<span class=\"pficon pficon-warning-triangle-o\" aria-hidden=\"true\"></span>\n" +
3893
3881
"<strong>A token is a form of a password.</strong>\n" +
3894
3882
"Do not share your API token.\n" +
3895
3883
"</div>\n" +
3896
3884
"<p>After you login to your account you will get a list of projects that you can switch between:\n" +
3897
- "<pre class =\"code prettyprint\"> oc project <i> project-name</i></pre >\n" +
3885
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc project <project-name>'\"></copy-to-clipboard >\n" +
3898
3886
"</p>\n" +
3899
3887
"<p>If you do not have any existing projects, you can create one:\n" +
3900
- "<pre class =\"code prettyprint\"> oc new-project <i> project-name</i></pre >\n" +
3888
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc new-project <project-name>'\"></copy-to-clipboard >\n" +
3901
3889
"</p>\n" +
3902
3890
"<p>To show a high level overview of the current project:\n" +
3903
- "<pre class =\"code prettyprint\"> oc status</pre >\n" +
3891
+ "<copy-to-clipboard display-wide =\"true\" clipboard-text=\"' oc status'\"></copy-to-clipboard >\n" +
3904
3892
"</p>\n" +
3905
3893
"<p>For other information about the command line tools, check the <a target=\"_blank\" href=\"{{'cli' | helpLink}}\">CLI Reference</a> and <a target=\"_blank\" href=\"{{'basic_cli_operations' | helpLink}}\">Basic CLI Operations</a>.</p>\n" +
3906
3894
"</div>\n" +
@@ -4849,15 +4837,13 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
4849
4837
4850
4838
4851
4839
$templateCache.put('views/directives/_copy-to-clipboard.html',
4852
- "<div ng-show=\"!displayAsLink\" class=\"input-group copy-to-clipboard\">\n" +
4853
- "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
4840
+ "<div class=\"input-group copy-to-clipboard\" style=\"{{displayWide ? 'max-width:100%;' : ''}} \">\n" +
4841
+ "<input id=\"{{id}}\" type=\"text\" class=\"form-control\" value=\"{{inputText ? inputText : clipboardText}}\" ng-disabled=\"isDisabled\" ng-readonly=\"!isDisabled\" select-on-focus>\n" +
4854
4842
"<span class=\"input-group-btn\" ng-hide=\"hidden\">\n" +
4855
- "<a data-clipboard-target=\"#{{id}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
4843
+ "<a ng-show=\"!inputText\" data-clipboard-target=\"#{{id}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
4844
+ "<a ng-show=\"inputText\" data-clipboard-text=\"{{clipboardText}}\" ng-disabled=\"isDisabled\" data-toggle=\"tooltip\" title=\"Copy to clipboard\" role=\"button\" class=\"btn btn-default\"><i class=\"fa fa-clipboard\"/></a>\n" +
4856
4845
"</span>\n" +
4857
- "</div>\n" +
4858
- "<span ng-show=\"displayAsLink\" ng-hide=\"hidden\">\n" +
4859
- "<a data-clipboard-text=\"{{clipboardText}}\" data-toggle=\"tooltip\" title=\"Copy to clipboard\">{{customLinkText || 'Copy to clipboard'}}</a>\n" +
4860
- "</span>"
4846
+ "</div>"
4861
4847
);
4862
4848
4863
4849
0 commit comments