@@ -291,34 +291,39 @@ const CP = (() => {
291291 ? ( eligible ? 'Cash out earnings' : 'View payout details' )
292292 : 'No payout info available' ;
293293 const claimDisabled = ! co . dashboard_url ;
294- const claimBtn = `<button class="btn btn-sm ${ eligible ? 'btn-success' : 'btn-ghost' } btn-icon " onclick="${ claimDisabled ? '' : `CP.openClaimModal('${ svc . slug } ')` } " title="${ claimTitle } "${ claimDisabled ? ' disabled' : '' } >
295- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6"/></svg>
294+ const claimBtn = `<button class="btn btn-icon ${ eligible ? 'btn-success' : '' } " onclick="${ claimDisabled ? '' : `CP.openClaimModal('${ svc . slug } ')` } " title="${ claimTitle } "${ claimDisabled ? ' disabled' : '' } >
295+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6"/></svg>
296296 </button>` ;
297297
298298 const containerBtns = isExternal ? '' : `
299- <button class="btn btn-ghost btn-sm btn- icon" onclick="CP.restartService('${ svc . slug } ')" title="Restart container">
300- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 11-2.12-9.36L23 10"/></svg>
299+ <button class="btn btn-icon" onclick="CP.restartService('${ svc . slug } ')" title="Restart container">
300+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 11-2.12-9.36L23 10"/></svg>
301301 </button>
302- <button class="btn btn-ghost btn-sm btn- icon" onclick="CP.stopService('${ svc . slug } ')" title="Stop container">
303- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="6" y="6" width="12" height="12" rx="1"/></svg>
302+ <button class="btn btn-icon" onclick="CP.stopService('${ svc . slug } ')" title="Stop container">
303+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="6" y="6" width="12" height="12" rx="1"/></svg>
304304 </button>
305- <button class="btn btn-ghost btn-sm btn- icon" onclick="CP.viewLogs('${ svc . slug } ')" title="View container logs">
306- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
305+ <button class="btn btn-icon" onclick="CP.viewLogs('${ svc . slug } ')" title="View container logs">
306+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
307307 </button>` ;
308308
309+ // Instance count — show in status column
310+ const instanceLabel = instances > 1 ? ` <span class="badge badge-instances">${ instances } x</span>` : '' ;
311+
309312 return `
310313 <tr class="breakdown-row" data-slug="${ escapeHtml ( svc . slug ) } ">
311- <td>${ nameHtml } ${ instanceBadge } <div style="font-size:0.7rem; color:var(--text-muted);">${ subtitle } </div></td>
312- <td style="text-align:center;"><span class="badge badge-${ statusClass } "><span class="status-dot ${ statusClass } "></span> ${ statusLabel } </span></td>
314+ <td>${ nameHtml } <div style="font-size:0.7rem; color:var(--text-muted);">${ subtitle } </div></td>
315+ <td style="text-align:center;"><span class="badge badge-${ statusClass } "><span class="status-dot ${ statusClass } "></span> ${ statusLabel } </span>${ instanceLabel } </td>
313316 <td style="text-align:center;">${ healthBadge } </td>
314317 <td style="text-align:right; font-weight:600;">${ formatCurrency ( balance ) } </td>
315318 <td style="text-align:right;"><span class="stat-change ${ deltaClass } ">${ deltaStr } </span></td>
316319 <td style="text-align:right;">${ cpuStr } </td>
317320 <td style="text-align:right;">${ memStr } </td>
318321 <td style="text-align:center;">${ progressBar } </td>
319322 <td style="text-align:center; white-space:nowrap;">
320- ${ claimBtn }
321- ${ containerBtns }
323+ <div class="action-btns">
324+ ${ claimBtn }
325+ ${ containerBtns }
326+ </div>
322327 </td>
323328 </tr>` ;
324329 }
0 commit comments