瀏覽代碼

Only show log in Local network (#14241)

JPVenson 1 周之前
父節點
當前提交
1f5cfb1e23
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Jellyfin.Server/ServerSetupApp/index.mstemplate.html

+ 5 - 0
Jellyfin.Server/ServerSetupApp/index.mstemplate.html

@@ -204,6 +204,7 @@
         </li>
         </li>
         {{--| /DECLARE}}
         {{--| /DECLARE}}
 
 
+        {{#IF localNetworkRequest}}
         <div class="flex-col">
         <div class="flex-col">
             <ol class="action-list">
             <ol class="action-list">
                 {{#FOREACH log IN logs.Reverse()}}
                 {{#FOREACH log IN logs.Reverse()}}
@@ -211,6 +212,10 @@
                 {{/FOREACH}}
                 {{/FOREACH}}
             </ol>
             </ol>
         </div>
         </div>
+        {{#ELSE}}
+        <p>Please visit this page from your local network to view detailed startup logs.</p>
+        {{/ELSE}}
+        {{/IF}}
     </div>
     </div>
 </body>
 </body>