Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
fix API help box when deploy keys are assgined
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 26, 2015
1 parent 16f5e9a commit f688539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -25,7 +25,8 @@ pageContext.setAttribute ( "manager", request.isUserInRole ( "MANAGER" ) );
<h:nav menu="${menuManager.getViews(channel) }"/>

<div class="container-fluid form-padding">
<c:if test="${empty groups }">
${hasExampleKey }
<c:if test="${not hasExampleKey }">
<div class="alert alert-warning">
All further information in this page requires the channel to have at least one deploy
key assigned. However there are currently no deploy groups/keys assigned to this channel, so
Expand Down
Expand Up @@ -661,6 +661,8 @@ public ModelAndView helpApi ( @PathVariable ( "channelId" ) final String channel
exampleKey = DEFAULT_EXAMPLE_KEY;
}

model.put ( "hasExampleKey", !DEFAULT_EXAMPLE_KEY.equals ( exampleKey ) );

model.put ( "exampleKey", exampleKey );
model.put ( "exampleSitePrefix", makeCredentialsPrefix ( this.sitePrefix.getSitePrefix (), "deploy", exampleKey ) );

Expand Down

0 comments on commit f688539

Please sign in to comment.