diff options
| author | 2014-09-18 17:39:07 +0200 | |
|---|---|---|
| committer | 2014-09-18 17:39:07 +0200 | |
| commit | 097703f23e6799f9c20d282459c461b0462dc737 (patch) | |
| tree | b851a5c3948bd9b8b744e640a76f2c2a07ca5d85 | |
| parent | 45d2524a821b1bb99ccb5a96608faa90df03db4a (diff) | |
Improve stat design
| -rw-r--r-- | app/views/stats/idle.phtml | 19 | ||||
| -rw-r--r-- | app/views/stats/index.phtml | 46 | ||||
| -rw-r--r-- | app/views/stats/repartition.phtml | 8 | ||||
| -rw-r--r-- | p/themes/Dark/dark.css | 12 | ||||
| -rw-r--r-- | p/themes/Flat/flat.css | 12 | ||||
| -rw-r--r-- | p/themes/Origine/origine.css | 12 | ||||
| -rw-r--r-- | p/themes/Screwdriver/screwdriver.css | 12 | ||||
| -rw-r--r-- | p/themes/base-theme/base.css | 12 | ||||
| -rw-r--r-- | p/themes/base-theme/template.css | 8 |
9 files changed, 109 insertions, 32 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 2ba5237f7..608e2d33c 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -1,6 +1,6 @@ <?php $this->partial('aside_stats'); ?> -<div class="post content"> +<div class="post"> <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a> <h1><?php echo _t('stats_idle'); ?></h1> @@ -12,11 +12,20 @@ <div class="stat"> <h2><?php echo _t($period); ?></h2> - <ul> - <?php foreach ($feeds as $feed) { ?> - <li><a href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>" title="<?php echo date('Y-m-d', $feed['last_date']); ?>"><?php echo $feed['name']; ?></a></li> - <?php } ?> + <form id="form-delete" method="post" style="display: none"></form> + + <?php foreach ($feeds as $feed) { ?> + <ul class="horizontal-list"> + <li class="item"> + <div class="stick"> + <a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('filter'); ?></a> + <a class="btn" href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('administration'); ?></a> + <button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id']); ?>"><?php echo _t('delete'); ?></button> + </div> + </li> + <li class="item"><span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?></span></li> </ul> + <?php } ?> </div> <?php } diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml index a48181fe4..46cdc2a8b 100644 --- a/app/views/stats/index.phtml +++ b/app/views/stats/index.phtml @@ -1,11 +1,11 @@ <?php $this->partial('aside_stats'); ?> -<div class="post content"> +<div class="post"> <a href="<?php echo _url ('index', 'index'); ?>"><?php echo _t ('back_to_rss_feeds'); ?></a> - + <h1><?php echo _t ('stats_main'); ?></h1> - <div class="stat"> + <div class="stat half"> <h2><?php echo _t ('stats_entry_repartition'); ?></h2> <table> <thead> @@ -38,26 +38,9 @@ </tr> </tbody> </table> - </div> - - <div class="stat"> - <h2><?php echo _t ('stats_entry_per_day'); ?></h2> - <div id="statsEntryPerDay" style="height: 300px"></div> - </div> - - <div class="stat"> - <h2><?php echo _t ('stats_feed_per_category'); ?></h2> - <div id="statsFeedPerCategory" style="height: 300px"></div> - <div id="statsFeedPerCategoryLegend"></div> - </div> - - <div class="stat"> - <h2><?php echo _t ('stats_entry_per_category'); ?></h2> - <div id="statsEntryPerCategory" style="height: 300px"></div> - <div id="statsEntryPerCategoryLegend"></div> - </div> - - <div class="stat"> + </div><!-- + + --><div class="stat half"> <h2><?php echo _t ('stats_top_feed'); ?></h2> <table> <thead> @@ -78,6 +61,23 @@ </tbody> </table> </div> + + <div class="stat"> + <h2><?php echo _t ('stats_entry_per_day'); ?></h2> + <div id="statsEntryPerDay" style="height: 300px"></div> + </div> + + <div class="stat half"> + <h2><?php echo _t ('stats_feed_per_category'); ?></h2> + <div id="statsFeedPerCategory" style="height: 300px"></div> + <div id="statsFeedPerCategoryLegend"></div> + </div><!-- + + --><div class="stat half"> + <h2><?php echo _t ('stats_entry_per_category'); ?></h2> + <div id="statsEntryPerCategory" style="height: 300px"></div> + <div id="statsEntryPerCategoryLegend"></div> + </div> </div> <script> diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml index d9dc4c89d..ead275696 100644 --- a/app/views/stats/repartition.phtml +++ b/app/views/stats/repartition.phtml @@ -1,6 +1,6 @@ <?php $this->partial('aside_stats'); ?> -<div class="post content"> +<div class="post "> <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a> <h1><?php echo _t('stats_repartition'); ?></h1> @@ -34,12 +34,12 @@ <div id="statsEntryPerHour" style="height: 300px"></div> </div> - <div class="stat"> + <div class="stat half"> <h2><?php echo _t('stats_entry_per_day_of_week'); ?></h2> <div id="statsEntryPerDayOfWeek" style="height: 300px"></div> - </div> + </div><!-- - <div class="stat"> + --><div class="stat half"> <h2><?php echo _t('stats_entry_per_month'); ?></h2> <div id="statsEntryPerMonth" style="height: 300px"></div> </div> diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index a5c499643..f8051c84a 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -874,6 +874,18 @@ a.btn { border-bottom: 1px solid #333; } +.stat > .horizontal-list { + margin: 0 0 5px; +} +.stat > .horizontal-list .item { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.stat > .horizontal-list .item:first-child { + width: 250px; +} + /*=== LOGS */ /*=========*/ .logs { diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css index e1cf35954..6f9249ecb 100644 --- a/p/themes/Flat/flat.css +++ b/p/themes/Flat/flat.css @@ -861,6 +861,18 @@ a.btn { border-bottom: 1px solid #ddd; } +.stat > .horizontal-list { + margin: 0 0 5px; +} +.stat > .horizontal-list .item { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.stat > .horizontal-list .item:first-child { + width: 250px; +} + /*=== LOGS */ /*=========*/ .logs { diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 4195bc260..208f46265 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -915,6 +915,18 @@ a.btn { border-bottom: 1px solid #ddd; } +.stat > .horizontal-list { + margin: 0 0 5px; +} +.stat > .horizontal-list .item { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.stat > .horizontal-list .item:first-child { + width: 250px; +} + /*=== LOGS */ /*=========*/ .logs { diff --git a/p/themes/Screwdriver/screwdriver.css b/p/themes/Screwdriver/screwdriver.css index 5475d2fd9..c96d4bfe3 100644 --- a/p/themes/Screwdriver/screwdriver.css +++ b/p/themes/Screwdriver/screwdriver.css @@ -1027,6 +1027,18 @@ opacity: 1; box-shadow: 0 1px #fff; } +.stat > .horizontal-list { + margin: 0 0 5px; +} +.stat > .horizontal-list .item { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.stat > .horizontal-list .item:first-child { + width: 250px; +} + /*=== LOGS */ /*=========*/ .logs { diff --git a/p/themes/base-theme/base.css b/p/themes/base-theme/base.css index b49cd79ea..1688a6f79 100644 --- a/p/themes/base-theme/base.css +++ b/p/themes/base-theme/base.css @@ -678,6 +678,18 @@ a.btn { text-align: center; } +.stat > .horizontal-list { + margin: 0 0 5px; +} +.stat > .horizontal-list .item { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.stat > .horizontal-list .item:first-child { + width: 250px; +} + /*=== LOGS */ /*=========*/ .logs { diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 733dd6e02..0f00632ee 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -541,6 +541,14 @@ br + br + br { } /*=== Statistiques */ +.stat { + margin: 15px 0; +} +.stat.half { + display: inline-block; + width: 46%; + padding: 0 2%; +} .stat > table { width: 100%; } |
