1.1 --- a/themes/mercurialroundup/html/page.html Mon Jun 07 01:14:02 2010 +0200
1.2 +++ b/themes/mercurialroundup/html/page.html Wed Jun 09 01:20:33 2010 +0200
1.3 @@ -35,12 +35,6 @@
1.4 ><a href="issue?@template=item" i18n:translate="">New issue</a></li
1.5 ><li tal:attributes="class python:request.form.getvalue('@template') == 'search' and 'current'" class=""
1.6 ><a href="issue?@template=search" i18n:translate="">Search</a></li
1.7 - ><li tal:condition="python:request.user.username=='anonymous' and request.user.hasPermission('Register', 'user')"
1.8 - tal:attributes="class python:request.form.getvalue('@template') == 'register' and 'current'" class=""
1.9 - ><a href="user?@template=register" i18n:translate="">Register</a></li
1.10 - ><li tal:condition="python:request.user.username != 'anonymous'"
1.11 - i18n:translate=""><a href="user" i18n:name="user"
1.12 - tal:replace="python:request.user.username.plain(escape=1)">username</a></li
1.13 ><li tal:condition="python:request.user.hasPermission('View', 'issue')"
1.14 ><form method="POST" tal:attributes="action request/base"><span class="container">
1.15 <a href="#"
1.16 @@ -70,11 +64,48 @@
1.17 </li>
1.18 </ul>
1.19 </div>
1.20 +
1.21 <div id="pageline"></div>
1.22 +
1.23 + <ul id="username">
1.24 + <li tal:condition="python:request.user.username=='anonymous'"
1.25 + ><a href="user?@template=login" i18n:translate="">Login</a></li
1.26 + ><li tal:condition="python:request.user.username != 'anonymous'"
1.27 + i18n:translate=""><a href="user" i18n:name="user"
1.28 + tal:replace="python:request.user.username.plain(escape=1)">username</a></li
1.29 + ><li tal:condition="python:request.user.username != 'anonymous'"
1.30 + ><a href="#"
1.31 + tal:attributes="href python:request.indexargs_url('issue', {
1.32 + '@sort': '-activity',
1.33 + '@group': 'priority',
1.34 + '@filter': 'status,assignedto',
1.35 + '@columns': 'id,activity,title,creator,status',
1.36 + '@search_text': '',
1.37 + 'status': status_notresolved,
1.38 + 'assignedto': request.user.id,
1.39 + '@dispname': i18n.gettext('Your Issues'),
1.40 + })"
1.41 + i18n:translate="">Your Issues</a></li
1.42 + ><li tal:condition="python:request.user.username != 'anonymous'"
1.43 + ><a href="#" tal:attributes="href string:user${request/user/id}"
1.44 + i18n:translate="">Your Details</a></li
1.45 + ><li tal:condition="python:request.user.username != 'anonymous'"
1.46 + ><a href="#" tal:attributes="href python:request.indexargs_url('',
1.47 + {'@action':'logout'})" i18n:translate="">Logout</a></li>
1.48 + </ul>
1.49 </div>
1.50
1.51 <h2><span metal:define-slot="body_title">body title</span></h2>
1.52
1.53 +<p tal:condition="options/error_message | nothing" class="error-message"
1.54 + tal:repeat="m options/error_message" tal:content="structure m" />
1.55 +<p tal:condition="options/ok_message | nothing" class="ok-message">
1.56 + <span tal:repeat="m options/ok_message"
1.57 + tal:content="structure string:$m <br/ > " />
1.58 + <a class="form-small" tal:attributes="href request/current_url"
1.59 + i18n:translate="">clear this message</a>
1.60 +</p>
1.61 +
1.62 <table class="body">
1.63
1.64 <tr>
1.65 @@ -114,44 +145,9 @@
1.66 href="user?@template=item" i18n:translate="">Add User</a>
1.67 </p>
1.68
1.69 - <form method="POST" tal:condition="python:request.user.username=='anonymous'"
1.70 - tal:attributes="action request/base">
1.71 - <p class="userblock">
1.72 - <b i18n:translate="">Login</b><br>
1.73 - <input size="10" name="__login_name"><br>
1.74 - <input size="10" type="password" name="__login_password"><br>
1.75 - <input type="hidden" name="@action" value="Login">
1.76 - <input type="checkbox" name="remember" id="remember">
1.77 - <label for="remember" i18n:translate="">Remember me?</label><br>
1.78 - <input type="submit" value="Login" i18n:attributes="value"><br>
1.79 - <input type="hidden" name="__came_from" tal:attributes="value string:${request/base}${request/env/PATH_INFO}">
1.80 - <span tal:replace="structure request/indexargs_form" />
1.81 - <a href="user?@template=register"
1.82 - tal:condition="python:request.user.hasPermission('Register', 'user')"
1.83 - i18n:translate="">Register</a><br>
1.84 - <a href="user?@template=forgotten" i18n:translate="">Lost your login?</a><br>
1.85 - </p>
1.86 - </form>
1.87 -
1.88 <p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
1.89 <b i18n:translate="">Hello, <span i18n:name="user"
1.90 tal:replace="python:request.user.username.plain(escape=1)">username</span></b><br>
1.91 - <a href="#"
1.92 - tal:attributes="href python:request.indexargs_url('issue', {
1.93 - '@sort': '-activity',
1.94 - '@group': 'priority',
1.95 - '@filter': 'status,assignedto',
1.96 - '@columns': 'id,activity,title,creator,status',
1.97 - '@search_text': '',
1.98 - 'status': status_notresolved,
1.99 - 'assignedto': request.user.id,
1.100 - '@dispname': i18n.gettext('Your Issues'),
1.101 - })"
1.102 - i18n:translate="">Your Issues</a><br>
1.103 - <a href="#" tal:attributes="href string:user${request/user/id}"
1.104 - i18n:translate="">Your Details</a><br>
1.105 - <a href="#" tal:attributes="href python:request.indexargs_url('',
1.106 - {'@action':'logout'})" i18n:translate="">Logout</a>
1.107 </p>
1.108 <p class="userblock">
1.109 <b i18n:translate="">Help</b><br>
1.110 @@ -159,16 +155,6 @@
1.111 i18n:translate="">Roundup docs</a>
1.112 </p>
1.113 </td>
1.114 - <td>
1.115 - <p tal:condition="options/error_message | nothing" class="error-message"
1.116 - tal:repeat="m options/error_message" tal:content="structure m" />
1.117 - <p tal:condition="options/ok_message | nothing" class="ok-message">
1.118 - <span tal:repeat="m options/ok_message"
1.119 - tal:content="structure string:$m <br/ > " />
1.120 - <a class="form-small" tal:attributes="href request/current_url"
1.121 - i18n:translate="">clear this message</a>
1.122 - </p>
1.123 - </td>
1.124 </tr>
1.125 <tr>
1.126 <td class="content" metal:define-slot="content">Page content goes here</td>
2.1 --- a/themes/mercurialroundup/html/style-mercurialweb.css Mon Jun 07 01:14:02 2010 +0200
2.2 +++ b/themes/mercurialroundup/html/style-mercurialweb.css Wed Jun 09 01:20:33 2010 +0200
2.3 @@ -40,6 +40,7 @@
2.4 {
2.5 margin: 1em 0;
2.6 border-collapse: collapse;
2.7 + width: 100%;
2.8 }
2.9
2.10 th {
2.11 @@ -59,6 +60,10 @@
2.12 padding: 0;
2.13 }
2.14
2.15 +tr.parity1 {
2.16 + background: #f7f7f7;
2.17 +}
2.18 +
2.19 /* Styling of headings from the main site. */
2.20
2.21 h1 { font-size: 2em; }
3.1 --- a/themes/mercurialroundup/html/style.css Mon Jun 07 01:14:02 2010 +0200
3.2 +++ b/themes/mercurialroundup/html/style.css Wed Jun 09 01:20:33 2010 +0200
3.3 @@ -15,19 +15,71 @@
3.4 border-collapse: separate;
3.5 }
3.6
3.7 -td.sidebar {
3.8 - padding: 1px 0 0 1px;
3.9 - white-space: nowrap;
3.10 +dl, ol, ul {
3.11 + padding: 0 1em;
3.12 + margin: 0 0.5em;
3.13 +}
3.14 +
3.15 +li p {
3.16 + margin: 0.1em 0;
3.17 +}
3.18 +
3.19 +/* Navigation and other controls. */
3.20 +
3.21 +#username {
3.22 + float: right;
3.23 +}
3.24 +
3.25 +#username {
3.26 +
3.27 + /* Styling similar to the main site. */
3.28 +
3.29 + font-family: Verdana, Helvetica, Arial, sans-serif;
3.30 + font-size: .6428em;
3.31 + padding: 10px 25px;
3.32 +}
3.33 +
3.34 +#username li {
3.35 + display: inline;
3.36 + padding: 0 2px;
3.37 + margin: 0 4px;
3.38 +}
3.39 +
3.40 +#username a {
3.41 + text-decoration: none;
3.42 +}
3.43 +
3.44 +/* Messages. */
3.45 +
3.46 +p.ok-message {
3.47 + border-bottom: 1px solid #ccc;
3.48 + background-color: #f0f0f0;
3.49 + padding: 5px 10px;
3.50 +}
3.51 +
3.52 +p.error-message {
3.53 + border-bottom: 1px solid #ccc;
3.54 + background-color: #f0f0f0;
3.55 + padding: 5px 10px;
3.56 +}
3.57 +
3.58 +p.error-message a[href] {
3.59 + color: #005cd5;
3.60 }
3.61
3.62 /* don't display the header when printing */
3.63 @media print {
3.64 - td.sidebar {
3.65 - display: none;
3.66 - }
3.67 - .index-controls {
3.68 - display: none;
3.69 - }
3.70 + td.sidebar {
3.71 + display: none;
3.72 + }
3.73 + .index-controls {
3.74 + display: none;
3.75 + }
3.76 +}
3.77 +
3.78 +td.sidebar {
3.79 + padding: 1px 0 0 1px;
3.80 + white-space: nowrap;
3.81 }
3.82
3.83 td.sidebar p.classblock {
3.84 @@ -60,24 +112,6 @@
3.85 white-space: nowrap;
3.86 }
3.87
3.88 -p.ok-message {
3.89 - background-color: #22bb22;
3.90 - padding: 5px;
3.91 - color: white;
3.92 - font-weight: bold;
3.93 -}
3.94 -p.error-message {
3.95 - background-color: #bb2222;
3.96 - padding: 5px;
3.97 - color: white;
3.98 - font-weight: bold;
3.99 -}
3.100 -p.error-message a[href] {
3.101 - color: white;
3.102 - text-decoration: underline;
3.103 -}
3.104 -
3.105 -
3.106 /* style for search forms */
3.107 ul.search-checkboxes {
3.108 display: inline;
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/themes/mercurialroundup/html/user.login.html Wed Jun 09 01:20:33 2010 +0200
4.3 @@ -0,0 +1,32 @@
4.4 +<!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
4.5 +<tal:block metal:use-macro="templates/page/macros/icing">
4.6 +<title metal:fill-slot="head_title"
4.7 + i18n:translate="">Log into <span i18n:name="tracker"
4.8 + tal:replace="db/config/TRACKER_NAME" /></title>
4.9 +<span metal:fill-slot="body_title" tal:omit-tag="python:1"
4.10 + i18n:translate="">Log into <span i18n:name="tracker"
4.11 + tal:replace="db/config/TRACKER_NAME" /></span>
4.12 +<td class="content" metal:fill-slot="content">
4.13 +
4.14 + <form method="POST" tal:condition="python:request.user.username=='anonymous'"
4.15 + tal:attributes="action request/base">
4.16 + <p class="userblock">
4.17 + <b i18n:translate="">Login</b><br>
4.18 + <input size="10" name="__login_name"><br>
4.19 + <input size="10" type="password" name="__login_password"><br>
4.20 + <input type="hidden" name="@action" value="Login">
4.21 + <input type="checkbox" name="remember" id="remember">
4.22 + <label for="remember" i18n:translate="">Remember me?</label><br>
4.23 + <input type="submit" value="Login" i18n:attributes="value"><br>
4.24 + <input type="hidden" name="__came_from" tal:attributes="value string:${request/base}${request/env/PATH_INFO}">
4.25 + <span tal:replace="structure request/indexargs_form" />
4.26 + <a href="user?@template=register"
4.27 + tal:condition="python:request.user.hasPermission('Register', 'user')"
4.28 + i18n:translate="">Register</a><br>
4.29 + <a href="user?@template=forgotten" i18n:translate="">Lost your login?</a><br>
4.30 + </p>
4.31 + </form>
4.32 +
4.33 +</td>
4.34 +
4.35 +</tal:block>