rewrote a bit of the code so that templates.js is called asynchronously, and moved indentation levels to CSS instead of inlined styling.
parent
394497c9d5
commit
478850ac05
@ -1,26 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="clearfix">
|
||||
<div class="icon">
|
||||
<i data-name="icon" value="{icon}" class="fa {icon}"></i>
|
||||
</div>
|
||||
<div class="information">
|
||||
<h5 class="header">{name}</h5>
|
||||
|
||||
<p class="description">{description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="clearfix pull-right">
|
||||
<ul class="fa-ul stats">
|
||||
<li class="fa-li"><i class="fa fa-book"></i> {topic_count}</li>
|
||||
<li class="fa-li"><i class="fa fa-pencil"></i> {post_count}</li>
|
||||
</ul>
|
||||
<div class="btn-group">
|
||||
<button data-action="toggle" data-disabled="{disabled}" class="btn btn-xs"></button>
|
||||
<a href="./categories/{cid}" class="btn btn-default btn-xs">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,33 @@
|
||||
<ul data-cid="{cid}">
|
||||
<!-- BEGIN categories -->
|
||||
<li data-cid="{categories.cid}" <!-- IF categories.disabled -->class="disabled"<!-- ENDIF categories.disabled -->>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="clearfix">
|
||||
<div class="icon" style="color: {categories.color}; background-color: {categories.bgColor};<!-- IF categories.backgroundImage --> background-image: url('{categories.backgroundImage}');<!-- ENDIF categories.backgroundImage -->">
|
||||
<i data-name="icon" value="{categories.icon}" class="fa {categories.icon}"></i>
|
||||
</div>
|
||||
<div class="information">
|
||||
<h5 class="header">{categories.name}</h5>
|
||||
<p class="description">{categories.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="clearfix pull-right">
|
||||
<ul class="fa-ul stats">
|
||||
<li class="fa-li"><i class="fa fa-book"></i> {categories.topic_count}</li>
|
||||
<li class="fa-li"><i class="fa fa-pencil"></i> {categories.post_count}</li>
|
||||
</ul>
|
||||
<div class="btn-group">
|
||||
<button data-action="toggle" data-disabled="{categories.disabled}" class="btn btn-xs <!-- IF categories.disabled -->btn-primary<!-- ELSE -->btn-danger<!-- ENDIF categories.disabled -->">
|
||||
<!-- IF categories.disabled -->Enable<!-- ELSE -->Disable<!-- ENDIF categories.disabled -->
|
||||
</button>
|
||||
<a href="./categories/{categories.cid}" class="btn btn-default btn-xs">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<!-- END categories -->
|
||||
</ul>
|
Loading…
Reference in New Issue