mirror of https://github.com/halo-dev/halo
🎨 后台管理ui优化
parent
db4abd3b7b
commit
15ac481aff
|
@ -69,17 +69,15 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<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>
|
||||
<#list backups?sort_by("createAt")?reverse as backup>
|
||||
<tr>
|
||||
|
|
|
@ -83,39 +83,37 @@
|
|||
<h3 class="box-title"><@spring.message code='admin.categories.text.all-categories' /></h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<@commonTag method="categories">
|
||||
<#if categories?? && categories?size gt 0>
|
||||
<#list categories as cate>
|
||||
<tr>
|
||||
<td>${cate.cateName}</td>
|
||||
<td>${cate.cateUrl}</td>
|
||||
<td>${(cate.cateDesc)!}</td>
|
||||
<td>
|
||||
<span class="label" style="background-color: #d6cdcd;">${cate.posts?size}</span>
|
||||
</td>
|
||||
<td>
|
||||
<#if updateCategory?? && updateCategory.cateId?c==cate.cateId?c>
|
||||
<a href="#" class="btn btn-primary btn-xs " disabled><@spring.message code='common.btn.editing' /></a>
|
||||
<#else >
|
||||
<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>
|
||||
<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>
|
||||
<@commonTag method="categories">
|
||||
<#if categories?? && categories?size gt 0>
|
||||
<#list categories as cate>
|
||||
<tr>
|
||||
<td>${cate.cateName}</td>
|
||||
<td>${cate.cateUrl}</td>
|
||||
<td>${(cate.cateDesc)!}</td>
|
||||
<td>
|
||||
<span class="label" style="background-color: #d6cdcd;">${cate.posts?size}</span>
|
||||
</td>
|
||||
<td>
|
||||
<#if updateCategory?? && updateCategory.cateId?c==cate.cateId?c>
|
||||
<a href="#" class="btn btn-primary btn-xs " disabled><@spring.message code='common.btn.editing' /></a>
|
||||
<#else >
|
||||
<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>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -30,17 +30,15 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<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>
|
||||
<#list comments.content as comment>
|
||||
<tr>
|
||||
|
|
|
@ -204,15 +204,13 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover text-center">
|
||||
<thead>
|
||||
<table class="table table-hover text-center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="50%"><@spring.message code='common.th.title' /></th>
|
||||
<th><@spring.message code='common.th.status' /></th>
|
||||
<th><@spring.message code='common.th.date' /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#if postTopFive??>
|
||||
<#list postTopFive as post>
|
||||
<tr>
|
||||
|
@ -254,17 +252,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover text-center">
|
||||
<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??>
|
||||
<#list comments as comment>
|
||||
<tr>
|
||||
|
@ -334,16 +330,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover text-center">
|
||||
<thead>
|
||||
<table class="table table-hover text-center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><@spring.message code='common.th.action' /></th>
|
||||
<th><@spring.message code='common.th.result' /></th>
|
||||
<th>IP</th>
|
||||
<th><@spring.message code='common.th.date' /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#if logs??>
|
||||
<#list logs as log>
|
||||
<tr>
|
||||
|
|
|
@ -101,37 +101,35 @@
|
|||
<h3 class="box-title"><@spring.message code='admin.menus.text.all-menus' /></h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<@commonTag method="menus">
|
||||
<#if menus?? && menus?size gt 0>
|
||||
<#list menus as menu>
|
||||
<tr>
|
||||
<td>${menu.menuName}</td>
|
||||
<td>${menu.menuUrl}</td>
|
||||
<td>${(menu.menuSort)!}</td>
|
||||
<td>${menu.menuIcon}</td>
|
||||
<td>
|
||||
<#if updateMenu?? && menu.menuId?c==updateMenu.menuId?c>
|
||||
<a href="#" class="btn btn-primary btn-xs " disabled=""><@spring.message code='common.btn.editing' /></a>
|
||||
<#else>
|
||||
<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>
|
||||
<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>
|
||||
<@commonTag method="menus">
|
||||
<#if menus?? && menus?size gt 0>
|
||||
<#list menus as menu>
|
||||
<tr>
|
||||
<td>${menu.menuName}</td>
|
||||
<td>${menu.menuUrl}</td>
|
||||
<td>${(menu.menuSort)!}</td>
|
||||
<td>${menu.menuIcon}</td>
|
||||
<td>
|
||||
<#if updateMenu?? && menu.menuId?c==updateMenu.menuId?c>
|
||||
<a href="#" class="btn btn-primary btn-xs " disabled=""><@spring.message code='common.btn.editing' /></a>
|
||||
<#else>
|
||||
<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>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -30,39 +30,37 @@
|
|||
<div class="tab-content" style="padding: 0;">
|
||||
<div class="tab-pane active" id="internal">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><@spring.message code='admin.pages.links' /></td>
|
||||
<td>/links</td>
|
||||
<td>
|
||||
<a href="/links" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
|
||||
<a data-pjax="true" href="/admin/page/links" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><@spring.message code='admin.pages.gallery' /></td>
|
||||
<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>
|
||||
<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>
|
||||
<tr>
|
||||
<td><@spring.message code='admin.pages.links' /></td>
|
||||
<td>/links</td>
|
||||
<td>
|
||||
<a href="/links" class="btn btn-info btn-xs " target="_blank"><@spring.message code='common.btn.view' /></a>
|
||||
<a data-pjax="true" href="/admin/page/links" class="btn btn-primary btn-xs "><@spring.message code='common.btn.edit' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><@spring.message code='admin.pages.gallery' /></td>
|
||||
<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>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="pages">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><@spring.message code='common.th.title' /></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.control' /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#if pages?size gt 0>
|
||||
<#list pages as page>
|
||||
<#if pages?size gt 0>
|
||||
<#list pages as page>
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
<td colspan="6" style="text-align: center;"><@spring.message code='common.text.no-data' /></td>
|
||||
</tr>
|
||||
</#list>
|
||||
<#else>
|
||||
<tr>
|
||||
<td colspan="6" style="text-align: center;"><@spring.message code='common.text.no-data' /></td>
|
||||
</tr>
|
||||
</#if>
|
||||
</#if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -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-body table-responsive no-padding">
|
||||
<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>
|
||||
<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">
|
||||
<#if links?? && links?size gt 0>
|
||||
<#list links as link>
|
||||
|
|
|
@ -41,19 +41,17 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered 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>
|
||||
<table class="table table-hover">
|
||||
<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>
|
||||
<#list posts.content as post>
|
||||
<tr>
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
<div class="col-lg-12 attachDesc" style="padding-top: 15px;">
|
||||
<div class="box box-solid">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><@spring.message code='admin.logs.th.log-id' /></th>
|
||||
<th><@spring.message code='admin.logs.th.log-action' /></th>
|
||||
|
@ -21,8 +21,6 @@
|
|||
<th>IP</th>
|
||||
<th><@spring.message code='admin.logs.th.log-datetime' /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#list logs.content as log>
|
||||
<tr>
|
||||
<td>${log.logId}</td>
|
||||
|
|
Loading…
Reference in New Issue