outposts: fix syntax

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-15 20:59:37 +02:00
parent c8dc299ae3
commit 0a6efab7cb
3 changed files with 16 additions and 11 deletions

View File

@ -168,7 +168,7 @@ class DockerController(BaseController):
def down(self): def down(self):
if self.outpost.managed != "": if self.outpost.managed != "":
return None return
try: try:
container, _ = self._get_container() container, _ = self._get_container()
if container.status == "running": if container.status == "running":

View File

@ -73,7 +73,8 @@ export class LibraryApplication extends LitElement {
return html` <div class="pf-c-card pf-m-hoverable pf-m-compact ak-lib-card"> return html` <div class="pf-c-card pf-m-hoverable pf-m-compact ak-lib-card">
<div class="pf-c-card__header"> <div class="pf-c-card__header">
${this.application.metaIcon ${this.application.metaIcon
? html`<a href="${ifDefined(this.application.launchUrl ?? "")}"><img ? html`<a href="${ifDefined(this.application.launchUrl ?? "")}"
><img
class="app-icon pf-c-avatar" class="app-icon pf-c-avatar"
src="${ifDefined(this.application.metaIcon)}" src="${ifDefined(this.application.metaIcon)}"
alt="Application Icon" alt="Application Icon"
@ -83,7 +84,10 @@ export class LibraryApplication extends LitElement {
me().then((u) => { me().then((u) => {
if (!u.user.isSuperuser) return html``; if (!u.user.isSuperuser) return html``;
return html` return html`
<a class="pf-c-button pf-m-control pf-m-small" href="#/core/applications/${this.application?.slug}"> <a
class="pf-c-button pf-m-control pf-m-small"
href="#/core/applications/${this.application?.slug}"
>
<i class="fas fa-pencil-alt"></i> <i class="fas fa-pencil-alt"></i>
</a> </a>
`; `;
@ -91,7 +95,11 @@ export class LibraryApplication extends LitElement {
)} )}
</div> </div>
<div class="pf-c-card__title"> <div class="pf-c-card__title">
<p id="card-1-check-label"><a href="${ifDefined(this.application.launchUrl ?? "")}">${this.application.name}</a></p> <p id="card-1-check-label">
<a href="${ifDefined(this.application.launchUrl ?? "")}"
>${this.application.name}</a
>
</p>
<div class="pf-c-content"> <div class="pf-c-content">
<small>${this.application.metaPublisher}</small> <small>${this.application.metaPublisher}</small>
</div> </div>

View File

@ -27,8 +27,5 @@
"strict": true "strict": true
} }
] ]
}, }
"exclude": [
"api/src/",
]
} }