MercurialWebTheme

Changeset

0:d211c584e3f2
2010-06-01 Paul Boddie raw files shortlog changelog graph A theme for hgweb and hgwebdir which resembles the Mercurial Web site and related Wiki theme.
themes/mercurialweb/footer.tmpl (file) themes/mercurialweb/header.tmpl (file) themes/mercurialweb/index.tmpl (file) themes/mercurialweb/indexentry.tmpl (file) themes/mercurialweb/map (file) themes/mercurialweb/static/style-mercurialweb.css (file) themes/mercurialweb/summary.tmpl (file)
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/themes/mercurialweb/footer.tmpl	Tue Jun 01 20:15:48 2010 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +{motd}
     1.5 +
     1.6 +<div id="footer">
     1.7 +<div id="pageline"></div>
     1.8 +<ul id="credits">
     1.9 +<li><a href="http://mercurial.selenic.com/">Powered by Mercurial</a></li>
    1.10 +</ul>
    1.11 +</div>
    1.12 +
    1.13 +</body>
    1.14 +</html>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/themes/mercurialweb/header.tmpl	Tue Jun 01 20:15:48 2010 +0200
     2.3 @@ -0,0 +1,6 @@
     2.4 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2.5 +<html>
     2.6 +<head>
     2.7 +<link rel="icon" href="{staticurl}hgicon.png" type="image/png" />
     2.8 +<meta name="robots" content="index, nofollow" />
     2.9 +<link rel="stylesheet" href="{staticurl}style-mercurialweb.css" type="text/css" />
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/themes/mercurialweb/index.tmpl	Tue Jun 01 20:15:48 2010 +0200
     3.3 @@ -0,0 +1,27 @@
     3.4 +{header}
     3.5 +<title>Repository Index</title>
     3.6 +</head>
     3.7 +
     3.8 +<body>
     3.9 +
    3.10 +<div id="header">
    3.11 +  <div id="logo"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></div>
    3.12 +  <div id="pageline"></div>
    3.13 +</div>
    3.14 +
    3.15 +<div id="page">
    3.16 +
    3.17 +<table>
    3.18 +    <tr>
    3.19 +        <td><a href="?sort={sort_name}">Name</a></td>
    3.20 +        <td><a href="?sort={sort_description}">Description</a></td>
    3.21 +        <td><a href="?sort={sort_contact}">Contact</a></td>
    3.22 +        <td><a href="?sort={sort_lastchange}">Last change</a></td>
    3.23 +        <td>&nbsp;</td>
    3.24 +    <tr>
    3.25 +    {entries%indexentry}
    3.26 +</table>
    3.27 +
    3.28 +</div>
    3.29 +
    3.30 +{footer}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/themes/mercurialweb/indexentry.tmpl	Tue Jun 01 20:15:48 2010 +0200
     4.3 @@ -0,0 +1,7 @@
     4.4 +<tr class="parity{parity}">
     4.5 +  <td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td>
     4.6 +  <td>{description}</td>
     4.7 +  <td>{contact|obfuscate}</td>
     4.8 +  <td class="age">{lastchange|age} ago</td>
     4.9 +  <td class="indexlinks"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a> {archives%archiveentry}</td>
    4.10 +</tr>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/themes/mercurialweb/map	Tue Jun 01 20:15:48 2010 +0200
     5.3 @@ -0,0 +1,11 @@
     5.4 +default = 'summary'
     5.5 +mimetype = 'text/html; charset={encoding}'
     5.6 +
     5.7 +header = header.tmpl
     5.8 +footer = footer.tmpl
     5.9 +index = index.tmpl
    5.10 +indexentry = indexentry.tmpl
    5.11 +summary = summary.tmpl
    5.12 +
    5.13 +urlparameter = '{separator}{name}={value|urlescape}'
    5.14 +archiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a> '
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Tue Jun 01 20:15:48 2010 +0200
     6.3 @@ -0,0 +1,244 @@
     6.4 +/*  mercurialweb-styles.css - stylesheets resembling the MercurialWikiTheme styles
     6.5 +
     6.6 +Copyright (c) 2010 Paul Boddie <paul@boddie.org.uk>
     6.7 +Copyright (c) 2001, 2002, 2003 by Juergen Hermann
     6.8 +*/
     6.9 +
    6.10 +/* content styles */
    6.11 +
    6.12 +body {
    6.13 +    padding: 0;
    6.14 +    margin: 0;
    6.15 +    border: 0;
    6.16 +
    6.17 +    /* Styling similar to the main site. */
    6.18 +
    6.19 +    font-family: Helvetica, Verdana, Arial, sans-serif;
    6.20 +    color: #111;
    6.21 +    margin: 0 5em;
    6.22 +}
    6.23 +
    6.24 +a, img {
    6.25 +    border: 0;
    6.26 +}
    6.27 +
    6.28 +/* Styling of headings from the main site. */
    6.29 +
    6.30 +h1 { font-size: 2em; }
    6.31 +h2 { font-size: 1.6em; }
    6.32 +h3 { font-size: 1.3em; }
    6.33 +
    6.34 +a:link, a:visited { color: #00b5f1; text-decoration: none; }
    6.35 +a:link:hover, a:link:active, a:link:focus,
    6.36 +a:visited:hover, a:visited:active, a:visited:focus { text-decoration: underline; }
    6.37 +
    6.38 +input, select {
    6.39 +
    6.40 +    /* Styling similar to the main site. */
    6.41 +
    6.42 +    font-family: Helvetica, Arial, sans-serif;
    6.43 +    font-size: 0.8571em;
    6.44 +}
    6.45 +
    6.46 +/* Navigational and editing controls. */
    6.47 +
    6.48 +.controls {
    6.49 +    float: right;
    6.50 +    text-align: right;
    6.51 +}
    6.52 +
    6.53 +#navibar {
    6.54 +    display: inline-block;
    6.55 +    margin: 17px 0 2px 0;
    6.56 +    padding: 0;
    6.57 +    vertical-align: bottom;
    6.58 +}
    6.59 +
    6.60 +#navibar li {
    6.61 +    display: inline;
    6.62 +    margin: 0;
    6.63 +    padding: 0;
    6.64 +}
    6.65 +
    6.66 +#navibar a, #navibar li.current span {
    6.67 +
    6.68 +    /* Need a block to redefine the height. */
    6.69 +
    6.70 +    display: inline-block;
    6.71 +    height: 42px;
    6.72 +    line-height: 42px;
    6.73 +
    6.74 +    color: #fff;
    6.75 +    margin: 0;
    6.76 +    padding: 0 16px;
    6.77 +    background: #999;
    6.78 +    text-decoration: none;
    6.79 +}
    6.80 +
    6.81 +#navibar a:hover, #navibar a:focus, #navibar li.current a, #navibar li.current span {
    6.82 +    background: #00b5f1;
    6.83 +    text-decoration: none;
    6.84 +}
    6.85 +
    6.86 +/* Other elements. */
    6.87 +
    6.88 +#logo {
    6.89 +    float: left;
    6.90 +    margin: 0;
    6.91 +    padding: 0;
    6.92 +
    6.93 +    /* For text only logo */
    6.94 +
    6.95 +    font-size: larger;
    6.96 +    font-weight: bold;
    6.97 +}
    6.98 +
    6.99 +#logo img {
   6.100 +    vertical-align: bottom;
   6.101 +}
   6.102 +
   6.103 +#logo a {
   6.104 +    color: black;
   6.105 +    text-decoration: none;
   6.106 +}
   6.107 +
   6.108 +#searchform {
   6.109 +    display: inline-block;
   6.110 +
   6.111 +    /* Margin and padding correspond to the navibar settings. */
   6.112 +
   6.113 +    margin: 17px 0 2px 0;
   6.114 +    padding: 0 16px;
   6.115 +    background: #999;
   6.116 +
   6.117 +    /* Height settings correspond to navibar list entries. */
   6.118 +
   6.119 +    height: 42px;
   6.120 +    line-height: 42px;
   6.121 +}
   6.122 +
   6.123 +#searchform input {
   6.124 +    vertical-align: middle;
   6.125 +}
   6.126 +
   6.127 +#searchform label, .actionsmenu label {
   6.128 +    font-size: smaller;
   6.129 +    color: #fff;
   6.130 +}
   6.131 +
   6.132 +#pageline, .pageline {
   6.133 +
   6.134 +    /* Prevent mixing of header and content elements. */
   6.135 +
   6.136 +    clear: both;
   6.137 +    margin: 0;
   6.138 +    padding: 0;
   6.139 +    border-bottom: 1px solid #ccc;
   6.140 +}
   6.141 +
   6.142 +#message {
   6.143 +    clear: both;
   6.144 +    margin: 0;
   6.145 +    padding: 5px 10px;
   6.146 +
   6.147 +    /* Styling similar to the advanced search. */
   6.148 +
   6.149 +    border-bottom: 1px solid #ADB9CC;
   6.150 +    background-color: #E7E7E7;
   6.151 +}
   6.152 +
   6.153 +#message p {
   6.154 +    margin: 5px 0;
   6.155 +    padding: 0;
   6.156 +}
   6.157 +
   6.158 +#message div.buttons {
   6.159 +    font-weight: normal;
   6.160 +}
   6.161 +
   6.162 +.dialog form {
   6.163 +    margin: 0 15px;
   6.164 +}
   6.165 +
   6.166 +.dialog td {
   6.167 +    border: none;
   6.168 +    padding: 5px;
   6.169 +}
   6.170 +
   6.171 +.dialog td.label {
   6.172 +    text-align: right;
   6.173 +    font-weight: bold;
   6.174 +    width: 25%;
   6.175 +}
   6.176 +
   6.177 +*[dir="rtl"] .dialog td.label {
   6.178 +    text-align: left;
   6.179 +}
   6.180 +
   6.181 +.dialog td.content input {
   6.182 +    width: 100%;
   6.183 +}
   6.184 +
   6.185 +#page {
   6.186 +
   6.187 +    /* Prevent mixing of header and content elements. */
   6.188 +
   6.189 +    clear: both;
   6.190 +    background-color: white;
   6.191 +    margin: 0;
   6.192 +    padding: 0.25em;
   6.193 +}
   6.194 +
   6.195 +#credits {
   6.196 +    float: right;
   6.197 +
   6.198 +    /* Styling similar to the main site. */
   6.199 +
   6.200 +    font-family: Verdana, Helvetica, Arial, sans-serif;
   6.201 +    font-size: .6428em;
   6.202 +    padding: 10px 25px;
   6.203 +}
   6.204 +
   6.205 +#credits li {
   6.206 +    display: inline;
   6.207 +    padding: 0 2px;
   6.208 +    margin: 0 4px;
   6.209 +}
   6.210 +
   6.211 +#credits img {
   6.212 +    vertical-align: middle;
   6.213 +}
   6.214 +
   6.215 +#credits a {
   6.216 +    text-decoration: none;
   6.217 +}
   6.218 +
   6.219 +.diff {
   6.220 +    width:99%;
   6.221 +}
   6.222 +
   6.223 +.diff-header {
   6.224 +    font-weight: bold;
   6.225 +}
   6.226 +
   6.227 +.diff-title {
   6.228 +    background-color: #C0C0C0;
   6.229 +}
   6.230 +
   6.231 +.diff-added {
   6.232 +    background-color: #E0FFE0;
   6.233 +    vertical-align: sub;
   6.234 +}
   6.235 +
   6.236 +.diff-removed {
   6.237 +    background-color: #FFFFE0;
   6.238 +    vertical-align: sub;
   6.239 +}
   6.240 +
   6.241 +.diff-added span {
   6.242 +    background-color: #80FF80;
   6.243 +}
   6.244 +
   6.245 +.diff-removed span {
   6.246 +    background-color: #FFFF80;
   6.247 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/themes/mercurialweb/summary.tmpl	Tue Jun 01 20:15:48 2010 +0200
     7.3 @@ -0,0 +1,17 @@
     7.4 +{header}
     7.5 +<title>Summary: {repo}</title>
     7.6 +</head>
     7.7 +
     7.8 +<body>
     7.9 +
    7.10 +<div id="header">
    7.11 +  <div id="logo"><a href="{url}..{sessionvars%urlparameter}"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></a></div>
    7.12 +  <div class="controls">
    7.13 +    <ul id="navibar">
    7.14 +    <li class="current"><span>summary</span></li><li><a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a></li><li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li><li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li><li><a href="{url}files{sessionvars%urlparameter}">files</a></li>
    7.15 +    </ul>
    7.16 +  </div>
    7.17 +  <div id="pageline"></div>
    7.18 +</div>
    7.19 +
    7.20 +{footer}