Add Docs to Navbartools, move logout btn

This commit is contained in:
Christoph Kluge 2024-02-13 09:59:38 +01:00
parent 53af79cf0d
commit cc719d0ae5

View File

@ -30,7 +30,7 @@
style="margin-left: 10px;" style="margin-left: 10px;"
/> />
<!-- bootstrap classes w/o effect --> <!-- bootstrap classes w/o effect -->
<Button outline type="submit"><Icon name="search" /></Button <Button outline type="submit" title="Search"><Icon name="search" /></Button
> >
<InputGroupText <InputGroupText
style="cursor:help;" style="cursor:help;"
@ -42,6 +42,23 @@
</InputGroup> </InputGroup>
</form> </form>
</NavItem> </NavItem>
<NavItem>
<a href="https://www.clustercockpit.org/docs/webinterface/" title="Documentation" rel="nofollow" target="_blank">
<Button outline style="margin-left: 10px;">
<Icon name="book" />
</Button>
</a>
</NavItem>
<NavItem>
<Button
outline
on:click={() => (window.location.href = "/config")}
style="margin-left: 10px;"
title="Settings"
>
<Icon name="gear" />
</Button>
</NavItem>
{#if username} {#if username}
<NavItem> <NavItem>
<form method="POST" action="/logout"> <form method="POST" action="/logout">
@ -60,33 +77,18 @@
</form> </form>
</NavItem> </NavItem>
{/if} {/if}
<NavItem>
<Button
outline
on:click={() => (window.location.href = "/config")}
style="margin-left: 10px;"
>
<Icon name="gear" />
</Button>
</NavItem>
{:else} {:else}
<NavItem> <NavItem>
<Container> <Container>
<Row cols={2}> <Row cols={3}>
<Col xs="6"> <Col xs="4">
<form method="POST" action="/logout"> <a href="https://www.clustercockpit.org/docs/webinterface/" title="Documentation" rel="nofollow" target="_blank">
<Button <Button outline size="sm" class="my-2 w-100">
outline <Icon name="box-arrow-up-right" /> Documentation
color="success"
type="submit"
size="sm"
class="my-2 w-100"
>
<Icon name="box-arrow-right" /> Logout {username}
</Button> </Button>
</form> </a>
</Col> </Col>
<Col xs="6"> <Col xs="4">
<Button <Button
outline outline
on:click={() => (window.location.href = "/config")} on:click={() => (window.location.href = "/config")}
@ -100,6 +102,19 @@
{/if} {/if}
</Button> </Button>
</Col> </Col>
<Col xs="4">
<form method="POST" action="/logout">
<Button
outline
color="success"
type="submit"
size="sm"
class="my-2 w-100"
>
<Icon name="box-arrow-right" /> Logout {username}
</Button>
</form>
</Col>
</Row> </Row>
</Container> </Container>
</NavItem> </NavItem>