Present script names and versions as readable cards on small screens
This commit is contained in:
@@ -239,11 +239,11 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
)}
|
||||
</section>
|
||||
) : (
|
||||
<section aria-label="Skriptbibliothek">
|
||||
<section aria-label="Skriptbibliothek" className="fleet">
|
||||
{!library.data ? (
|
||||
<p role="status">Bibliothek wird geladen …</p>
|
||||
<p className="list-message" role="status">Bibliothek wird geladen …</p>
|
||||
) : library.data.length ? (
|
||||
<div className="table">
|
||||
<div className="table fleet-table script-table">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -256,9 +256,9 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
<tbody>
|
||||
{latestRevisions(library.data).map((item) => (
|
||||
<tr key={item.name}>
|
||||
<td>
|
||||
<td className="hostname">
|
||||
<button
|
||||
className="link"
|
||||
className="host-link"
|
||||
onClick={() => {
|
||||
open(item.name);
|
||||
setNotice('');
|
||||
@@ -267,16 +267,16 @@ export function ScriptLibrary({ tenantId, auth }: { tenantId: string; auth: Sess
|
||||
{item.name}
|
||||
</button>
|
||||
</td>
|
||||
<td>{interpreterNames[item.interpreter]}</td>
|
||||
<td>{item.version}</td>
|
||||
<td>{identityNames[item.execution_identity]}</td>
|
||||
<td data-label="Plattform">{interpreterNames[item.interpreter]}</td>
|
||||
<td data-label="Version">{item.version}</td>
|
||||
<td data-label="Ausführen als">{identityNames[item.execution_identity]}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
) : (
|
||||
<p>Für diesen Kunden sind noch keine Skripte veröffentlicht.</p>
|
||||
<p className="list-message">Für diesen Kunden sind noch keine Skripte veröffentlicht.</p>
|
||||
)}
|
||||
</section>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user