2018-11-24 12:34:51 +00:00
|
|
|
{{ define "content" }}
|
2020-07-05 18:34:36 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
|
|
|
|
<h1 class="title is-1">{{ .Title }}</h1>
|
|
|
|
<div class="content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2020-05-07 13:20:36 +00:00
|
|
|
|
2020-07-05 18:34:36 +00:00
|
|
|
<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>
|
2020-05-07 13:20:36 +00:00
|
|
|
</div>
|
2022-01-16 23:15:00 +00:00
|
|
|
|
|
|
|
<div class="modal review-modal">
|
|
|
|
<div class="modal-background"></div>
|
|
|
|
<div class="modal-card">
|
|
|
|
<header class="modal-card-head">
|
|
|
|
<p class="modal-card-title">Review</p>
|
|
|
|
<button class="delete" aria-label="close"></button>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="modal-card-body" style="min-height: 400px">
|
|
|
|
<h3 class="block-title is-title"></h3>
|
|
|
|
<textarea class="textarea block-text" style="height:380px"></textarea>
|
|
|
|
|
|
|
|
<div class="end-of-review hide">All tasks are reviewed.</p>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="modal-card-foot" style="justify-content: center">
|
|
|
|
<button class="button normal is-danger review" data-review="again">Again</button>
|
|
|
|
<button class="button hard is-warning review" data-review="soon">Soon</button>
|
|
|
|
<button class="button easy is-success review" data-review="later">Later</button>
|
|
|
|
<button class="button easy is-default review" data-review="never">Never</button>
|
|
|
|
<button class="button end-of-review hide close">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-24 12:34:51 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "navbar" }}
|
|
|
|
{{ if $.Session.LoggedIn }}
|
|
|
|
<a href="/edit/{{ .Name }}" class="navbar-item">Edit</a>
|
|
|
|
<a href="/history/{{ .Name }}" class="navbar-item">History</a>
|
2019-02-18 19:47:31 +00:00
|
|
|
<a href="/recent/" class="navbar-item">Recent Changes</a>
|
2020-06-17 15:41:32 +00:00
|
|
|
<a href="/graph/" class="navbar-item">Graph</a>
|
2020-07-19 13:18:03 +00:00
|
|
|
<a href="/{{ .TodayPage }}" class="navbar-item">Today</a>
|
2022-01-16 23:15:00 +00:00
|
|
|
<a href="" class="navbar-item start-review">Review</a>
|
2018-11-24 12:34:51 +00:00
|
|
|
<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" }}
|
2020-07-05 18:34:36 +00:00
|
|
|
<style>
|
|
|
|
.edit {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
</style>
|
2018-11-24 12:34:51 +00:00
|
|
|
{{ end }}
|