<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[116825] branches/gsoc11-statistics/stats-server</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/116825">116825</a></dd>
<dt>Author</dt> <dd>cal@macports.org</dd>
<dt>Date</dt> <dd>2014-02-07 17:57:57 -0800 (Fri, 07 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>macports stat: use macports colors and css</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchesgsoc11statisticsstatsserverappviewscategoriesindexhtmlerb">branches/gsoc11-statistics/stats-server/app/views/categories/index.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewshomeindexhtmlerb">branches/gsoc11-statistics/stats-server/app/views/home/index.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewsinstalled_portsindexhtmlerb">branches/gsoc11-statistics/stats-server/app/views/installed_ports/index.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewslayoutsapplicationhtmlerb">branches/gsoc11-statistics/stats-server/app/views/layouts/application.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewsos_statisticsindexhtmlerb">branches/gsoc11-statistics/stats-server/app/views/os_statistics/index.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewspartials_chart_drawhtmlerb">branches/gsoc11-statistics/stats-server/app/views/partials/_chart_draw.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewspartials_port_searchhtmlerb">branches/gsoc11-statistics/stats-server/app/views/partials/_port_search.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewsportsindexhtmlerb">branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverappviewsportsshowhtmlerb">branches/gsoc11-statistics/stats-server/app/views/ports/show.html.erb</a></li>
<li><a href="#branchesgsoc11statisticsstatsserverpublicstylesheetsscaffoldcss">branches/gsoc11-statistics/stats-server/public/stylesheets/scaffold.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchesgsoc11statisticsstatsserverappviewscategoriesindexhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/categories/index.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/categories/index.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/categories/index.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,19 +1,14 @@
</span><del>-&lt;div id=&quot;content&quot;&gt;
</del><ins>+&lt;%= render :partial =&gt; '/partials/port_search' %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;%= render :partial =&gt; '/partials/port_search' %&gt;
-
-  &lt;h3&gt;Port Categories&lt;/h3&gt;
-
-  &lt;div id=&quot;categories&quot;&gt;
-
-  &lt;% unless @categories.empty? %&gt;
-    &lt;ul&gt;
-      &lt;% @categories.each do |category| %&gt;
-        &lt;li&gt;&lt;%= link_to category.name, category_ports_path(category.id) %&gt;&lt;/li&gt;
-      &lt;% end %&gt;
-    &lt;/ul&gt;
-  &lt;% else %&gt;
-    &lt;p&gt;No Categories found.&lt;/p&gt;
-  &lt;% end %&gt;
-  &lt;/div&gt;
-&lt;/div&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;h2&gt;Port Categories&lt;/h2&gt;
+&lt;div id=&quot;categories&quot;&gt;
+        &lt;% unless @categories.empty? %&gt;
+                &lt;ul&gt;
+                        &lt;% @categories.each do |category| %&gt;
+                                &lt;li&gt;&lt;%= link_to category.name, category_ports_path(category.id) %&gt;&lt;/li&gt;
+                        &lt;% end %&gt;
+                &lt;/ul&gt;
+        &lt;% else %&gt;
+                &lt;p&gt;No categories found.&lt;/p&gt;
+        &lt;% end %&gt;
+&lt;/div&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewshomeindexhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/home/index.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/home/index.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/home/index.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,25 +1,11 @@
</span><del>-&lt;% controller.set_chart_title :participating_users, 'Number of Participating Users' %&gt;
-&lt;% controller.set_chart_type  :participating_users, &quot;LineChart&quot; %&gt;
-&lt;h1&gt;MacPorts Statistics&lt;/h1&gt;
-
-&lt;ul&gt;
-        &lt;li&gt; &lt;%= link_to &quot;User System Information&quot;, os_statistics_path %&gt; &lt;/li&gt;
-        &lt;li&gt; &lt;%= link_to &quot;User Installed Ports&quot;, installed_ports_path %&gt; &lt;/li&gt;
-&lt;/ul&gt;
-
-Total number of participating users: &lt;%= User.count %&gt; &lt;br /&gt;
-Number of users last month (&lt;%= @last_month %&gt;): &lt;%= @users_last_month %&gt; &lt;br /&gt;
-
-
</del><span class="cx"> &lt;%= render :partial =&gt; '/partials/port_search' %&gt;
</span><del>-&lt;%= link_to &quot;Browse By Category&quot;, categories_path %&gt; &lt;/li&gt;
</del><span class="cx"> 
</span><del>-&lt;br /&gt;
</del><ins>+&lt;div id=&quot;metastatistics&quot;&gt;
+        &lt;h2&gt;Participating Users&lt;/h2&gt;
</ins><span class="cx"> 
</span><del>-&lt;%# Draw charts - no tables %&gt;
-&lt;%= render :partial =&gt; '/partials/chart_draw', 
-    :locals =&gt; {:charts =&gt; [:participating_users], :drawtables =&gt; false} 
-%&gt;
-
-
-
</del><ins>+        &lt;p&gt;Our statistics know about &lt;strong&gt;&lt;%= User.count %&gt;&lt;/strong&gt; users in total. Last month (&lt;%= @last_month %&gt;), &lt;strong&gt;&lt;%= @users_last_month %&gt;&lt;/strong&gt; users have submitted statistics.&lt;/p&gt;
+        
+        &lt;% controller.set_chart_title :participating_users, 'Participating Users' %&gt;
+        &lt;% controller.set_chart_type  :participating_users, &quot;LineChart&quot; %&gt;
+        &lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; [:participating_users], :drawtables =&gt; false, :headers =&gt; false} %&gt;
+&lt;/div&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewsinstalled_portsindexhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/installed_ports/index.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/installed_ports/index.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/installed_ports/index.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,33 +1,22 @@
</span><del>-&lt;% controller.set_chart_title :top25, 'Most popular ports this month' %&gt;
-&lt;% controller.set_chart_type  :top25, &quot;BarChart&quot; %&gt;
</del><ins>+&lt;h2&gt;Port Statistics&lt;/h2&gt;
+&lt;p&gt;The statistics server currently knows about &lt;%= Port.count %&gt; ports. On average, each participating user has &lt;strong&gt;&lt;%= @average_ports %&gt;&lt;/strong&gt; of them installed.&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-&lt;h1&gt;Port Statistics&lt;/h1&gt;
-
-Participating users: &lt;%= User.count %&gt; &lt;br /&gt;
-Number of ports: &lt;%= Port.count %&gt; &lt;br /&gt;
-Average number of ports installed per user: &lt;%= @average_ports %&gt;&lt;br /&gt;
-
-&lt;br /&gt;
</del><ins>+&lt;% unless @popular_port_month.nil? &amp;&amp; @popular_port_year.nil? %&gt;
+&lt;h3&gt;Popular Ports&lt;/h3&gt;
+&lt;% end %&gt;
</ins><span class="cx"> &lt;%# Most popular port this month %&gt;
</span><span class="cx"> &lt;% unless @popular_port_month.nil? %&gt;
</span><del>-  &lt;% port = @popular_port_month %&gt;
-  Most popular port this month (&lt;%= @month %&gt;) is &lt;%= link_to port.name, category_port_path(port.category, port) %&gt;
-  with &lt;%= @popular_port_month_count %&gt; installs. &lt;br /&gt;
</del><ins>+        &lt;% port = @popular_port_month %&gt;
+        &lt;p&gt;Most popular port this month (&lt;%= @month %&gt;) is &lt;strong&gt;&lt;%= link_to port.name, category_port_path(port.category, port) %&gt;&lt;/strong&gt; with &lt;strong&gt;&lt;%= @popular_port_month_count %&gt;&lt;/strong&gt; installs.&lt;/p&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Most popular port this year %&gt;
</span><span class="cx"> &lt;% unless @popular_port_year.nil? %&gt;
</span><del>-  &lt;% port = @popular_port_year %&gt;
-  Most popular port this year (&lt;%= @year %&gt;) is &lt;%= link_to port.name, category_port_path(port.category, port) %&gt;
-  with &lt;%= @popular_port_year_count %&gt; installs. &lt;br /&gt;
</del><ins>+        &lt;% port = @popular_port_year %&gt;
+        &lt;p&gt;Most popular port this year (&lt;%= @year %&gt;) is &lt;strong&gt;&lt;%= link_to port.name, category_port_path(port.category, port) %&gt;&lt;/strong&gt; with &lt;strong&gt;&lt;%= @popular_port_year_count %&gt;&lt;/strong&gt; installs.&lt;/p&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><del>-&lt;br /&gt;
-
</del><span class="cx"> &lt;%# Draw chart  %&gt;
</span><del>-&lt;%= render :partial =&gt; '/partials/chart_draw', 
-    :locals =&gt; {:charts =&gt; [:top25],
-                :chart_width =&gt; 1000,
-                :chart_height =&gt; 1000} 
-%&gt;
-
</del><ins>+&lt;% controller.set_chart_title :top25, '25 top ports this month' %&gt;
+&lt;% controller.set_chart_type  :top25, &quot;BarChart&quot; %&gt;
+&lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; [:top25], :chart_height =&gt; 850, :headers =&gt; true} %&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewslayoutsapplicationhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/layouts/application.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/layouts/application.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/layouts/application.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -9,6 +9,40 @@
</span><span class="cx">                 &lt;%= render_visualizations %&gt;
</span><span class="cx">         &lt;/head&gt;
</span><span class="cx">         &lt;body&gt;
</span><del>-                &lt;%= yield %&gt;
</del><ins>+                &lt;h1&gt;
+                        &lt;a href=&quot;//www.macports.org/&quot; title=&quot;The MacPorts Project&quot; class=&quot;title&quot;&gt;
+                                &lt;span class=&quot;accessibility&quot;&gt;The MacPorts Project&lt;/span&gt;
+                        &lt;/a&gt;
+                        &lt;a href=&quot;/&quot; title=&quot;MacPorts Project Statistics&quot; class=&quot;subtitle&quot;&gt;Statistics&lt;/a&gt;
+                &lt;/h1&gt;
+                &lt;p class=&quot;accessibility&quot;&gt;
+                        &lt;a href=&quot;#content&quot;&gt;Skip to Content&lt;/a&gt;
+                &lt;/p&gt;
+                &lt;div id=&quot;header&quot;&gt;
+                &lt;/div&gt;
+                &lt;div id=&quot;navigation&quot;&gt;
+                        &lt;dl&gt;
+                                &lt;dt&gt;Statistics&lt;/dt&gt;
+                                &lt;dd&gt;
+                                        &lt;ul&gt;
+                                                &lt;li&gt;&lt;%= link_to &quot;Home&quot;, root_path %&gt;&lt;/li&gt;
+                                                &lt;li&gt;&lt;%= link_to &quot;System&quot;, os_statistics_path %&gt;&lt;/li&gt;
+                                                &lt;li&gt;&lt;%= link_to &quot;Installed Ports&quot;, installed_ports_path %&gt;&lt;/li&gt;
+                                        &lt;/ul&gt;
+                                &lt;/dd&gt;
+                                &lt;dt&gt;Browse Ports&lt;/dt&gt;
+                                &lt;dd&gt;
+                                        &lt;ul&gt;
+                                                &lt;li&gt;&lt;%= link_to &quot;By Category&quot;, categories_path %&gt;&lt;/li&gt;
+                                                &lt;li&gt;&lt;%= link_to &quot;Complete List&quot;, ports_path %&gt;&lt;/li&gt;
+                                        &lt;/ul&gt;
+                                &lt;/dd&gt;
+                        &lt;/dl&gt;
+                &lt;/div&gt;
+                &lt;div id=&quot;content&quot;&gt;
+                        &lt;%= yield %&gt;
+                &lt;/div&gt;
+                &lt;div id=&quot;footer&quot;&gt;
+                &lt;/div&gt;
</ins><span class="cx">         &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewsos_statisticsindexhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/os_statistics/index.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/os_statistics/index.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/os_statistics/index.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -9,11 +9,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;%# All these charts are pie charts - set :type to PieChart %&gt;
</span><span class="cx"> &lt;% @charts.each do |chart_name, chartdata| %&gt;
</span><del>-  &lt;% controller.set_chart_type chart_name, &quot;PieChart&quot; %&gt;
</del><ins>+        &lt;% controller.set_chart_type chart_name, &quot;PieChart&quot; %&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><del>-&lt;br /&gt;
-
</del><span class="cx"> &lt;%# Order the charts %&gt;
</span><span class="cx"> &lt;% ordered_charts = [:macports_version, 
</span><span class="cx">                      :osx_version, 
</span><span class="lines">@@ -23,16 +21,13 @@
</span><span class="cx">                      :gcc_version,
</span><span class="cx">                      :xcode_version] %&gt;
</span><span class="cx"> 
</span><del>-&lt;h1&gt; Operating System Statistics &lt;/h1&gt;
-
</del><ins>+&lt;h2&gt;System Statistics&lt;/h2&gt;
</ins><span class="cx"> &lt;%# Generate links %&gt;
</span><del>-&lt;ul&gt;
-&lt;% ordered_charts.each do |chart|  %&gt;
-&lt;li&gt; &lt;%= link_to controller.chart_title(chart), :anchor =&gt; chart %&gt; &lt;/li&gt;
-&lt;% end %&gt;
-&lt;/ul&gt;
</del><ins>+        &lt;ul&gt;
+                &lt;% ordered_charts.each do |chart|  %&gt;
+                        &lt;li&gt;&lt;%= link_to controller.chart_title(chart), :anchor =&gt; chart %&gt;&lt;/li&gt;
+                &lt;% end %&gt;
+        &lt;/ul&gt;
</ins><span class="cx"> 
</span><del>-&lt;br /&gt;
-
</del><span class="cx"> &lt;%# Draw charts %&gt;
</span><del>-&lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; ordered_charts} %&gt;
</del><ins>+&lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; ordered_charts, :headers =&gt; true} %&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewspartials_chart_drawhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/partials/_chart_draw.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/partials/_chart_draw.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/partials/_chart_draw.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;%# Set Defaults %&gt;
</span><span class="cx"> &lt;% drawtables_default = true %&gt;
</span><del>-&lt;% chart_width_default = 600 %&gt;
</del><ins>+&lt;% headers_default = true %&gt;
+&lt;% chart_width_default = 700 %&gt;
</ins><span class="cx"> &lt;% chart_height_default = 400 %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Check if locals have been passed to this partial %&gt;
</span><span class="lines">@@ -8,67 +9,65 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Avoid nil objects  %&gt;
</span><span class="cx"> &lt;% if (defined? charts).nil? %&gt;  
</span><del>-  &lt;% charts = Hash.new %&gt;
</del><ins>+        &lt;% charts = Hash.new %&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Draw tables as well as visualizations? %&gt;
</span><span class="cx"> &lt;% if (defined? drawtables).nil? %&gt;
</span><del>-  &lt;% drawtables = drawtables_default %&gt;
</del><ins>+        &lt;% drawtables = drawtables_default %&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><ins>+&lt;%# Write headers? %&gt;
+&lt;% if (defined? headers).nil? %&gt;
+        &lt;% headers = headers_default %&gt;
+&lt;% end %&gt;
+
</ins><span class="cx"> &lt;%# Get chart width %&gt;
</span><span class="cx"> &lt;% if (defined? chart_width).nil? %&gt;
</span><del>-  &lt;% chart_width = chart_width_default %&gt;
</del><ins>+        &lt;% chart_width = chart_width_default %&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Get chart height %&gt;
</span><span class="cx"> &lt;% if (defined? chart_height).nil? %&gt;
</span><del>-  &lt;% chart_height = chart_height_default %&gt;
</del><ins>+        &lt;% chart_height = chart_height_default %&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;%# Set visualization options %&gt;
</span><del>-&lt;% vis_options = {:width =&gt; chart_width, 
-                  :height =&gt; chart_height, 
-                  :html =&gt; {:class =&gt; &quot;graph_chart&quot;}} 
-%&gt;
-
</del><ins>+&lt;% vis_options = {:width =&gt; chart_width, :height =&gt; chart_height, :backgroundColor =&gt; '#ededed', :fontName =&gt; 'Helvetica', :html =&gt; {:class =&gt; &quot;graph_chart&quot;}} %&gt;
</ins><span class="cx"> &lt;%# Set table options %&gt;
</span><del>-&lt;% tbl_options = {:width =&gt; 600, 
-                  :html =&gt; {:class =&gt; &quot;graph_chart&quot;}} 
-%&gt;
</del><ins>+&lt;% tbl_options = {:width =&gt; 700, :html =&gt; {:class =&gt; &quot;graph_chart&quot;}} %&gt;
</ins><span class="cx"> 
</span><del>-
</del><span class="cx"> &lt;%# Draw charts %&gt;
</span><span class="cx"> &lt;% charts.each do |chart| %&gt;
</span><del>-  &lt;% title = controller.chart_title chart %&gt;
-  &lt;% type = controller.chart_type chart %&gt;
</del><ins>+        &lt;% title = controller.chart_title chart %&gt;
+        &lt;% type = controller.chart_type chart %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;%# Set titles %&gt;
-  &lt;!-- Chart title: &lt;%= title %&gt; --&gt;
-  &lt;% local_vis_options = vis_options.merge({ :title =&gt; title }) %&gt;
-  &lt;% local_tbl_options = tbl_options.merge({ :title =&gt; title }) %&gt;
</del><ins>+        &lt;%# Set titles %&gt;
+        &lt;!-- Chart title: &lt;%= title %&gt; --&gt;
+        &lt;% local_vis_options = vis_options.merge({ :title =&gt; title }) %&gt;
+        &lt;% local_tbl_options = tbl_options.merge({ :title =&gt; title }) %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;%# Anchor %&gt;
-  &lt;a name=&lt;%= chart %&gt;&gt; &lt;/a&gt;
-  &lt;%# Title %&gt;
-  &lt;h2&gt; &lt;%= title %&gt; &lt;/h2&gt;

</del><ins>+        &lt;%# Anchor %&gt;
+        &lt;a name=&lt;%= chart %&gt;&gt; &lt;/a&gt;
+        &lt;%# Title %&gt;
+        &lt;% if headers %&gt;
+                &lt;h3&gt;&lt;%= title %&gt;&lt;/h3&gt;
+        &lt;% end %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;% if not controller.dataset_empty? chart %&gt;
-    &lt;%# Draw visualization %&gt;
-    &lt;% visualization chart.to_s, type, local_vis_options do |viz| %&gt;
-      &lt;% controller.populate_chart chart, viz %&gt;
-    &lt;% end %&gt;
-    
-    &lt;% if drawtables %&gt;
-      &lt;%# Draw table %&gt;
-      &lt;% table = chart.to_s + &quot;_table&quot; %&gt;
-      &lt;% visualization table, &quot;Table&quot;, local_tbl_options do |viz| %&gt;
-        &lt;% controller.populate_chart chart, viz %&gt;
-        &lt;% end %&gt;
-    &lt;% end %&gt;
-    
-  &lt;% else %&gt;
-    No data to display
-  &lt;% end %&gt;  
</del><ins>+        &lt;% if not controller.dataset_empty? chart %&gt;
+                &lt;%# Draw visualization %&gt;
+                &lt;% visualization chart.to_s, type, local_vis_options do |viz| %&gt;
+                        &lt;% controller.populate_chart chart, viz %&gt;
+                &lt;% end %&gt;
+
+                &lt;% if drawtables %&gt;
+                        &lt;%# Draw table %&gt;
+                        &lt;% table = chart.to_s + &quot;_table&quot; %&gt;
+                        &lt;% visualization table, &quot;Table&quot;, local_tbl_options do |viz| %&gt;
+                                &lt;% controller.populate_chart chart, viz %&gt;
+                        &lt;% end %&gt;
+                &lt;% end %&gt;
+        &lt;% else %&gt;
+                &lt;p class=&quot;no-data&quot;&gt;No data to display.&lt;/p&gt;
+        &lt;% end %&gt;  
</ins><span class="cx"> &lt;% end %&gt;
</span></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewspartials_port_searchhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/partials/_port_search.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/partials/_port_search.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/partials/_port_search.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,16 +1,11 @@
</span><del>-&lt;h2 class=&quot;hdr&quot;&gt;MacPorts Portfiles&lt;/h2&gt; 
-
-
-
-&lt;br /&gt;
-
-&lt;p&gt;
-  &lt;%= form_tag(search_generate_path, {:method =&gt; :get}) do %&gt;
-    &lt;%= select_tag :criteria, options_for_select({&quot;Software Title&quot; =&gt; &quot;name&quot;, &quot;Category&quot; =&gt; &quot;categories&quot;, &quot;Maintainer&quot; =&gt; &quot;maintainers&quot;, &quot;variant&quot; =&gt; &quot;variants&quot;, &quot;Platform&quot; =&gt; &quot;platforms&quot;}) %&gt;
-    &lt;%= text_field_tag :val, &quot;&quot;, {:size =&gt; 40} %&gt;
-    &lt;%= submit_tag &quot;Search&quot; %&gt;
-  &lt;% end %&gt;
-&lt;/p&gt;
-
-&lt;p&gt;Or view the complete &lt;%= link_to &quot;ports list (#{Port.count} ports)&quot;, ports_path %&gt;.&lt;/p&gt; 
-&lt;br /&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;div class=&quot;port-search&quot;&gt;
+        &lt;h2&gt;Search for Port Statistics&lt;/h2&gt; 
+        &lt;p&gt;
+                &lt;%= form_tag(search_generate_path, {:method =&gt; :get}) do %&gt;
+                        &lt;%= select_tag :criteria, options_for_select({&quot;Software Title&quot; =&gt; &quot;name&quot;, &quot;Category&quot; =&gt; &quot;categories&quot;, &quot;Maintainer&quot; =&gt; &quot;maintainers&quot;, &quot;variant&quot; =&gt; &quot;variants&quot;, &quot;Platform&quot; =&gt; &quot;platforms&quot;}) %&gt;
+                        &lt;%= text_field_tag :val, &quot;&quot;, {:size =&gt; 40} %&gt;
+                        &lt;%= submit_tag &quot;Search&quot; %&gt;
+                &lt;% end %&gt;
+        &lt;/p&gt;
+        &lt;p&gt;Or view the complete &lt;%= link_to &quot;port list (#{Port.count} ports)&quot;, ports_path %&gt;. You can also &lt;%= link_to &quot;browse by category&quot;, categories_path %&gt;.&lt;/p&gt; 
+&lt;/div&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewsportsindexhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/ports/index.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,47 +1,33 @@
</span><del>-&lt;div id=&quot;content&quot;&gt;
-  &lt;%= render :partial =&gt; '/partials/port_search' %&gt;
</del><ins>+&lt;%= render :partial =&gt; '/partials/port_search' %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;h3&gt;Query Results&lt;/h3&gt;
-
</del><ins>+&lt;h2&gt;Query Results&lt;/h2&gt;
</ins><span class="cx"> &lt;% unless @ports.empty? %&gt;
</span><del>-  &lt;p&gt;
-    &lt;%= ((@page.to_i - 1) * 50) + 1 %&gt; - &lt;%= @page.to_i * 50 %&gt; of &lt;%= Port.count %&gt; Portfiles Selected
-  &lt;/p&gt;
-  &lt;p&gt;
-    &lt;%= will_paginate @ports %&gt;
-  &lt;/p&gt;
</del><ins>+        &lt;p&gt;&lt;strong&gt;&lt;%= ((@page.to_i - 1) * 50) + 1 %&gt;&lt;/strong&gt; - &lt;strong&gt;&lt;%= @page.to_i * 50 %&gt;&lt;/strong&gt; of &lt;%= Port.count %&gt; Portfiles selected&lt;/p&gt;
+        &lt;p&gt;&lt;%= will_paginate @ports %&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-  &lt;% @ports.each do |port| %&gt;
-    &lt;dl&gt;
-      &lt;dt&gt;&lt;b&gt;&lt;%= link_to port.name, category_port_path(port.category, port) %&gt;&lt;/b&gt; &lt;%= port.version %&gt;&lt;/dt&gt;
-      &lt;dd&gt;
-        &lt;% unless port.description.nil? %&gt;
-          &lt;%= port.description %&gt;&lt;br /&gt;
-        &lt;% end %&gt;
-
-        &lt;% unless port.maintainers.nil? %&gt;
-          &lt;i&gt;Maintained by:&lt;/i&gt; &lt;b&gt;&lt;span class=&quot;email&quot;&gt;&lt;%= port.maintainers %&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;
-        &lt;% end %&gt;
-
-        &lt;% unless port.categories.nil? %&gt;
-          &lt;i&gt;Categories:&lt;/i&gt; &lt;%= print_search_links(port, &quot;categories&quot;) %&gt;&lt;br /&gt;
-        &lt;% end %&gt;
-
-        &lt;% unless port.platforms.nil? %&gt;
-          &lt;i&gt;Platforms:&lt;/i&gt; &lt;%= print_search_links(port, &quot;platforms&quot;) %&gt;&lt;br /&gt;
-        &lt;% end %&gt;
-
-        &lt;% unless port.variants.nil? %&gt;
-          &lt;i&gt;Variants:&lt;/i&gt; &lt;%= print_search_links(port, &quot;variants&quot;) %&gt;
-        &lt;% end %&gt;
-      &lt;/dd&gt;
-    &lt;/dl&gt;
-  &lt;% end %&gt;
</del><ins>+        &lt;% @ports.each do |port| %&gt;
+                &lt;dl&gt;
+                        &lt;dt&gt;&lt;strong&gt;&lt;%= link_to port.name, category_port_path(port.category, port) %&gt;&lt;/strong&gt; &lt;%= port.version %&gt;&lt;/dt&gt;
+                        &lt;dd&gt;
+                                &lt;% unless port.description.nil? %&gt;
+                                        &lt;p&gt;&lt;%= port.description %&gt;&lt;/p&gt;
+                                &lt;% end %&gt;
+                                &lt;% unless port.maintainers.nil? %&gt;
+                                        &lt;i&gt;Maintained by:&lt;/i&gt; &lt;span class=&quot;email&quot;&gt;&lt;%= port.maintainers %&gt;&lt;/span&gt;&lt;br /&gt;
+                                &lt;% end %&gt;
+                                &lt;% unless port.categories.nil? %&gt;
+                                        &lt;i&gt;Categories:&lt;/i&gt; &lt;%= print_search_links(port, &quot;categories&quot;) %&gt;&lt;br /&gt;
+                                &lt;% end %&gt;
+                                &lt;% unless port.platforms.nil? %&gt;
+                                        &lt;i&gt;Platforms:&lt;/i&gt; &lt;%= print_search_links(port, &quot;platforms&quot;) %&gt;&lt;br /&gt;
+                                &lt;% end %&gt;
+                                &lt;% unless port.variants.nil? %&gt;
+                                        &lt;i&gt;Variants:&lt;/i&gt; &lt;%= print_search_links(port, &quot;variants&quot;) %&gt;
+                                &lt;% end %&gt;
+                        &lt;/dd&gt;
+                &lt;/dl&gt;
+        &lt;% end %&gt;
+        &lt;p&gt;&lt;%= will_paginate @ports %&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;% else %&gt;
</span><del>-  &lt;p&gt;No ports found.&lt;/p&gt;
</del><ins>+        &lt;p class=&quot;no-data&quot;&gt;No ports matched your query.&lt;/p&gt;
</ins><span class="cx"> &lt;% end %&gt;
</span><del>-
-  &lt;p&gt;
-    &lt;%= will_paginate @ports %&gt;
-  &lt;/p&gt;
-&lt;/div&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverappviewsportsshowhtmlerb"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/app/views/ports/show.html.erb (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/app/views/ports/show.html.erb        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/app/views/ports/show.html.erb        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> &lt;% controller.set_chart_title :variant_count, 'All Variants' %&gt;
</span><span class="cx"> &lt;% controller.set_chart_type :variant_count, 'PieChart' %&gt;
</span><span class="cx"> 
</span><del>-&lt;% controller.set_chart_title :versions_over_time, 'Top Versions in use Over Last 12 Months' %&gt;
</del><ins>+&lt;% controller.set_chart_title :versions_over_time, 'Top Versions Over Last 12 Months' %&gt;
</ins><span class="cx"> &lt;% controller.set_chart_type :versions_over_time, 'LineChart' %&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;% controller.set_chart_title :installs_over_time, 'Installations Over Last 12 Months' %&gt;
</span><span class="lines">@@ -16,75 +16,36 @@
</span><span class="cx">                      :version_count, 
</span><span class="cx">                      :variant_count] %&gt;
</span><span class="cx"> 
</span><del>-&lt;h1&gt; &lt;%= @port.name %&gt; &lt;/h1&gt;
</del><ins>+&lt;h2&gt;&lt;%= @port.name %&gt; Metadata&lt;/h2&gt;
+&lt;dl&gt;
+        &lt;dt&gt;Current Version&lt;/dt&gt;
+        &lt;dd&gt;&lt;%= @port.version %&gt;&lt;/dd&gt;
+        &lt;% unless @port.description.nil? %&gt;
+                &lt;dt&gt;Description&lt;/dt&gt;
+                &lt;dd&gt;&lt;%= @port.description %&gt;&lt;/dd&gt;
+        &lt;% end %&gt;
+        &lt;% unless @port.licenses.nil? %&gt;
+                &lt;dt&gt;Licenses&lt;/dt&gt;
+                &lt;dd&gt;&lt;%= @port.licenses %&gt;&lt;/dd&gt;
+        &lt;% end %&gt;
+        &lt;% unless @port.categories.nil? %&gt;
+                &lt;dt&gt;Categories&lt;/dt&gt;
+                &lt;dd&gt;&lt;%= @port.categories %&gt;&lt;/dd&gt;
+        &lt;% end %&gt;
+        &lt;% unless @port.variants.nil? %&gt;
+                &lt;dt&gt;Variants&lt;/dt&gt;
+                &lt;dd&gt;&lt;%= @port.variants %&gt;&lt;/dd&gt;
+        &lt;% end %&gt;
+&lt;/dl&gt;
</ins><span class="cx"> 
</span><del>-&lt;br /&gt;
</del><ins>+&lt;h2&gt;&lt;%= @port.name %&gt; Statistics&lt;/h2&gt;
+&lt;%# Generate links %&gt;
+&lt;ul&gt;
+        &lt;% ordered_charts.each do |chart|  %&gt;
+                &lt;li&gt;&lt;%= link_to controller.chart_title(chart), :anchor =&gt; chart %&gt;&lt;/li&gt;
+        &lt;% end %&gt;
+&lt;/ul&gt;
</ins><span class="cx"> 
</span><del>-&lt;div id=&quot;content&quot;&gt;
-  &lt;p&gt;
-    &lt;strong&gt;Current Version:&lt;/strong&gt; &lt;%= @port.version %&gt;
-  &lt;/p&gt;
</del><ins>+&lt;%# Draw charts %&gt;
</ins><span class="cx"> 
</span><del>-  &lt;% unless @port.description.nil? %&gt;
-    &lt;p&gt;
-      &lt;strong&gt;Description:&lt;/strong&gt; &lt;%= @port.description %&gt;
-    &lt;/p&gt;
-  &lt;% end %&gt;
-
-  &lt;% unless @port.licenses.nil? %&gt;
-    &lt;p&gt;
-      &lt;strong&gt;Licenses:&lt;/strong&gt; &lt;%= @port.licenses %&gt;
-    &lt;/p&gt;
-  &lt;% end %&gt;
-
-  &lt;p&gt;
-    &lt;strong&gt;Categories&lt;/strong&gt;
-    &lt;%=h @port.categories %&gt;
-  &lt;/p&gt;
-
-  &lt;% unless @port.variants.nil? %&gt;
-    &lt;p&gt;
-      &lt;strong&gt;Variants:&lt;/strong&gt; &lt;%=h @port.variants %&gt;
-    &lt;/p&gt;
-  &lt;% end %&gt;
-
-  &lt;/div&gt;
-  
-  &lt;br /&gt;
-  
-  &lt;h2&gt; Stats &lt;/h2&gt;
-
-  &lt;%# Generate links %&gt;
-  &lt;ul&gt;
-  &lt;% ordered_charts.each do |chart|  %&gt;
-  &lt;li&gt; &lt;%= link_to controller.chart_title(chart), :anchor =&gt; chart %&gt; &lt;/li&gt;
-  &lt;% end %&gt;
-  &lt;/ul&gt;
-
-  &lt;br /&gt;
-
-  &lt;%# Draw charts %&gt;
-  
-  &lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; ordered_charts} %&gt;
-
-  &lt;table border=1&gt;
-    &lt;tr&gt;
-      &lt;th&gt; ID &lt;/th&gt;
-      &lt;th&gt; port_id &lt;/th&gt;
-      &lt;th&gt; version &lt;/th&gt;
-      &lt;th&gt; variants &lt;/th&gt;
-      &lt;th&gt; modified_date &lt;/th&gt;
-    &lt;/tr&gt;
-
-  &lt;% @installed.each do |row| %&gt;
-    &lt;tr&gt;
-      &lt;td&gt; &lt;%= row.id %&gt; &lt;/td&gt;
-      &lt;td&gt; &lt;%= row.port_id %&gt; &lt;/td&gt;
-      &lt;td&gt; &lt;%= row.version %&gt;&lt;/td&gt;
-      &lt;td&gt; &lt;%= row.variants %&gt; &lt;/td&gt;
-      &lt;td&gt; &lt;%= row.updated_at %&gt; &lt;/td&gt;
-    &lt;/tr&gt;
-  &lt;% end %&gt;
-  &lt;/table&gt;
-  
-&lt;/div&gt;
</del><ins>+&lt;%= render :partial =&gt; '/partials/chart_draw', :locals =&gt; {:charts =&gt; ordered_charts, :headers =&gt; true} %&gt;
</ins></span></pre></div>
<a id="branchesgsoc11statisticsstatsserverpublicstylesheetsscaffoldcss"></a>
<div class="modfile"><h4>Modified: branches/gsoc11-statistics/stats-server/public/stylesheets/scaffold.css (116824 => 116825)</h4>
<pre class="diff"><span>
<span class="info">--- branches/gsoc11-statistics/stats-server/public/stylesheets/scaffold.css        2014-02-07 23:55:45 UTC (rev 116824)
+++ branches/gsoc11-statistics/stats-server/public/stylesheets/scaffold.css        2014-02-08 01:57:57 UTC (rev 116825)
</span><span class="lines">@@ -1,56 +1,196 @@
</span><del>-body { background-color: #fff; color: #333; }
</del><ins>+body {
+        margin: 0;
+        padding: 30px 40px;
</ins><span class="cx"> 
</span><del>-body, p, ol, ul, td {
-  font-family: verdana, arial, helvetica, sans-serif;
-  font-size:   13px;
-  line-height: 18px;
</del><ins>+        background: url(&quot;//macports.org/img/top-backdrop.png&quot;) repeat-x #ededed;
+        color: #000;
+
+        font: 12px/1.2em Helvetica, Arial, sans-serif;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-pre {
-  background-color: #eee;
-  padding: 10px;
-  font-size: 11px;
</del><ins>+.accessibility {
+        margin: 0;
+        display: block;
+        overflow: hidden;
+        width: 0;
+        height: 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-a { color: #000; }
-a:visited { color: #666; }
-a:hover { color: #fff; background-color:#000; }
</del><ins>+a:link {
+        color: #0155CD;
+        text-decoration: underline;
+}
</ins><span class="cx"> 
</span><del>-div.field, div.actions {
-  margin-bottom: 10px;
</del><ins>+a:visited {
+        color: #012567;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#notice {
-  color: green;
</del><ins>+a:hover {
+        color: #3591ED;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.field_with_errors {
-  padding: 2px;
-  background-color: red;
-  display: table;
</del><ins>+h1, h2, h3 {
+        margin: 0;
+        color: white;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#error_explanation {
-  width: 450px;
-  border: 2px solid red;
-  padding: 7px;
-  padding-bottom: 0;
-  margin-bottom: 20px;
-  background-color: #f0f0f0;
</del><ins>+h1 {
+        float: left;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#error_explanation h2 {
-  text-align: left;
-  font-weight: bold;
-  padding: 5px 5px 5px 15px;
-  font-size: 12px;
-  margin: -7px;
-  margin-bottom: 0px;
-  background-color: #c00;
-  color: #fff;
</del><ins>+h1 a.title {
+        display: block;
+        float: left;
+        width: 183px;
+        height: 70px;
+        background: url(&quot;//macports.org/img/macports-logo-top.png&quot;);
+        background-size: 183px 73px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#error_explanation ul li {
-  font-size: 12px;
-  list-style: square;
</del><ins>+h1 a.subtitle {
+        float: left;
+        font-size: 32px;
+        padding-top: 18px;
+        color: #0155cd;
+        text-decoration: none;
</ins><span class="cx"> }
</span><ins>+
+h2, h3 {
+        background: #8695B3;
+        padding: 0.2em;
+}
+
+h2 {
+        font: bold 24px &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;
+}
+
+#header {
+        height: 51px;
+        margin: 21px 0 17px 191px;
+        min-width: 250px;
+        max-width: 700px;
+}
+
+#header div, #header span {
+        float: right;
+}
+
+#navigation {
+        width: 183px;
+        float: left;
+        clear: left;
+        background: url(&quot;//macports.org/img/nav-header.png&quot;) top no-repeat #B1BACC;
+        line-height: 1.4em;
+}
+
+#navigation dl {
+        padding: 16px 0;
+        margin: 0;
+        background: url(&quot;//macports.org/img/nav-footer.png&quot;) bottom no-repeat;
+}
+
+#navigation dt {
+        margin: 0;
+        padding: 0 16px;
+        color: white;
+        font: bold 125% &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;
+}
+
+#navigation dd {
+        margin: 0;
+        padding: 0;
+}
+
+#navigation ul {
+        margin: 0 0 1em 0;
+        padding: 0;
+}
+
+#navigation li {
+        display: block;
+        margin-bottom: 1px;
+        padding: 0 16px 0 28px;
+}
+
+#navigation a {
+        text-decoration: none;
+        color: #242933;
+}
+
+#navigation a:hover {
+        text-decoration: underline;
+}
+
+.selected {
+        background: #8898ab;
+        font-weight: bold;
+}
+
+.warnings {
+        background: #FCC;
+        border: 2px solid #F66;
+        padding: 6px;
+        margin: 7px 7px 7px 198px;
+        min-width: 320px;
+        max-width: 670px;
+}
+
+.warnings p {
+        margin: 1em 0 0 0;
+        font-size: 1.2em;
+        font-weight: bold;
+}
+
+.warnings p:first-child {
+        margin: 0;
+}
+
+#content {
+        padding: 1px 0 40px 191px;
+        min-width: 350px;
+        max-width: 700px;
+}
+
+#content li {
+        margin-bottom: 0.7em;
+}
+
+#content li p {
+        margin: 0.6em 0 1.4em 0;
+        padding-left: 1.6em;
+}
+
+#content li ul {
+        margin-top: 0.7em;
+}
+
+
+#footer {
+        font-size: 90%;
+        clear: both;
+        text-align: center;
+}
+
+#footer img {
+        border: 0;
+        height: 31px;
+        width: 88px;
+}
+
+.graph_chart {
+        margin-bottom: 20px;
+}
+
+#content dl dt {
+        font-weight: bold;
+}
+
+#content .no-data {
+        margin: 10px auto;
+        text-align: center;
+        color: #8898ab;
+}
+
+.port-search form, .port-search p {
+        text-align: center;
+}
</ins></span></pre>
</div>
</div>

</body>
</html>