|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2007-07-28 02:11:15
Author: grafik
Date: 2007-07-28 02:11:14 EDT (Sat, 28 Jul 2007)
New Revision: 7571
URL: http://svn.boost.org/trac/boost/changeset/7571
Log:
Style the IRC stats.
Text files modified:
website/public_html/beta/common/code/boost_irc_stats.php | 20 +++++++
website/public_html/beta/community/irc_stats_ibd.php | 22 +++++--
website/public_html/beta/style/css_0/section-community.css | 108 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 141 insertions(+), 9 deletions(-)
Modified: website/public_html/beta/common/code/boost_irc_stats.php
==============================================================================
--- website/public_html/beta/common/code/boost_irc_stats.php (original)
+++ website/public_html/beta/common/code/boost_irc_stats.php 2007-07-28 02:11:14 EDT (Sat, 28 Jul 2007)
@@ -129,6 +129,8 @@
preg_match('@<body>@i',$text,$body_begin,PREG_OFFSET_CAPTURE);
preg_match('@</body>@i',$text,$body_end,PREG_OFFSET_CAPTURE);
+ //~ preg_match('@<div align="center">@i',$text,$body_begin,PREG_OFFSET_CAPTURE);
+ //~ preg_match('@</div>\s+</body>@i',$text,$body_end,PREG_OFFSET_CAPTURE);
if (!isset($body_begin[0]))
{
return;
@@ -146,11 +148,27 @@
}
$text = preg_replace(
+ '@src="[^/]+/([^"\s]*)\.png"@i',
+ 'class="irc-stats-${1}" src="/gfx/space.png"',
+ $text );
+ $text = preg_replace(
+ '@>([0-9]+)(\.[0-9]+)?%(<br />)?<@i',
+ '><span class="irc-stats-percent">${1}<span class="irc-stats-decimal">${2}%</span></span><',
+ $text );
+ $text = preg_replace(
'@<[/]?(font|hr)[^>]*>@i',
'',
$text );
$text = preg_replace(
- '@[\s]+(border|cellpadding|cellspacing|width|height|valign|align|frame|rules|naturalsizeflag|background|wrap)=[^\s>]+@i',
+ '@<td> </td>@i',
+ '<td class="empty"> </td>',
+ $text );
+ $text = preg_replace(
+ '@[\s]+(border|cellpadding|cellspacing|valign|align|frame|rules|naturalsizeflag|background|wrap)=[^\s>]+@i',
+ '',
+ $text );
+ $text = preg_replace(
+ '@[\s]+width="?(100%|710|520|714)"?@i',
'',
$text );
Modified: website/public_html/beta/community/irc_stats_ibd.php
==============================================================================
--- website/public_html/beta/community/irc_stats_ibd.php (original)
+++ website/public_html/beta/community/irc_stats_ibd.php 2007-07-28 02:11:14 EDT (Sat, 28 Jul 2007)
@@ -11,7 +11,7 @@
<head>
<?php $_irc->content_head(); ?>
<link rel="icon" href="/favicon.ico" type="image/ico" />
- <link rel="stylesheet" type="text/css" href="/style/section-doc.css" />
+ <link rel="stylesheet" type="text/css" href="/style/section-community.css" />
<!--[if IE]> <style type="text/css"> body { behavior: url(/style/csshover.htc); } </style> <![endif]-->
</head>
@@ -21,13 +21,19 @@
</div>
<div id="body">
- <div class="section section-0" id="content">
- <div class="section-title">
- <h1>Boost C++ Libraries - IRC Stats (#ibd)</h1>
- </div>
-
- <div class="section-body">
- <?php $_irc->content(); ?>
+ <div id="body-inner">
+ <div id="content">
+ <div class="section" id="intro">
+ <div class="section-0">
+ <div class="section-title">
+ <h1>Boost C++ Libraries - IRC Stats (#ibd)</h1>
+ </div>
+
+ <div class="section-body" id="irc-stats">
+ <?php $_irc->content(); ?>
+ </div>
+ </div>
+ </div>
</div>
</div>
Modified: website/public_html/beta/style/css_0/section-community.css
==============================================================================
--- website/public_html/beta/style/css_0/section-community.css (original)
+++ website/public_html/beta/style/css_0/section-community.css 2007-07-28 02:11:14 EDT (Sat, 28 Jul 2007)
@@ -17,3 +17,111 @@
margin-left: 0px !important;
margin-right: 0px !important;
}
+
+#content #irc-stats table {
+}
+#content #irc-stats table td {
+ background-color: transparent !important;
+}
+#content #irc-stats table td.tdtop {
+ background-color: #eeeeee !important;
+ text-align: center;
+}
+#content #irc-stats table td.tdtop * {
+ font-weight: bold;
+}
+#content #irc-stats table td.headlinebg {
+ border: none !important;
+}
+#content #irc-stats table td.headtext {
+ border: none !important;
+ font-weight: bold !important;
+}
+#content #irc-stats table td.asmall,
+#content #irc-stats table td.rankc10center,
+#content #irc-stats table td.hirankc10center {
+ border: none !important;
+ padding: 0em !important;
+ width: 17px;
+ text-align: center;
+ /* overflow: visible; */
+ white-space: nowrap;
+}
+#content #irc-stats table td.asmall {
+ vertical-align: bottom;
+}
+#content #irc-stats table td.rankc10center {
+ vertical-align: center;
+ font-size: 80%;
+}
+#content #irc-stats table td.hirankc10center {
+ vertical-align: center;
+ font-weight: bold;
+ font-size: 95%;
+}
+#content #irc-stats table td.empty,
+#content #irc-stats table td.rankc,
+#content #irc-stats table td.hirankc {
+ text-align: right !important;
+ border: none !important;
+ font-size: 80%;
+}
+#content #irc-stats table td.hirankc {
+ font-size: 95%;
+ font-weight: bold;
+}
+#content #irc-stats .irc-stats-percent {
+ display: block;
+ font-size: 90%;
+}
+#content #irc-stats .irc-stats-percent .irc-stats-decimal {
+ display: block;
+ font-size: 75%;
+}
+#content #irc-stats img {
+ border: none;
+ margin: 0px !important;
+ padding: 0px !important;
+}
+#content #irc-stats img.irc-stats-blue-v {
+ border: 1px solid #0000CC;
+}
+#content #irc-stats img.irc-stats-green-v {
+ border: 1px solid #00AA00;
+}
+#content #irc-stats img.irc-stats-yellow-v {
+ border: 1px solid #AAAA00;
+}
+#content #irc-stats img.irc-stats-red-v {
+ border: 1px solid #CC0000;
+}
+#content #irc-stats img.irc-stats-red-v,
+#content #irc-stats img.irc-stats-blue-v,
+#content #irc-stats img.irc-stats-green-v,
+#content #irc-stats img.irc-stats-yellow-v,
+#content #irc-stats img.irc-stats-red-v {
+ width: 15px;
+ border-top-width: 4px;
+}
+#content #irc-stats img.irc-stats-blue-h {
+ background: #0000CC;
+}
+#content #irc-stats img.irc-stats-green-h {
+ background: #00AA00;
+}
+#content #irc-stats img.irc-stats-yellow-h {
+ background: #AAAA00;
+}
+#content #irc-stats img.irc-stats-red-h {
+ background: #CC0000;
+}
+#content #irc-stats img.irc-stats-red-h,
+#content #irc-stats img.irc-stats-blue-h,
+#content #irc-stats img.irc-stats-green-h,
+#content #irc-stats img.irc-stats-yellow-h,
+#content #irc-stats img.irc-stats-red-h {
+ height: 4px;
+ margin: 1px !important;
+ border-top: 1px solid #AAAAAA;
+ border-bottom: 1px solid #AAAAAA;
+}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk