You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/09/26 21:10:58 UTC

[isis] branch v2 updated: ISIS-1901: swagger-ui: remove login form, since it does not work anyway

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/v2 by this push:
     new d87fde2  ISIS-1901: swagger-ui: remove login form, since it does not work anyway
d87fde2 is described below

commit d87fde21bde94902635cf2cd5a76239f3cae0798
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Sep 26 23:09:12 2018 +0200

    ISIS-1901: swagger-ui: remove login form, since it does not work anyway
    
    Task-Url: https://issues.apache.org/jira/browse/ISIS-1901
---
 .../src/main/resources/swagger-ui/index.template.html      | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/core/metamodel/src/main/resources/swagger-ui/index.template.html b/core/metamodel/src/main/resources/swagger-ui/index.template.html
index 94596bf..048dd7a 100644
--- a/core/metamodel/src/main/resources/swagger-ui/index.template.html
+++ b/core/metamodel/src/main/resources/swagger-ui/index.template.html
@@ -118,11 +118,21 @@
 <div id='header'>
     <div class="swagger-ui-wrap">
     <a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
+    
+    	
+    
         <form id='api_selector'>
+        
+        	<a href="${restful-base}/" target="blank" title="You might need to login.">Direct API Link (Login)</a>
+        	<span> &nbsp; &nbsp; &nbsp;</span>	
+        
             <div class='input'>
+            
+            <!-- does not work anyway 
                 <div class='input'><input placeholder="user" id="input_user" name="user" type="text" size="10"/></div>
                 <div class='input'><input placeholder="pass" id="input_pass" name="pass" type="password" size="10"/></div>
-
+			-->
+			
 				API Select:
 
                 <select id="input_baseUrl" name="baseUrl" style="height: 26px;">
@@ -134,8 +144,6 @@
             <div class='input' style="display:none;"><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
             <div class='input'><a id="explore" href="#" data-sw-translate>Reload</a></div>
             
-            <a href="${restful-base}/" target="blank" title="You might need to login.">Direct API Link</a>
-            
         </form>
 
     </div>