/templates/post-listing.mustache
http://github.com/TheOnly92/bloody.go · Mustache · 55 lines · 55 code · 0 blank · 0 comment · 0 complexity · ce6735b3b5680b9082bc0180376e675c MD5 · raw file
- <h1>Blog Entries</h1>
- {{#Pagination}}
- <div id="Pagination">
- <span style="float: left; width: 100px; display: block;">
- {{#Before}}
- <a href="/post/list?page=1">«</a> | <a href="/post/list?page={{BeforePage}}">< Previous</a>
- {{/Before}}
- {{^Before}} {{/Before}}
- </span>
- <span style="margin-left: 150px; float: left; display: block">
- |{{#Pages}}
- {{^current}}<a href="/post/list?page={{page}}">{{/current}}{{page}}{{^current}}</a>{{/current}} |
- {{/Pages}}
- </span>
- <span style="float: right; width: 100px; display: block;">
- {{#After}}
- <a href="/post/list?page={{AfterPage}}">Next ></a> | <a href="/post/list?page={{LastPage}}">»</a>
- {{/After}}
- {{^After}} {{/After}}
- </span>
- <div style="clear: both;"></div>
- </div>
- {{/Pagination}}
- <div id="PostListing">
- <ul>
- {{#Posts}}
- <li>
- <p><a href="/post/{{Id}}">{{Title}}</a></p>
- <p style="font-size: 12px">{{Date}}</p>
- </li>
- {{/Posts}}
- </ul>
- </div>
- {{#Pagination}}
- <div id="Pagination">
- <span style="float: left; width: 100px; display: block;">
- {{#Before}}
- <a href="/post/list?page=1">«</a> | <a href="/post/list?page={{BeforePage}}">< Previous</a>
- {{/Before}}
- {{^Before}} {{/Before}}
- </span>
- <span style="margin-left: 150px; float: left; display: block">
- |{{#Pages}}
- {{^current}}<a href="/post/list?page={{page}}">{{/current}}{{page}}{{^current}}</a>{{/current}} |
- {{/Pages}}
- </span>
- <span style="float: right; width: 100px; display: block;">
- {{#After}}
- <a href="/post/list?page={{AfterPage}}">Next ></a> | <a href="/post/list?page={{LastPage}}">»</a>
- {{/After}}
- {{^After}} {{/After}}
- </span>
- <div style="clear: both;"></div>
- </div>
- {{/Pagination}}