瀏覽代碼

show root if ciuser not set

andre 4 年之前
父節點
當前提交
a545fb8d84
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      templates/client/default/controlers/main.tpl

+ 7 - 1
templates/client/default/controlers/main.tpl

@@ -241,7 +241,13 @@
                                             <table width="100%" border="0" cellpadding="10" cellspacing="0" class="table table-striped table-framed">
                                                 <tr>
                                                     <td align='left'>Admin Username</td>
-                                                    <td align="left">{$moduleParams.customfields['ciuser']}</td>
+                                                    <td align="left">
+                                                        {if $moduleParams.customfields['ciuser']}
+                                                            {$moduleParams.customfields['ciuser']}
+                                                        {else}
+                                                            root
+                                                        {/if}
+                                                    </td>
                                                 </tr>
                                                 <tr>
                                                     <td align='left'>SSH-Key</td>