diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-23 19:08:29 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-28 02:17:54 +0200 |
commit | 6897bb00979238b80d6aa3ad3741d1856ea81c6a (patch) | |
tree | 3d1837337b3b777c56f752306672fd47531a4a5b | |
parent | acdf9a85a0ff320f55d6eebb2ba7550fea61a5bb (diff) |
Implement word-wrap for package statistics
Word-wrap labels in the package statistics box, just as we wrap package
names in the "Recent Updates" box.
Addresses FS#32160.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r-- | web/html/css/aur.css | 4 | ||||
-rw-r--r-- | web/template/stats/general_stats_table.php | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/web/html/css/aur.css b/web/html/css/aur.css index dada258..bae8e21 100644 --- a/web/html/css/aur.css +++ b/web/html/css/aur.css @@ -10,3 +10,7 @@ #pkg-updates td.pkg-new { padding: 0 .5em; } + +#pkg-stats td.stat-desc { + white-space: normal; +} diff --git a/web/template/stats/general_stats_table.php b/web/template/stats/general_stats_table.php index 6a92c3b..5b59832 100644 --- a/web/template/stats/general_stats_table.php +++ b/web/template/stats/general_stats_table.php @@ -2,35 +2,35 @@ <table> <tr> - <td><?= __("Packages"); ?></td> + <td class="stat-desc"><?= __("Packages"); ?></td> <td><?= $unsupported_count; ?></td> </tr> <tr> - <td><?= __("Orphan Packages"); ?></td> + <td class="stat-desc"><?= __("Orphan Packages"); ?></td> <td><?= $orphan_count; ?></td> </tr> <tr> - <td><?= __("Packages added in the past 7 days"); ?></td> + <td class="stat-desc"><?= __("Packages added in the past 7 days"); ?></td> <td><?= $add_count; ?></td> </tr> <tr> - <td><?= __("Packages updated in the past 7 days"); ?></td> + <td class="stat-desc"><?= __("Packages updated in the past 7 days"); ?></td> <td><?= $update_count; ?></td> </tr> <tr> - <td><?= __("Packages updated in the past year"); ?></td> + <td class="stat-desc"><?= __("Packages updated in the past year"); ?></td> <td><?= $update_year_count; ?></td> </tr> <tr> - <td><?= __("Packages never updated"); ?></td> + <td class="stat-desc"><?= __("Packages never updated"); ?></td> <td><?= $never_update_count; ?></td> </tr> <tr> - <td><?= __("Registered Users"); ?></td> + <td class="stat-desc"><?= __("Registered Users"); ?></td> <td><?= $user_count; ?></td> </tr> <tr> - <td><?= __("Trusted Users"); ?></td> + <td class="stat-desc"><?= __("Trusted Users"); ?></td> <td><?= $tu_count; ?></td> </tr> </table> |