Peter Stuifzand
965d2c87f5
All checks were successful
continuous-integration/drone/push Build is passing
Solution: improve visibility of tags with a bit of color
49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
{{ define "content" }}
|
|
<div class="columns">
|
|
<div class="column">
|
|
|
|
<h1 class="title is-1">{{ .Title }}</h1>
|
|
<div class="content">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
<div class="backrefs content">
|
|
<h3>Linked references</h3>
|
|
<ul>
|
|
{{ range $name, $refs := .Backrefs }}
|
|
<li><a href="/{{ $name }}">{{ (index $refs 0).Title }}</a>
|
|
<ul>
|
|
{{ range $ref := $refs }}
|
|
<li>{{ $ref.LineHTML }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ define "navbar" }}
|
|
{{ if $.Session.LoggedIn }}
|
|
<a href="/edit/{{ .Name }}" class="navbar-item">Edit</a>
|
|
<a href="/history/{{ .Name }}" class="navbar-item">History</a>
|
|
<a href="/recent/" class="navbar-item">Recent Changes</a>
|
|
<a href="/graph/" class="navbar-item">Graph</a>
|
|
<a href="/{{ .TodayPage }}" class="navbar-item">Today</a>
|
|
<a href="/auth/logout" class="navbar-item">Logout</a>
|
|
<span class="navbar-item"><b>{{ $.Session.Me }}</b></span>
|
|
{{ else }}
|
|
<a href="/auth/login" class="navbar-item">Login</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "content_head" }}
|
|
<style>
|
|
.edit {
|
|
color: red;
|
|
}
|
|
</style>
|
|
{{ end }}
|