Style the maintance section like the dashboard.
This commit is contained in:
@ -569,8 +569,9 @@ class serendipity_event_entryproperties extends serendipity_event
|
||||
|
||||
case 'backend_maintenance':
|
||||
if ($is_cache && $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN) {
|
||||
echo '<section><h3>'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</h3></section>';
|
||||
echo '<a class="button_link" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=buildcache">'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</a>';
|
||||
echo '<section id="maintenance_buildcache" class="equal_heights quick_list">';
|
||||
echo '<h3>'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</h3>';
|
||||
echo '<a class="button_link" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=buildcache">'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</a></section>';
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
|
@ -36,15 +36,13 @@
|
||||
{$formToken}
|
||||
|
||||
<div class="form_select">
|
||||
<label for="import_from">{$CONST.IMPORT_WEBLOG_APP}:</label>
|
||||
<label for="import_from">{$CONST.IMPORT_WEBLOG_APP}</label>
|
||||
<select id="import_from" name="serendipity[importFrom]">
|
||||
{foreach $list as $v => $k}
|
||||
<option value="{$v}">{$k}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form_buttons">
|
||||
|
||||
<input type="submit" value="{$CONST.GO}">
|
||||
</div>
|
||||
</form>
|
||||
|
@ -1,36 +1,41 @@
|
||||
<h2>Maintenance</h2> {* i18n *}
|
||||
<div id="maintenance" class="clearfix">
|
||||
<h2>Maintenance</h2> {* i18n *}
|
||||
|
||||
{if $action == "integrity"}
|
||||
<h2>{$CONST.INTEGRITY}</h2>
|
||||
<div class="clearfix">
|
||||
<h3 class="visuallyhidden">{$CONST.INTEGRITY}</h3>
|
||||
{if $noChecksum == true}
|
||||
<span class="msg_notice"><span class="icon-info-circled"></span>{$CONST.CHECKSUMS_NOT_FOUND}</span>
|
||||
{else}
|
||||
{if $badsums|count == 0}
|
||||
<span class="msg_success"><span class="icon-ok-circled"></span>{$CONST.CHECKSUMS_PASS}</span>
|
||||
<span class="msg_success"><span class="icon-ok-circled"></span>{$CONST.CHECKSUMS_PASS}</span>
|
||||
{else}
|
||||
<ul class="plainList">
|
||||
{foreach $badsums as $rpath => $calcsum}
|
||||
<li class="msg_error"><span class="icon-attention-circled"></span>{$CONST.CHECKSUM_FAILED|sprintf:$rpath}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<ul class="plainList">
|
||||
{foreach $badsums as $rpath => $calcsum}
|
||||
<li class="msg_error"><span class="icon-attention-circled"></span>{$CONST.CHECKSUM_FAILED|sprintf:$rpath}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if 'siteConfiguration'|checkPermission || 'blogConfiguration'|checkPermission}
|
||||
<section>
|
||||
<section id="maintenance_integrity" class="equal_heights quick_list">
|
||||
<h3>{$CONST.INTEGRITY}</h3>
|
||||
<a class="button_link" href="?serendipity[action]=admin&serendipity[adminModule]=maintenance&serendipity[adminAction]=integrity" title="{$CONST.INTEGRITY}"><span>{$CONST.INTEGRITY}</span></a>
|
||||
|
||||
<a class="button_link" href="?serendipity[action]=admin&serendipity[adminModule]=maintenance&serendipity[adminAction]=integrity" title="{$CONST.INTEGRITY}"><span>{$CONST.INTEGRITY}</span></a> {* i18n *}
|
||||
</section>
|
||||
{/if}
|
||||
{serendipity_hookPlugin hook="backend_maintenance" hookAll="true"}
|
||||
{if 'adminImport'|checkPermission}
|
||||
<section>
|
||||
<section id="maintenance_export" class="equal_heights quick_list">
|
||||
<h3>{$CONST.EXPORT_ENTRIES}</h3>
|
||||
|
||||
<a class="button_link" href="{$serendipityBaseURL}rss.php?version=2.0&all=1"><span class="icon-rss"></span> {$CONST.EXPORT_FEED}</a>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<section id="maintenance_import" class="equal_heights quick_list">
|
||||
<h3>{$CONST.IMPORT_ENTRIES}</h3>
|
||||
|
||||
{$importMenu}
|
||||
@ -38,7 +43,7 @@
|
||||
{/if}
|
||||
|
||||
{if 'adminImagesSync'|checkPermission}
|
||||
<section>
|
||||
<section id="maintenance_thumbs" class="quick_list">
|
||||
<h3>{$CONST.CREATE_THUMBS}</h3>
|
||||
|
||||
<span class="msg_notice"><span class="icon-info-circled"></span> {$CONST.WARNING_THIS_BLAHBLAH|replace:'\\n':'<br>'}</span>
|
||||
@ -71,5 +76,5 @@
|
||||
</form>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
{serendipity_hookPlugin hook="backend_maintenance" hookAll="true"}
|
||||
</div>
|
||||
<script src="{serendipity_getFile file='admin/js/jquery.syncheight.js'}"></script>
|
@ -438,7 +438,8 @@ form > button,
|
||||
.filters_toolbar li,
|
||||
#dashboard_entries .entry_status,
|
||||
.comment_status,
|
||||
.tabs > ul > li {
|
||||
.tabs > ul > li,
|
||||
#maintenance > section > .button_link {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@ -482,6 +483,7 @@ table,
|
||||
details,
|
||||
.standalone,
|
||||
.form_buttons,
|
||||
#maintenance > section > .button_link,
|
||||
form > a,
|
||||
form > button {
|
||||
margin-top: 1.5em;
|
||||
@ -1537,6 +1539,7 @@ form > .button_link:first-of-type,
|
||||
.media_wrap_thumb,
|
||||
.plugins_installable > li,
|
||||
#dashboard > section,
|
||||
#maintenance > section,
|
||||
.serendipity_statistics > section,
|
||||
#login {
|
||||
border: 1px solid #aaa;
|
||||
@ -1564,6 +1567,7 @@ form > .button_link:first-of-type,
|
||||
}
|
||||
|
||||
#dashboard > section > h3,
|
||||
#maintenance > section > h3,
|
||||
.serendipity_statistics > section > h3,
|
||||
#login fieldset > span {
|
||||
background: #ddd;
|
||||
@ -1585,6 +1589,7 @@ form > .button_link:first-of-type,
|
||||
}
|
||||
|
||||
#dashboard > section,
|
||||
#maintenance > section,
|
||||
.serendipity_statistics > section,
|
||||
#login {
|
||||
border-radius: 2px;
|
||||
@ -2589,6 +2594,7 @@ img.mfp-img {
|
||||
#serendipityScaleImg,
|
||||
.media_file,
|
||||
#dashboard > .quick_list,
|
||||
#maintenance > .quick_list,
|
||||
.serendipity_statistics > section,
|
||||
#serendipity_category > div {
|
||||
float: left;
|
||||
@ -2596,7 +2602,8 @@ img.mfp-img {
|
||||
width: 48%;
|
||||
}
|
||||
|
||||
#dashboard > section {
|
||||
#dashboard > section,
|
||||
#maintenance > section {
|
||||
margin: 0 2% 1em 0;
|
||||
}
|
||||
|
||||
@ -2648,7 +2655,8 @@ img.mfp-img {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
#edit_entry_submit label {
|
||||
#edit_entry_submit label,
|
||||
#maintenance_import label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user