71 lines
1.6 KiB
HTML
71 lines
1.6 KiB
HTML
<html>
|
|
<head>
|
|
<title>{{.Title}} - SigilKDB</title>
|
|
<style>
|
|
body {
|
|
width:75%;
|
|
margin:100px auto;
|
|
font-family: Chilanka;
|
|
|
|
}
|
|
textarea
|
|
{
|
|
width:100%;
|
|
}
|
|
|
|
.conceptgraph {
|
|
float:right;
|
|
}
|
|
|
|
.sourceframe {
|
|
position:absolute;
|
|
bottom:0px;
|
|
right:0px;
|
|
}
|
|
|
|
|
|
|
|
.source {
|
|
width:40%;
|
|
display:none;
|
|
}
|
|
|
|
</style>
|
|
<script>
|
|
function showsource(x) {
|
|
if (document.getElementById(x).style.display != "block") {
|
|
document.getElementById(x).style.display = "block"
|
|
} else {
|
|
document.getElementById(x).style.display = "none"
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>{{.Title}}</h1>
|
|
<div class=".conceptgraph">{{.Concept}}</div>
|
|
<div style="white-space:pre-line" >{{.Body}}
|
|
|
|
{{ $length := len .References }}
|
|
{{ if gt $length 0 }}
|
|
<h3> References </h3>
|
|
{{ range $key, $value := .References }}
|
|
<li><strong><a href="{{index $value.Fields "url"}}">{{ $key }}</a></strong>: {{index $value.Fields "author"}} {{index $value.Fields "title"}} {{index $value.Fields "year"}}</li>
|
|
{{ end }}
|
|
{{end}}
|
|
|
|
<br/><br/><br/><br/>
|
|
<hr/>
|
|
<h1>Editing {{.Title}}</h1>
|
|
|
|
<form style="width:100%;" action="/save/{{.Title}}" method="POST">
|
|
<div ><textarea name="body" rows="20" cols="80">{{printf "%s" .BodyOrig}}</textarea></div>
|
|
<div><input type="submit" value="Save"></div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html> |