Permalink
Browse files

added hotspots link

  • Loading branch information...
1 parent 6b289f2 commit 3938274045156b3448ddb92003209b48932afe21 @pilks pilks committed May 17, 2012
Showing with 68 additions and 41 deletions.
  1. +20 −2 lib/format/html/css/covershot.css
  2. +24 −17 lib/format/html/index.ejs
  3. +24 −22 lib/format/html/src.ejs
@@ -31,6 +31,18 @@ h3 {
margin: 0;
word-wrap: normal;
text-overflow: ellipsis;
+ padding: 0px 6px;
+}
+
+div.columnize {
+ display: table;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+}
+
+div.columnize > * {
+ display: table-cell;
}
aside#homeButton {
@@ -56,13 +68,14 @@ header {
width: 1200px;
margin-left: auto;
margin-right: auto;
- margin-bottom: 45px;
+ padding-bottom: 45px;
padding-top: 40px;
}
ul.summary {
margin: 0px auto;
padding: 0px 0px 20px 0px;
+ /*padding: 0px;*/
list-style-type: none;
}
@@ -79,7 +92,6 @@ ul.summary li h3 {
-moz-border-radius: 3px;
border-radius: 3px;
background-color: rgba(0, 0, 0, 0.042);
- padding: 0px 6px;
/* -webkit-transition:all 0.25s ease;
-moz-transition:all 0.25s ease;
-o-transition:all 0.25s ease;
@@ -91,6 +103,12 @@ ul.summary li h3 {
background-color: rgba(0, 0, 0, 0.12);
}*/
+aside#hotspotsLinkContainer, aside#hotspotsLinkContainer * {
+ /*text-align: right;*/
+ margin: 0;
+ padding: 0;
+}
+
span.coverageData {
font-size: 18px;
}
View
@@ -13,23 +13,30 @@
<div id="bodyWrapper">
<header>
<h1>Covershot - Summary</h1>
- <ul class="summary">
- <li>
- <h3><span class="coverageData"><%= files.length %></span> files</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= hits %></span> hits</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= misses %></span> misses</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= sloc %></span> SLoC</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= coverage.toFixed(0) %>%</span> coverage</h3>
- </li>
- </ul>
+
+ <div class="columnize">
+ <ul class="summary">
+ <li>
+ <h3><span class="coverageData"><%= files.length %></span> files</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= hits %></span> hits</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= misses %></span> misses</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= sloc %></span> SLoC</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= coverage.toFixed(1) %>%</span> coverage</h3>
+ </li>
+ </ul>
+ <aside id="hotspotsLinkContainer">
+ <h3><a href="hotspots.html">Hotspots</a></h3>
+ </aside>
+ </div>
+
</header>
<section id="bod">
<section id="mainContent">
View
@@ -20,28 +20,30 @@
<div id="bodyWrapper">
<header>
<h1><%= filename %></h1>
- <ul class="summary">
- <li>
- <h3><span class="coverageData"><%= hits %></span> hits</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= misses %></span> misses</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= sloc %></span> SLoC</h3>
- </li>
- <li>
- <h3><span class="coverageData"><%= coverage.toFixed(0) %>%</span> coverage</h3>
- </li>
- <% if (jsmeter) { %>
- <li>
- <h3><span class="coverageData<%= (jsmeter.complexity > 10) ? ' red' : '' %>"><%= jsmeter.complexity %></span> complexity</h3>
- </li>
- <li>
- <h3><span class="coverageData<%= (jsmeter.mi < 40) ? ' red' : '' %>"><%= jsmeter.mi %></span> MI</h3>
- </li>
- <% } %>
- </ul>
+ <div class="columnize">
+ <ul class="summary">
+ <li>
+ <h3><span class="coverageData"><%= hits %></span> hits</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= misses %></span> misses</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= sloc %></span> SLoC</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData"><%= coverage.toFixed(0) %>%</span> coverage</h3>
+ </li>
+ <% if (jsmeter) { %>
+ <li>
+ <h3><span class="coverageData<%= (jsmeter.complexity > 10) ? ' red' : '' %>"><%= jsmeter.complexity %></span> complexity</h3>
+ </li>
+ <li>
+ <h3><span class="coverageData<%= (jsmeter.mi < 40) ? ' red' : '' %>"><%= jsmeter.mi %></span> MI</h3>
+ </li>
+ <% } %>
+ </ul>
+ </div>
</header>
<section id="bod">
<section id="mainContent">

0 comments on commit 3938274

Please sign in to comment.