|
47 | 47 | </div> |
48 | 48 |
|
49 | 49 |
|
50 | | -{if !empty($endpoints)} |
51 | | -<div class="panel panel-primary"> |
52 | | - <div class="panel-heading"><h4>Server Endpoints</h4></div> |
53 | | - <div class="panel-body" > |
54 | | - |
55 | | - {foreach $endpoints as $e} |
56 | | - <h6>{$e['DisplayName']}</h6> |
57 | | - {assign var='cleanAppUrl' value=$appUrl|replace:'https://':''|replace:'http://':''} |
58 | | - {if $e['Endpoint']} |
59 | | - {assign var='parts' value=":"|explode:$e['Endpoint']} |
60 | | - <a target="_blank" href="{$cleanAppUrl}:{$parts[1]}" style="vertical-align: middle;" target="_blank">{$cleanAppUrl}:{$parts[1]}</a> |
61 | | - {else} |
62 | | - {$e['Endpoint']} |
| 50 | +{if $mode == 'Standalone URL'} |
| 51 | + {if !empty($endpoints)} |
| 52 | + <div class="panel panel-primary"> |
| 53 | + <div class="panel-heading"> |
| 54 | + <h4>Server Endpoints</h4> |
| 55 | + </div> |
| 56 | + <div class="panel-body"> |
| 57 | + {foreach $endpoints as $e} |
| 58 | + <h6>{$e['DisplayName']}</h6> |
| 59 | + {assign var='cleanAppUrl' value=$appUrl|replace:'https://':''|replace:'http://':''} |
| 60 | + {if $e['Endpoint']} |
| 61 | + {assign var='parts' value=":"|explode:$e['Endpoint']} |
| 62 | + <a target="_blank" href="{$cleanAppUrl}:{$parts[1]}" style="vertical-align: middle;" target="_blank">{$cleanAppUrl}:{$parts[1]}</a> |
| 63 | + {else} |
| 64 | + {$e['Endpoint']} |
| 65 | + {/if} |
| 66 | + <button style="margin-left: 16px;" onclick="copyToClipboard('{$cleanAppUrl}:{$parts[1]}')" class="btn btn-default">Copy to clipboard</button> |
| 67 | + <hr> |
| 68 | + {/foreach} |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + {/if} |
| 72 | +{elseif $mode == 'Target/Node IP Address'} |
| 73 | + {if !empty($endpoints)} |
| 74 | + <div class="panel panel-primary"> |
| 75 | + <div class="panel-heading"> |
| 76 | + <h4>Server Endpoints</h4> |
| 77 | + </div> |
| 78 | + <div class="panel-body"> |
| 79 | + {foreach $endpoints as $e} |
| 80 | + <h6>{$e['DisplayName']}</h6> |
| 81 | + {if !empty($e['Uri'])} |
| 82 | + <a target="_blank" href="{$e['Uri']}" style="vertical-align: middle;" target="_blank">{$e['Endpoint']}</a> |
| 83 | + {else} |
| 84 | + {$e['Endpoint']} |
| 85 | + {/if} |
| 86 | + <button style="margin-left: 16px;" onclick="copyToClipboard('{$e['Endpoint']}')" class="btn btn-default">Copy to clipboard</button> |
| 87 | + <hr> |
| 88 | + {/foreach} |
| 89 | + </div> |
| 90 | + </div> |
63 | 91 | {/if} |
64 | | - |
65 | | - <button style="margin-left: 16px;" onclick="copyToClipboard('{$cleanAppUrl}:{$parts[1]}')" class="btn btn-default">Copy to clipboard</button> |
66 | | - |
67 | | - <hr> |
68 | | - {/foreach} |
69 | | - |
70 | | - </div> |
71 | | -</div> |
72 | 92 | {/if} |
73 | 93 |
|
74 | 94 |
|
75 | | - |
76 | | - |
77 | | - |
78 | 95 | <div class="panel panel-default"> |
79 | 96 | <div class="panel-heading"><h4>Application Management</h4></div> |
80 | 97 | <div class="panel-body"> |
|
0 commit comments