developed during a merge... I am going to hell for this.
- also new topics tab in admin panelv1.18.x
parent
cef77c2fd8
commit
32eba62ef6
@ -1,55 +1,22 @@
|
|||||||
<h1>Topics</h1>
|
<h1>Topics</h1>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<ul class="nav nav-pills">
|
<ul class="topics">
|
||||||
<li class='active'><a href='/admin/topics'>All</a></li>
|
<!-- BEGIN topics -->
|
||||||
<li class=''><a href='/admin/topics/latest'>Latest</a></li>
|
<li data-tid="{topics.tid}" data-locked="{topics.locked}" data-pinned="{topics.pinned}" data-deleted="{topics.deleted}">
|
||||||
<li class=''><a href='/admin/topics/active'>Active</a></li>
|
<div class="btn-group pull-right">
|
||||||
</ul>
|
<button data-action="pin" class="btn"><i class="icon-pushpin"></i></button>
|
||||||
|
<button data-action="lock" class="btn"><i class="icon-lock"></i></button>
|
||||||
|
<button data-action="delete" class="btn"><i class="icon-trash"></i></button>
|
||||||
<ul class="topic-container">
|
|
||||||
<!-- BEGIN topics -->
|
|
||||||
<a href="../../topic/{topics.slug}"><li class="topic-row">
|
|
||||||
<div class="row" style="margin: 0">
|
|
||||||
<div class="span1 topic-row-icon">
|
|
||||||
<i class="icon-lock icon-4x"></i>
|
|
||||||
<i class="{topics.pin-icon}"></i><i class="{topics.lock-icon}"></i>
|
|
||||||
</div>
|
|
||||||
<div class="span11 topic-row-content">
|
|
||||||
<div class="top-posters">
|
|
||||||
<img src="http://www.gravatar.com/avatar/fd37ce111f863c6665045c2d72d199bf?s=60&default=identicon" class="img-polaroid" />
|
|
||||||
<img src="http://www.gravatar.com/avatar/07c9c7170c3ac676c2561e3eeaee063c?s=60&default=identicon" class="img-polaroid" />
|
|
||||||
<img src="http://www.gravatar.com/avatar/91050ce0072697b53380c6a03a1bc12a?s=60&default=identicon" class="img-polaroid" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3><span class="badge badge-important">3</span> {topics.title} <small>24<i class="icon-star"></i></small></h3>
|
|
||||||
<p> Posted {topics.relativeTime} ago by
|
|
||||||
<span class="username">{topics.username}</span>. {topics.post_count} posts.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<a target="_blank" href="../../topic/{topics.slug}">{topics.title}</a>
|
||||||
</div>
|
<ul>
|
||||||
</li></a>
|
<li><i class="icon-time"></i> Posted {topics.relativeTime} ago by {topics.username}</li>
|
||||||
<!-- END topics -->
|
<li><i class="icon-comments"></i> {topics.post_count} post(s)</li>
|
||||||
|
</ul>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</li>
|
||||||
|
<!-- END topics -->
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript" src="../../src/forum/admin/topics.js"></script>
|
||||||
|
|
||||||
//DRY Failure. this needs to go into an ajaxify onready style fn. Currently is copy pasted into every single function so after ACP is off the ground fix asap
|
|
||||||
(function() {
|
|
||||||
jQuery('document').ready(function() {
|
|
||||||
var url = window.location.href,
|
|
||||||
parts = url.split('/'),
|
|
||||||
active = parts[parts.length-1];
|
|
||||||
|
|
||||||
jQuery('.nav-pills li').removeClass('active');
|
|
||||||
jQuery('.nav-pills li a').each(function() {
|
|
||||||
if (this.getAttribute('href').match(active)) {
|
|
||||||
jQuery(this.parentNode).addClass('active');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
}());
|
|
||||||
</script>
|
|
Loading…
Reference in New Issue