Skip to content

Commit

Permalink
Don't show application related message for no-auth API
Browse files Browse the repository at this point in the history
  • Loading branch information
santokhsingh committed Mar 14, 2019
1 parent 7ebbf7f commit 912e198
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions views/api.jade
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ block content
#apidescription.collapse.panel-collapse.in
.panel-body
!= apiDesc

a(href="#{glob.network.schema}://#{glob.network.apiHost}/swagger-ui/?url=#{encodeURIComponent(genericSwaggerUrl)}" role="button" target="_blank").btn.btn-default View Swagger definition »
if apiInfo.auth == "none"
a(href="#{glob.network.schema}://#{glob.network.apiHost}/swagger-ui/?apikey=none&url=#{encodeURIComponent(genericSwaggerUrl)}" role="button" target="_blank").btn.btn-default View Swagger definition »
else
a(href="#{glob.network.schema}://#{glob.network.apiHost}/swagger-ui/?url=#{encodeURIComponent(genericSwaggerUrl)}" role="button" target="_blank").btn.btn-default View Swagger definition »

if !authUser
if !authUser && apiInfo.auth != "none"
.panel.panel-danger
.panel-heading
h4.panel-title Not logged in
Expand All @@ -141,7 +143,7 @@ block content
p
a(href="/login?redirect=/apis/#{apiInfo.id}").btn.btn-default Log in »

else if apiInfo.auth != "none"
else if apiInfo.auth != "none"
.panel.panel-default
.panel-heading
+panelTitle('Applications', '/help/api')
Expand Down

0 comments on commit 912e198

Please sign in to comment.