🎨 后台管理ui优化

pull/56/head
ruibaby 2018-11-07 10:43:40 +08:00
parent db4abd3b7b
commit 15ac481aff
9 changed files with 150 additions and 174 deletions

View File

@ -69,17 +69,15 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.file-name' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.file-size' /></th>
<th><@spring.message code='common.th.file-type' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr>
<th><@spring.message code='common.th.file-name' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.file-size' /></th>
<th><@spring.message code='common.th.file-type' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
<#if backups?size gt 0> <#if backups?size gt 0>
<#list backups?sort_by("createAt")?reverse as backup> <#list backups?sort_by("createAt")?reverse as backup>
<tr> <tr>

View File

@ -83,39 +83,37 @@
<h3 class="box-title"><@spring.message code='admin.categories.text.all-categories' /></h3> <h3 class="box-title"><@spring.message code='admin.categories.text.all-categories' /></h3>
</div> </div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.name' /></th>
<th><@spring.message code='common.th.url' /></th>
<th><@spring.message code='common.th.desc' /></th>
<th><@spring.message code='common.th.posts-count' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<@commonTag method="categories"> <tr>
<#if categories?? && categories?size gt 0> <th><@spring.message code='common.th.name' /></th>
<#list categories as cate> <th><@spring.message code='common.th.url' /></th>
<tr> <th><@spring.message code='common.th.desc' /></th>
<td>${cate.cateName}</td> <th><@spring.message code='common.th.posts-count' /></th>
<td>${cate.cateUrl}</td> <th><@spring.message code='common.th.control' /></th>
<td>${(cate.cateDesc)!}</td> </tr>
<td> <@commonTag method="categories">
<span class="label" style="background-color: #d6cdcd;">${cate.posts?size}</span> <#if categories?? && categories?size gt 0>
</td> <#list categories as cate>
<td> <tr>
<#if updateCategory?? && updateCategory.cateId?c==cate.cateId?c> <td>${cate.cateName}</td>
<a href="#" class="btn btn-primary btn-xs " disabled><@spring.message code='common.btn.editing' /></a> <td>${cate.cateUrl}</td>
<#else > <td>${(cate.cateDesc)!}</td>
<a data-pjax="true" href="/admin/category/edit?cateId=${cate.cateId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.modify' /></a> <td>
</#if> <span class="label" style="background-color: #d6cdcd;">${cate.posts?size}</span>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/category/remove?cateId=${cate.cateId?c}')"><@spring.message code='common.btn.delete' /></button> </td>
</td> <td>
</tr> <#if updateCategory?? && updateCategory.cateId?c==cate.cateId?c>
</#list> <a href="#" class="btn btn-primary btn-xs " disabled><@spring.message code='common.btn.editing' /></a>
</#if> <#else >
</@commonTag> <a data-pjax="true" href="/admin/category/edit?cateId=${cate.cateId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.modify' /></a>
</#if>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/category/remove?cateId=${cate.cateId?c}')"><@spring.message code='common.btn.delete' /></button>
</td>
</tr>
</#list>
</#if>
</@commonTag>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -30,17 +30,15 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.comment-author' /></th>
<th width="50%"><@spring.message code='common.th.content' /></th>
<th><@spring.message code='common.th.comment-page' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr>
<th><@spring.message code='common.th.comment-author' /></th>
<th width="50%"><@spring.message code='common.th.content' /></th>
<th><@spring.message code='common.th.comment-page' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
<#if comments.content?size gt 0> <#if comments.content?size gt 0>
<#list comments.content as comment> <#list comments.content as comment>
<tr> <tr>

View File

@ -204,15 +204,13 @@
</div> </div>
</div> </div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover text-center"> <table class="table table-hover text-center">
<thead> <tbody>
<tr> <tr>
<th width="50%"><@spring.message code='common.th.title' /></th> <th width="50%"><@spring.message code='common.th.title' /></th>
<th><@spring.message code='common.th.status' /></th> <th><@spring.message code='common.th.status' /></th>
<th><@spring.message code='common.th.date' /></th> <th><@spring.message code='common.th.date' /></th>
</tr> </tr>
</thead>
<tbody>
<#if postTopFive??> <#if postTopFive??>
<#list postTopFive as post> <#list postTopFive as post>
<tr> <tr>
@ -254,17 +252,15 @@
</div> </div>
</div> </div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover text-center"> <table class="table table-hover text-center">
<thead>
<tr>
<th><@spring.message code='common.th.comment-author' /></th>
<th width="20%"><@spring.message code='common.th.comment-page' /></th>
<th width="30%"><@spring.message code='common.th.content' /></th>
<th><@spring.message code='common.th.status' /></th>
<th><@spring.message code='common.th.date' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr>
<th><@spring.message code='common.th.comment-author' /></th>
<th width="20%"><@spring.message code='common.th.comment-page' /></th>
<th width="30%"><@spring.message code='common.th.content' /></th>
<th><@spring.message code='common.th.status' /></th>
<th><@spring.message code='common.th.date' /></th>
</tr>
<#if comments??> <#if comments??>
<#list comments as comment> <#list comments as comment>
<tr> <tr>
@ -334,16 +330,14 @@
</div> </div>
</div> </div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover text-center"> <table class="table table-hover text-center">
<thead> <tbody>
<tr> <tr>
<th><@spring.message code='common.th.action' /></th> <th><@spring.message code='common.th.action' /></th>
<th><@spring.message code='common.th.result' /></th> <th><@spring.message code='common.th.result' /></th>
<th>IP</th> <th>IP</th>
<th><@spring.message code='common.th.date' /></th> <th><@spring.message code='common.th.date' /></th>
</tr> </tr>
</thead>
<tbody>
<#if logs??> <#if logs??>
<#list logs as log> <#list logs as log>
<tr> <tr>

View File

@ -101,37 +101,35 @@
<h3 class="box-title"><@spring.message code='admin.menus.text.all-menus' /></h3> <h3 class="box-title"><@spring.message code='admin.menus.text.all-menus' /></h3>
</div> </div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.name' /></th>
<th><@spring.message code='common.th.url' /></th>
<th><@spring.message code='common.th.sort' /></th>
<th><@spring.message code='common.th.icon' /></th>
<th><@spring.message code='common.th.name' /></th>
</tr>
</thead>
<tbody> <tbody>
<@commonTag method="menus"> <tr>
<#if menus?? && menus?size gt 0> <th><@spring.message code='common.th.name' /></th>
<#list menus as menu> <th><@spring.message code='common.th.url' /></th>
<tr> <th><@spring.message code='common.th.sort' /></th>
<td>${menu.menuName}</td> <th><@spring.message code='common.th.icon' /></th>
<td>${menu.menuUrl}</td> <th><@spring.message code='common.th.name' /></th>
<td>${(menu.menuSort)!}</td> </tr>
<td>${menu.menuIcon}</td> <@commonTag method="menus">
<td> <#if menus?? && menus?size gt 0>
<#if updateMenu?? && menu.menuId?c==updateMenu.menuId?c> <#list menus as menu>
<a href="#" class="btn btn-primary btn-xs " disabled=""><@spring.message code='common.btn.editing' /></a> <tr>
<#else> <td>${menu.menuName}</td>
<a data-pjax="true" href="/admin/menus/edit?menuId=${menu.menuId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.modify' /></a> <td>${menu.menuUrl}</td>
</#if> <td>${(menu.menuSort)!}</td>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/menus/remove?menuId=${menu.menuId?c}')"><@spring.message code='common.btn.delete' /></button> <td>${menu.menuIcon}</td>
</td> <td>
</tr> <#if updateMenu?? && menu.menuId?c==updateMenu.menuId?c>
</#list> <a href="#" class="btn btn-primary btn-xs " disabled=""><@spring.message code='common.btn.editing' /></a>
</#if> <#else>
</@commonTag> <a data-pjax="true" href="/admin/menus/edit?menuId=${menu.menuId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.modify' /></a>
</#if>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/menus/remove?menuId=${menu.menuId?c}')"><@spring.message code='common.btn.delete' /></button>
</td>
</tr>
</#list>
</#if>
</@commonTag>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -30,39 +30,37 @@
<div class="tab-content" style="padding: 0;"> <div class="tab-content" style="padding: 0;">
<div class="tab-pane active" id="internal"> <div class="tab-pane active" id="internal">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.title' /></th>
<th><@spring.message code='common.th.url' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<td><@spring.message code='admin.pages.links' /></td> <th><@spring.message code='common.th.title' /></th>
<td>/links</td> <th><@spring.message code='common.th.url' /></th>
<td> <th><@spring.message code='common.th.control' /></th>
<a href="/links" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a> </tr>
<a data-pjax="true" href="/admin/page/links" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a> <tr>
</td> <td><@spring.message code='admin.pages.links' /></td>
</tr> <td>/links</td>
<tr> <td>
<td><@spring.message code='admin.pages.gallery' /></td> <a href="/links" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
<td>/gallery</td> <a data-pjax="true" href="/admin/page/links" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
<td> </td>
<a href="/gallery" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a> </tr>
<a data-pjax="true" href="/admin/page/galleries" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a> <tr>
</td> <td><@spring.message code='admin.pages.gallery' /></td>
</tr> <td>/gallery</td>
<td>
<a href="/gallery" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
<a data-pjax="true" href="/admin/page/galleries" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="tab-pane" id="pages"> <div class="tab-pane" id="pages">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead> <tbody>
<tr> <tr>
<th><@spring.message code='common.th.title' /></th> <th><@spring.message code='common.th.title' /></th>
<th><@spring.message code='common.th.url' /></th> <th><@spring.message code='common.th.url' /></th>
@ -71,32 +69,30 @@
<th><@spring.message code='common.th.date' /></th> <th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.control' /></th> <th><@spring.message code='common.th.control' /></th>
</tr> </tr>
</thead> <#if pages?size gt 0>
<tbody> <#list pages as page>
<#if pages?size gt 0> <tr>
<#list pages as page> <td>${page.postTitle}</td>
<td>/p/${page.postUrl}</td>
<td>
<span class="label" style="background-color: #d6cdcd;">${page.comments?size}</span>
</td>
<td>
<span class="label" style="background-color: #d6cdcd;">${page.postViews}</span>
</td>
<td>${page.postDate?string("yyyy-MM-dd HH:mm")}</td>
<td>
<a href="/p/${page.postUrl}" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
<a href="/admin/page/edit?pageId=${page.postId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/posts/remove?postId=${page.postId?c}&postType=${page.postType}','<@spring.message code="common.text.tips.to-delete" />')"><@spring.message code='common.btn.delete' /></button>
</td>
</tr>
</#list>
<#else>
<tr> <tr>
<td>${page.postTitle}</td> <td colspan="6" style="text-align: center;"><@spring.message code='common.text.no-data' /></td>
<td>/p/${page.postUrl}</td>
<td>
<span class="label" style="background-color: #d6cdcd;">${page.comments?size}</span>
</td>
<td>
<span class="label" style="background-color: #d6cdcd;">${page.postViews}</span>
</td>
<td>${page.postDate?string("yyyy-MM-dd HH:mm")}</td>
<td>
<a href="/p/${page.postUrl}" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
<a href="/admin/page/edit?pageId=${page.postId?c}" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
<button class="btn btn-danger btn-xs " onclick="modelShow('/admin/posts/remove?postId=${page.postId?c}&postType=${page.postType}','<@spring.message code="common.text.tips.to-delete" />')"><@spring.message code='common.btn.delete' /></button>
</td>
</tr> </tr>
</#list> </#if>
<#else>
<tr>
<td colspan="6" style="text-align: center;"><@spring.message code='common.text.no-data' /></td>
</tr>
</#if>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -82,15 +82,13 @@
<div class="box-header with-border"><h3 class="box-title"><@spring.message code='admin.pages.links.text.all-links' /></h3></div> <div class="box-header with-border"><h3 class="box-title"><@spring.message code='admin.pages.links.text.all-links' /></h3></div>
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.name' /></th>
<th><@spring.message code='common.th.site' /></th>
<th><@spring.message code='common.th.desc' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr>
<th><@spring.message code='common.th.name' /></th>
<th><@spring.message code='common.th.site' /></th>
<th><@spring.message code='common.th.desc' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
<@commonTag method="links"> <@commonTag method="links">
<#if links?? && links?size gt 0> <#if links?? && links?size gt 0>
<#list links as link> <#list links as link>

View File

@ -41,19 +41,17 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead>
<tr>
<th><@spring.message code='common.th.title' /></th>
<th><@spring.message code='common.th.categories' /></th>
<th><@spring.message code='common.th.tags' /></th>
<th><@spring.message code='common.th.comments' /></th>
<th><@spring.message code='common.th.views' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
</thead>
<tbody> <tbody>
<tr>
<th><@spring.message code='common.th.title' /></th>
<th><@spring.message code='common.th.categories' /></th>
<th><@spring.message code='common.th.tags' /></th>
<th><@spring.message code='common.th.comments' /></th>
<th><@spring.message code='common.th.views' /></th>
<th><@spring.message code='common.th.date' /></th>
<th><@spring.message code='common.th.control' /></th>
</tr>
<#if posts.content?size gt 0> <#if posts.content?size gt 0>
<#list posts.content as post> <#list posts.content as post>
<tr> <tr>

View File

@ -12,8 +12,8 @@
<div class="col-lg-12 attachDesc" style="padding-top: 15px;"> <div class="col-lg-12 attachDesc" style="padding-top: 15px;">
<div class="box box-solid"> <div class="box box-solid">
<div class="box-body table-responsive no-padding"> <div class="box-body table-responsive no-padding">
<table class="table table-bordered table-hover"> <table class="table table-hover">
<thead> <tbody>
<tr> <tr>
<th><@spring.message code='admin.logs.th.log-id' /></th> <th><@spring.message code='admin.logs.th.log-id' /></th>
<th><@spring.message code='admin.logs.th.log-action' /></th> <th><@spring.message code='admin.logs.th.log-action' /></th>
@ -21,8 +21,6 @@
<th>IP</th> <th>IP</th>
<th><@spring.message code='admin.logs.th.log-datetime' /></th> <th><@spring.message code='admin.logs.th.log-datetime' /></th>
</tr> </tr>
</thead>
<tbody>
<#list logs.content as log> <#list logs.content as log>
<tr> <tr>
<td>${log.logId}</td> <td>${log.logId}</td>