v0.1.11 32a3aa7

containerlist.gohtml RawHistoryFolder

1<div class="flex flex-col p-4" hx-ext="response-targets">
2  <h1 class="text-lg md:text-xl font-bold text-gordonmascot-hblue">
3    {{index .Lang "manager" "content" "h1-containers"}}
4  </h1>
5  <table class="p-4 border-t-2 table-auto">
6    <thead>
7      <tr class="text-center text-gray-400">
8        <th>{{index .Lang "manager" "content" "thName"}}</th>
9        <th>{{index .Lang "manager" "content" "thPorts"}}</th>
10        <th>{{index .Lang "manager" "content" "thEntryPoint"}}</th>
11        <th>{{index .Lang "manager" "content" "thStatus"}}</th>
12        <th>{{index .Lang "manager" "content" "thState"}}</th>
13        <th>{{index .Lang "manager" "content" "thActions"}}</th>
14      </tr>
15    </thead>
16    <tbody>
17      {{ $Lang := .Lang }} 
18      {{
19        range.containers
20      }}
21      <tr id="container-{{.ID}}" class="text-center hover:bg-slate-100">
22        <td>
23          <span
24            title="{{.Container.ID}}"
25            class="font-bold"
26            >{{.Name}}</span
27          >
28        </td>
29        <td class="port-container">{{ .Ports }}</td>
30        <td class="entrypoint-container">{{.TraefikEntryPoint}}</td>
31        <td class="status-container">{{.Status}} (Up since {{.UpSince}})</td>
32        <td style="color: {{.StateColor}};">{{.State}}</td>
33        <td>
34          <button
35            id="start-button-{{.ID}}"
36            hx-post="/htmx/container-manager/start/{{.ID}}"
37            hx-target="#actionResponse-{{.ID}}"
38            hx-target-*="#error-message-{{.ID}}"
39            hx-swap="outerHTML"
40            class="py-2 px-4"
41          >
42            <span title="Start the container" class="iconf text-xl text-blue-600 hover:text-gordonmascot-hblue"></span>
43          </button>
44          <!-- EDIT -->
45          <button
46            id="edit-button-{{.ID}}"
47            hx-get="/htmx/container-manager/edit/{{.ID}}"
48            hx-target="#actionResponse-{{.ID}}"
49            hx-target-*="#error-message-{{.ID}}"
50            hx-swap="innerHTML"
51            class="py-2 px-4"
52            data-active="false"
53            _="on click toggle between .visible and .hidden on #actionResponse-{{.ID}}"
54          >
55            <span title="Edit the container" class="iconf text-2xl text-blue-600 hover:text-gordonmascot-hblue">󱩽</span>
56          </button>
57                 <!-- stop -->
58          <button
59            id="stop-button-{{.ID}}"
60            hx-post="/htmx/container-manager/stop/{{.ID}}"
61            hx-target="#actionResponse-{{.ID}}"
62            hx-target-*="#error-message-{{.ID}}"
63            hx-swap="innerHTML"
64            hx-confirm="{{index $Lang "manager" "content" "confirm-container-stop"}}"
65            class="py-2 px-4"
66          >
67            <span title="Stop the container" class="iconf text-xl text-red-600 hover:text-red-900"></span>
68          </button>
69          <!-- REMOVE -->
70          <button
71            id="remove-button-img-{{.ID}}"
72            hx-delete="/htmx/container-manager/delete/{{.ID}}"
73            hx-target="#actionResponse-{{.ID}}"
74            hx-target-*="#error-message-{{.ID}}"
75            hx-swap="innerHTML"
76            hx-confirm="{{index $Lang "manager" "content" "confirm-delete"}}"
77            class="py-2 px-4"
78          >
79            <!-- iconoir trash -->
80            <span title="Remove the container" class="iconf text-xl text-red-600 hover:text-red-900"></span>
81          </button>
82        </td>
83        </tr>
84      <tr>
85        <td colspan="7">
86          <div id="actionResponse-{{.ID}}"></div>
87          <div id="error-message-{{.ID}}" class="text-red-500"></div>
88        </td>
89      </tr>
90      {{ else }}
91      <tr>
92        <td colspan="7" class="mt-2">
93          <p class="text-center text-gray-400 text-xl">
94            {{index $Lang "manager" "content" "no-containers"}}
95          </p>
96        </td>
97      </tr>
98      {{
99        end
100      }}
101    </tbody>
102  </table>
103</div>

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close