-
${statusInfo.text}
- ${p.status?.health !== null && p.status?.health !== undefined ? `
-
-
- ${p.status.health ? '健康' : '异常'}
-
- ` : ''}
+
+
- ${actionsHtml}
+ ${p.ports && p.ports.length > 0 ? `
+
+ ${p.ports.map(port => {
+ const portStatus = p.status?.ports?.[port];
+ const isRunning = portStatus?.running;
+ return `
${port}`;
+ }).join('')}
+ ${p.admin_url ? `
后台` : ''}
+
+ ` : ''}
+ ${p.type === 'web' ? `
+
+ ${(p.status?.status === 'running' || p.status?.status === 'partial') ? `
+
+
+ ` : `
+
+ `}
+
+
+ ` : ''}
+ ${p.type === 'cron' ? `
+
+
+ ${p.status?.cron_configured ? '已配置' : '未配置'}
+ ${p.cron ? ` · ${p.cron}` : ''}
+
+ ` : ''}
`;
}