fixed a bug in templates, introduced categories, added default setup script onload, moved home.tpl code over to category, created hierachies
parent
178bc82a55
commit
fa64e84dcc
@ -1,29 +1,9 @@
|
||||
<button id="new_post" class="btn btn-primary btn-large">New Post</button>
|
||||
<h3>Categories</h3>
|
||||
<ul class="topic-container">
|
||||
<!-- BEGIN topics -->
|
||||
<a href="topic/{topics.slug}"><li class="topic-row">
|
||||
<h4>{topics.title}</h4>
|
||||
<p>Posted {topics.relativeTime} ago by <span class="username">{topics.username}</span>. {topics.post_count} posts.</p>
|
||||
<!-- BEGIN categories -->
|
||||
<a href="category/{categories.slug}"><li class="topic-row">
|
||||
<h4>{categories.name}</h4>
|
||||
<p>{categories.description}</p>
|
||||
</li></a>
|
||||
<!-- END topics -->
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
var new_post = document.getElementById('new_post');
|
||||
new_post.onclick = function() {
|
||||
app.open_post_window();
|
||||
}
|
||||
|
||||
jQuery('document').ready(function() {
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
/*app.alert({
|
||||
title: 'Welcome back',
|
||||
message: 'Some welcome message to test alerts!',
|
||||
type: 'info',
|
||||
timeout: 2000
|
||||
});*/
|
||||
</script>
|
||||
<!-- END categories -->
|
||||
</ul>
|
Loading…
Reference in New Issue