manus-tracker

tracker for scientific manuscripts
git clone git://src.adamsgaard.dk/manus-tracker # fast
git clone https://src.adamsgaard.dk/manus-tracker.git # slow
Log | Files | Refs | README Back to index

layout.html (1340B)


      1 {{define "layout"}}<!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8">
      5 <meta name="viewport" content="width=device-width, initial-scale=1">
      6 <title>{{.Title}} - manus</title>
      7 <link rel="stylesheet" href="/static/style.css">
      8 <script src="/static/app.js" defer></script>
      9 </head>
     10 <body>
     11 <header class="site-header">
     12   <a class="site-header__brand" href="/">manus</a>
     13   <nav class="site-header__nav">
     14     <a class="site-header__link" href="/">Board</a>
     15     <a class="site-header__link" href="/tasks">Tasks</a>
     16     <a class="site-header__link" href="/refs">References</a>
     17   </nav>
     18 </header>
     19 <main class="page">
     20 {{with .Msg}}<p class="flash{{if hasPrefix . "error"}} flash--error{{end}}">{{.}}</p>{{end}}
     21 {{template "content" .}}
     22 </main>
     23 </body>
     24 </html>{{end}}
     25 
     26 {{define "status"}}<form class="inline" method="post" action="/m/{{.V.Ref.MS}}/tasks/{{.V.Ref.N}}/status">
     27   <input type="hidden" name="back" value="{{.Back}}">
     28   <select class="status-select status-select--{{.V.Eff}}" name="status" data-autosubmit aria-label="status">
     29     {{$cur := .V.T.Status}}{{range .Statuses}}<option{{if eq . $cur}} selected{{end}}>{{.}}</option>{{end}}
     30   </select>{{if ne .V.Eff .V.T.Status}} <span class="badge badge--warn" title="an unfinished task blocks this one">blocked</span>{{end}}
     31   <noscript><button>set</button></noscript>
     32 </form>{{end}}