2012-08-21 18:15:21 +02:00
|
|
|
{{template "header.html" .S}}
|
|
|
|
|
2019-01-16 23:34:13 +00:00
|
|
|
|
2012-08-21 18:15:21 +02:00
|
|
|
|
2012-08-28 10:38:00 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="span4">
|
|
|
|
{{range .Chapters}}
|
2012-08-28 12:24:11 +02:00
|
|
|
{{range .In}}
|
2012-09-09 12:42:22 +02:00
|
|
|
<ul id="bookMenu" class="nav nav-list hidden-phone">
|
2012-08-28 11:50:08 +02:00
|
|
|
{{end}}
|
2012-08-28 10:38:00 +02:00
|
|
|
<li {{if .Active}}class="active"{{end}}><a href="{{.Link}}">{{.Label}}</a></li>
|
2013-04-01 14:05:04 +02:00
|
|
|
{{range .Out}}
|
|
|
|
</ul>
|
|
|
|
{{end}}
|
2012-08-28 11:50:08 +02:00
|
|
|
{{end}}
|
|
|
|
{{if .Chapters}}
|
2012-08-28 10:38:00 +02:00
|
|
|
</ul>
|
2012-08-28 11:50:08 +02:00
|
|
|
{{end}}
|
2012-08-28 10:38:00 +02:00
|
|
|
</div>
|
|
|
|
|
2012-09-02 15:40:43 +02:00
|
|
|
<div class="span8">
|
2012-08-30 20:49:58 +02:00
|
|
|
<script type="text/javascript">
|
2012-09-02 15:40:43 +02:00
|
|
|
function resizeIframe() {
|
2012-09-09 12:42:22 +02:00
|
|
|
var contentHeight = $("#bookContent").contents().find("html").height();
|
2019-01-16 23:34:13 +00:00
|
|
|
$("#bookContent").height(ContentHeight);
|
2012-08-30 20:49:58 +02:00
|
|
|
}
|
|
|
|
</script>
|
2019-01-16 23:34:13 +00:00
|
|
|
|
|
|
|
<ul class="pager">
|
|
|
|
{{if .Prev}}
|
|
|
|
<li class="previous">
|
|
|
|
<a href="{{.Prev}}">← Prev</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
{{if .Book.Active}}
|
|
|
|
<li class="">
|
|
|
|
<a href="{{.Back}}">Back</a>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<span class="label label-warning">waiting for moderation</span>
|
|
|
|
{{end}}
|
|
|
|
{{if .Next}}
|
|
|
|
<li class="next">
|
|
|
|
<a href="{{.Next}}">Next →</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
|
2016-01-28 17:42:00 -05:00
|
|
|
<iframe id="bookContent" onload="resizeIframe();" style="width: 100%; height: 1080px; border: 0;" scrolling="auto" src="{{.Content}}" seamless="seamless" sandbox="allow-same-origin" frameborder=0></iframe>
|
2012-08-21 18:15:21 +02:00
|
|
|
|
|
|
|
<ul class="pager">
|
|
|
|
{{if .Prev}}
|
|
|
|
<li class="previous">
|
|
|
|
<a href="{{.Prev}}">← Prev</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2012-08-21 20:38:35 +02:00
|
|
|
<li class="">
|
2012-08-21 20:54:57 +02:00
|
|
|
<a href="{{.Back}}">Back</a>
|
2012-08-21 20:38:35 +02:00
|
|
|
</li>
|
2012-08-21 18:15:21 +02:00
|
|
|
{{if .Next}}
|
|
|
|
<li class="next">
|
|
|
|
<a href="{{.Next}}">Next →</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
|
2019-01-16 10:42:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-23 19:13:58 +00:00
|
|
|
{{template "footer.html" .S}}
|