MercurialWebTheme

Changeset

27:04780c501031
2010-10-31 Paul Boddie raw files shortlog changelog graph Made use of a proper canvas height variable and tidied up the CSS styling in order to make the table line up correctly with the graph. Removed various columns in order to tidy up the display.
themes/mercurialweb/graph.tmpl (file) themes/mercurialweb/graphlabel.tmpl (file) themes/mercurialweb/static/style-mercurialweb.css (file)
     1.1 --- a/themes/mercurialweb/graph.tmpl	Sun Oct 31 16:55:46 2010 +0100
     1.2 +++ b/themes/mercurialweb/graph.tmpl	Sun Oct 31 17:18:29 2010 +0100
     1.3 @@ -32,13 +32,13 @@
     1.4  <div class="pager">{changenav%graphpagerlink}</div>
     1.5  
     1.6  <div class="graph" style="padding-left:{canvaswidth}px;">
     1.7 -<table class="graph" style="width:100%; height:{canvasheight}px;">
     1.8 +<table class="graph" style="height:{truecanvasheight}px;">
     1.9    <tbody>
    1.10  {svgdata%graphlabel}
    1.11    </tbody>
    1.12  </table>
    1.13  <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
    1.14 - style="width:{canvaswidth}px; height:{canvasheight}px; position:absolute; top:0; left:0; z-index:-1;">
    1.15 + style="width:{canvaswidth}px; height:{truecanvasheight}px; position:absolute; top:0; left:0; z-index:-1;">
    1.16  <g transform="scale({bg_height}) translate(0.5 0.5)">
    1.17  {svgdata%graphnode}
    1.18  </g>
     2.1 --- a/themes/mercurialweb/graphlabel.tmpl	Sun Oct 31 16:55:46 2010 +0100
     2.2 +++ b/themes/mercurialweb/graphlabel.tmpl	Sun Oct 31 17:18:29 2010 +0100
     2.3 @@ -1,7 +1,5 @@
     2.4 -<tr id="{node|short}" style="min-height:{bg_height}px; max-height:{bg_height}px;">
     2.5 +<tr id="{node|short}">
     2.6    <td class="graphlabel">{age}</td>
     2.7 -  <td class="graphlabel">{user}</td>
     2.8 -  <td class="graphlabel navigation"><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></td>
     2.9    <td class="graphlabel"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a></td>
    2.10    <td class="graphlabel">{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
    2.11  </tr>
     3.1 --- a/themes/mercurialweb/static/style-mercurialweb.css	Sun Oct 31 16:55:46 2010 +0100
     3.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Sun Oct 31 17:18:29 2010 +0100
     3.3 @@ -428,8 +428,10 @@
     3.4  }
     3.5  
     3.6  table.graph {
     3.7 +    width: 100%;
     3.8      margin: 0;
     3.9      padding: 0;
    3.10 +    border: 0;
    3.11      border-collapse: collapse;
    3.12  }
    3.13