blob: c68a685f6c5226397433376031c23f7afa862427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<script>
import { _ } from 'svelte-i18n';
import { params } from '@roxi/routify';
import { version } from '$/config/config';
</script>
<header title="{$_('header.title')}">
<ul>
<li><strong><a href="/" aria-label="{$_('header.long_version', { values: { version } })}">{$_('header.short_version', { values: { version } })}</a></strong></li>
<li><a href="/new" aria-label="{$_('header.action.new.title')}">{@html $_('header.action.new.display')}</a></li>
{#if $params.topic_id}
<li><a href="/reply/{$params.topic_id}" aria-label="{$_('header.action.reply.title')}">{@html $_('header.action.reply.display')}</a></li>
{/if}
<li><a href="/search" aria-label="{$_('header.action.search.title')}">{@html $_('header.action.search.display')}</a></li>
<li><a href="/logout" aria-label="{$_('header.action.log_out.title')}">{@html $_('header.action.log_out.display')}</a></li>
</ul>
</header>
<style>
header {
grid-column: col-start 1 / span 12;
border-bottom: 1px solid black;
}
ul {
padding: 0;
}
.action-key {
font-weight: bold;
text-decoration: underline;
}
li {
display: inline;
margin: 5px;
}
a {
text-decoration: none;
line-height: 3em;
display: inline-block;
}
strong a {
color: blue;
text-decoration: underline;
}
</style>
|