Merge branch 'categories-parent-acp' of https://github.com/NicolasSiver/NodeBB into NicolasSiver-categories-parent-acp
commit
394497c9d5
@ -0,0 +1,68 @@
|
||||
div.categories {
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.fa-ul {
|
||||
li {
|
||||
min-height: 0;
|
||||
display: inline;
|
||||
margin: 0 @acp-margin 0 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
min-height: @acp-line-height;
|
||||
margin: @acp-base-line 0;
|
||||
|
||||
&.placeholder {
|
||||
border: 1px dashed #2196F3;
|
||||
background-color: #E1F5FE;
|
||||
}
|
||||
}
|
||||
|
||||
.disabled {
|
||||
|
||||
.icon, .header, .description {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.stats {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: @acp-line-height;
|
||||
height: @acp-line-height;
|
||||
border-radius: 50%;
|
||||
line-height: @acp-line-height;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
background-size: cover;
|
||||
float: left;
|
||||
margin-right: @acp-margin;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.information {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-top: 0;
|
||||
margin-bottom: @acp-base-line;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.stats, .btn-group {
|
||||
float: left;
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
@acp-base-line: 8px;
|
||||
@acp-line-height: @acp-base-line * 6;
|
||||
@acp-margin: @acp-base-line * 2;
|
File diff suppressed because it is too large
Load Diff
@ -1,120 +1,20 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><i class="fa fa-folder"></i> Active Categories</div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped table-hover table-reordering">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th class="text-center">Topics</th>
|
||||
<th class="text-center">Posts</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="active-categories">
|
||||
<!-- IF active.length -->
|
||||
<!-- BEGIN active -->
|
||||
<tr data-cid="{active.cid}">
|
||||
<td>
|
||||
<span class="label" style="
|
||||
<!-- IF active.backgroundImage -->background-image: url({active.backgroundImage});<!-- ENDIF active.backgroundImage -->
|
||||
<!-- IF active.bgColor -->background-color: {active.bgColor};<!-- ENDIF active.bgColor -->
|
||||
color: {active.color};
|
||||
background-size:cover;
|
||||
">
|
||||
<i data-name="icon" value="{active.icon}" class="fa fa-fw {active.icon}"></i>
|
||||
</span>
|
||||
</td>
|
||||
<td>{active.name}</td>
|
||||
<td>{active.description}</td>
|
||||
<td class="text-center">{active.topic_count}</td>
|
||||
<td class="text-center">{active.post_count}</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a href="./categories/{active.cid}" class="btn btn-default btn-xs">Edit</a>
|
||||
<button data-action="toggle" data-disabled="{active.disabled}" class="btn btn-default btn-xs">Disable</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END active -->
|
||||
<!-- ELSE -->
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<div class="alert alert-info text-center">
|
||||
You have no active categories.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- ENDIF active.length -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><i class="fa fa-folder"></i> Categories</div>
|
||||
<div class="panel-body">
|
||||
<div class="categories"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><i class="fa fa-folder"></i> Disabled Categories</div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped table-hover table-reordering">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th class="text-center">Topics</th>
|
||||
<th class="text-center">Posts</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="disabled-categories">
|
||||
<!-- IF disabled.length -->
|
||||
<!-- BEGIN disabled -->
|
||||
<tr data-cid="{disabled.cid}">
|
||||
<td>
|
||||
<span class="label" style="
|
||||
<!-- IF disabled.backgroundImage -->background-image: url({disabled.backgroundImage});<!-- ENDIF disabled.backgroundImage -->
|
||||
<!-- IF disabled.bgColor -->background-color: {disabled.bgColor};<!-- ENDIF disabled.bgColor -->
|
||||
color: {disabled.color};
|
||||
background-size:cover;
|
||||
">
|
||||
<i data-name="icon" value="{disabled.icon}" class="fa fa-fw {disabled.icon}"></i>
|
||||
</span>
|
||||
</td>
|
||||
<td>{disabled.name}</td>
|
||||
<td>{disabled.description}</td>
|
||||
<td class="text-center">{disabled.topic_count}</td>
|
||||
<td class="text-center">{disabled.post_count}</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a href="./categories/{disabled.cid}" class="btn btn-default btn-xs">Edit</a>
|
||||
<button data-action="toggle" data-disabled="{disabled.disabled}" class="btn btn-default btn-xs">Enable</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END disabled -->
|
||||
<!-- ELSE -->
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<div class="alert alert-info text-center">
|
||||
You have no disabled categories.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- ENDIF disabled.length -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 acp-sidebar">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Categories Control Panel</div>
|
||||
<div class="panel-body">
|
||||
<button type="button" class="btn btn-primary btn-block" data-action="create">Create New Category</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 acp-sidebar">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Categories Control Panel</div>
|
||||
<div class="panel-body">
|
||||
<button type="button" class="btn btn-primary btn-block" data-action="create">Create New Category
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -0,0 +1,26 @@
|
||||
<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>
|
Loading…
Reference in New Issue