summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-11-02 23:55:29 +0100
committerThomas Lange <code@nerdmind.de>2017-11-02 23:55:29 +0100
commit29ead287180d2bc21cc5a5e70298827e1970aee3 (patch)
tree20192bceabf50c60a5f211b7839b53ebb314a686
parent0f2c5a5496cadafaf6b6a20b6f52b654c8291354 (diff)
downloadblog-29ead287180d2bc21cc5a5e70298827e1970aee3.tar.gz
blog-29ead287180d2bc21cc5a5e70298827e1970aee3.tar.xz
blog-29ead287180d2bc21cc5a5e70298827e1970aee3.zip
A new action link has been added to the item overview pages and the CSS was optimized to give them a new look.
-rw-r--r--template/admin/html/page/index.php11
-rw-r--r--template/admin/html/post/index.php11
-rw-r--r--template/admin/html/user/index.php10
-rw-r--r--template/admin/rsrc/main.css15
4 files changed, 31 insertions, 16 deletions
diff --git a/template/admin/html/page/index.php b/template/admin/html/page/index.php
index 1027996..7067c40 100644
--- a/template/admin/html/page/index.php
+++ b/template/admin/html/page/index.php
@@ -1,8 +1,9 @@
-<h1>
- <i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?>
- <a class="brackets" href="<?=Application::getAdminURL("page/insert.php")?>"><?=$Language->text('insert')?></a>
-</h1>
-<p><?=$Language->text('overview_page_desc')?></p>
+<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?></h1>
+<p class="actions-before"><?=$Language->text('overview_page_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=Application::getAdminURL('page/insert.php')?>" title="<?=$Language->text('insert_page')?>"><i class="fa fa-pencil-square-o"></i><?=$Language->text('insert')?></a></li>
+ <li><a href="<?=Application::getAdminURL('page/search.php')?>" title="<?=$Language->text('search_page')?>"><i class="fa fa-search"></i><?=$Language->text('search')?></a></li>
+</ul>
<div class="item-container page">
<?php foreach($LIST['PAGES'] as $page): ?>
diff --git a/template/admin/html/post/index.php b/template/admin/html/post/index.php
index 1ae8471..f884b05 100644
--- a/template/admin/html/post/index.php
+++ b/template/admin/html/post/index.php
@@ -1,8 +1,9 @@
-<h1>
- <i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?>
- <a class="brackets" href="<?=Application::getAdminURL("post/insert.php")?>"><?=$Language->text('insert')?></a>
-</h1>
-<p><?=$Language->text('overview_post_desc')?></p>
+<h1><i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?></h1>
+<p class="actions-before"><?=$Language->text('overview_post_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=Application::getAdminURL('post/insert.php')?>" title="<?=$Language->text('insert_post')?>"><i class="fa fa-pencil-square-o"></i><?=$Language->text('insert')?></a></li>
+ <li><a href="<?=Application::getAdminURL('post/search.php')?>" title="<?=$Language->text('search_post')?>"><i class="fa fa-search"></i><?=$Language->text('search')?></a></li>
+</ul>
<div class="item-container post">
<?php foreach($LIST['POSTS'] as $post): ?>
diff --git a/template/admin/html/user/index.php b/template/admin/html/user/index.php
index e1e24ef..aae8ee8 100644
--- a/template/admin/html/user/index.php
+++ b/template/admin/html/user/index.php
@@ -1,8 +1,8 @@
-<h1>
- <i class="fa fa-user"></i><?=$Language->text('user_overview')?>
- <a class="brackets" href="<?=Application::getAdminURL("user/insert.php")?>"><?=$Language->text('insert')?></a>
-</h1>
-<p><?=$Language->text('overview_user_desc')?></p>
+<h1><i class="fa fa-user"></i><?=$Language->text('user_overview')?></h1>
+<p class="actions-before"><?=$Language->text('overview_user_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=Application::getAdminURL('user/insert.php')?>" title="<?=$Language->text('insert_user')?>"><i class="fa fa-pencil-square-o"></i><?=$Language->text('insert')?></a></li>
+</ul>
<div class="item-container user">
<?php foreach($LIST['USERS'] as $user): ?>
diff --git a/template/admin/rsrc/main.css b/template/admin/rsrc/main.css
index 10dd7f8..ce56474 100644
--- a/template/admin/rsrc/main.css
+++ b/template/admin/rsrc/main.css
@@ -21,7 +21,6 @@ h1 .fa, h2 .fa, h3 .fa, h4 .fa, h5 .fa, h6 .fa{margin-right:0.25rem;}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Headings
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
-h1 > a{float:right;font-size:0.7rem;font-weight:normal;}
h1,h2,h3,h4,h5,h6{margin:0;text-transform:uppercase;}
h1{font-size:0.80rem;}h2{font-size:0.70rem;}
h3{font-size:0.65rem;}h4{font-size:0.60rem;}
@@ -97,6 +96,15 @@ body{font-family:Ruda,sans-serif;font-size:0.7rem;line-height:1.2rem;}
#site-navi a:hover,#site-navi a:focus{background:#CCC;}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
+/* Actions
+/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
+.actions{margin:0 0 0.5rem 0;padding:0;list-style:none;font-size:0.6rem;float:right;text-align:center;}
+.actions .fa{margin-right:0.1rem;}
+.actions li{display:inline-block;font-weight:bold;background:#EEE;border:0.05rem solid #AAA;}
+.actions a{color:inherit;display:block;padding:0 0.25rem;}
+.actions-before{float:left;}
+
+/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Elements
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
pre{margin-bottom:1rem;overflow:auto;-moz-tab-size:4;tab-size:4;}
@@ -283,6 +291,11 @@ label:after{content:":";}
#main-navi a{padding:0.5rem;}
.flex-emoticons{display:none;}
+
+ .actions{float:none;display:flex;width:100%;flex-grow:1;justify-content:center;overflow:hidden;box-sizing:border-box;}
+ .actions li{flex-grow:1;}
+ .actions li + li{border-left:none;}
+ .actions-before{float:none;}
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/