Merge lp:~mago-contributors/mago/new_stylesheet into lp:~mago-contributors/mago/mago-1.0

Proposed by Ara Pulido
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mago-contributors/mago/new_stylesheet
Merge into: lp:~mago-contributors/mago/mago-1.0
Diff against target: None lines
To merge this branch: bzr merge lp:~mago-contributors/mago/new_stylesheet
Reviewer Review Type Date Requested Status
Ara Pulido Approve
Javier Collado (community) Approve
Joker Wild (community) view Approve
Review via email: mp+7939@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ara Pulido (ara) wrote :

This is a replacement for the CSS stylesheet for the HTML report.

We were using Launchpad's, which had two main problems:

1) It gave a Launchpad look&feel to reports, that confused the users.
2) It required a valid Internet connection to get the CSS

The one I wrote is very basic, but it does the job. If anyone else want to improve it, feel free.

Cheers,
Ara.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Ara,

Outstanding I think this is a great item to have added. Very good and it is better to have our own then using launchpad's.

Best Regards,
Leo Jackson
lajjr

review: Approve (view)
Revision history for this message
Eitan Isaacson (eeejay) wrote :

This is a good start, pretty. Do you mind if I spend some time, and commit some experimental aesthetics?

87. By Eitan Isaacson

Merged from trunk. Improved report.xsl a bit.

Revision history for this message
Ara Pulido (ara) wrote :

> This is a good start, pretty. Do you mind if I spend some time, and commit
> some experimental aesthetics?

Hey Eitan,

Sure! Feel free, I could only spent an hour on this, so, yes, your additions are more than welcome :-)

Cheers

Revision history for this message
Javier Collado (javier.collado) wrote :

It's a good idea to have a local stylesheet that doesn't depend on launchpad.

review: Approve
Revision history for this message
Ara Pulido (ara) wrote :

Merged into trunk

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'report.xsl'
2--- report.xsl 2009-06-09 15:22:50 +0000
3+++ report.xsl 2009-06-26 11:39:03 +0000
4@@ -5,103 +5,81 @@
5 <head>
6 <title>
7 Mago Tests Report
8- </title>
9- <!-- Launchpad style sheet -->
10- <style type="text/css" media="screen, print">@import url(https://edge.launchpad.net/+icing/rev7667/+style-slimmer.css);</style>
11- <!--[if lte IE 7]>
12- <style type="text/css">#lp-apps span {margin: 0 0.125%;}</style>
13- <![endif]-->
14- <style type="text/css">
15- fieldset.collapsed div, fieldset div.collapsed {display: none;}
16- </style>
17- <noscript>
18- <style type="text/css">
19- fieldset.collapsible div, fieldset div.collapsed {display: block;}
20- </style>
21- </noscript>
22- <script type="text/javascript" src="https://edge.launchpad.net/+icing/build/launchpad.js"/>
23- <script type="text/javascript">var cookie_scope = '; Path=/; Secure; Domain=.launchpad.net';</script>
24- <script type="text/javascript">
25- function onLoadFunction() {
26- sortables_init();
27- initInlineHelp();
28- }
29- registerLaunchpadFunction(onLoadFunction);
30- function ReverseDisplay(d) {
31+</title>
32+<style>
33+body
34+{
35+ line-height: 1.6em;
36+ margin: 45px;
37+}
38+p
39+{
40+ font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
41+ font-size: 12px;
42+
43+}
44+
45+h4
46+{
47+line-height: 20%;
48+color: #039;
49+}
50+
51+h1
52+{
53+line-height: 20%;
54+color: #34679D;
55+}
56+
57+#mago-table
58+{
59+ font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
60+ font-size: 12px;
61+ margin: 45px;
62+ width: 480px;
63+ text-align: left;
64+ border-collapse: collapse;
65+}
66+#mago-table th
67+{
68+ font-size: 13px;
69+ font-weight: normal;
70+ padding: 8px;
71+ background: #B3B3E6;
72+ border-bottom: 1px solid #fff;
73+ color: #039;
74+}
75+#mago-table td
76+{
77+ padding: 8px;
78+ background: #B3CCE6;
79+ border-bottom: 1px solid #fff;
80+ color: #669;
81+ border-top: 1px solid transparent;
82+}
83+#mago-table tr:hover td
84+{
85+ background: #d0dafd;
86+ color: #339;
87+}
88+
89+</style>
90+ <script type="text/javascript">
91+ function ReverseDisplay(d) {
92 if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
93 else { document.getElementById(d).style.display = "none"; }
94 }
95 </script>
96- <link rel="shortcut icon" href="https://edge.launchpad.net/@@/launchpad.png"/>
97 </head>
98- <body id="document" class="tab-bugs onecolumn">
99- <div id="locationbar">
100- <div id="logincontrol">
101- <a href="https://bugs.edge.launchpad.net/bugs/bugtrackers/+login">Log in / Register</a>
102- </div>
103- <form id="globalsearch" action="https://edge.launchpad.net/+search" xml:lang="en" lang="en" dir="ltr" method="get" accept-charset="UTF-8">
104- <img src="https://edge.launchpad.net/@@/search.png" style="margin-bottom: -4px" alt="Search launchpad:"/>
105- <input type="search" id="search-text" name="field.text"/>
106- </form>
107- <div id="lp-hierarchy" class="home">
108- <a href="/" class="breadcrumb">
109- <img alt="Launchpad" src="https://edge.launchpad.net/@@/launchpad-logo-and-name-hierarchy.png"/>
110- </a>
111- </div>
112- <div id="globalheader" xml:lang="en" lang="en" dir="ltr">
113- <div class="sitemessage">This site is running pre-release code. <a href="https://edge.launchpad.net/launchpad/+filebug">Please report all bugs.</a></div>
114- </div>
115- <div class="apps-separator">
116- <!-- -->
117- </div>
118- <div id="lp-apps" class="clearfix">
119- <!-- :-) -->
120- <span class="overview">
121- <a href="https://edge.launchpad.net/">Launchpad Home</a>
122- </span>
123- <small> / </small>
124- <span class="branches" title="The Code Bazaar">
125- <a href="https://code.edge.launchpad.net/">Code</a>
126- </span>
127- <small> / </small>
128- <span class="bugs active">
129- <a href="https://bugs.edge.launchpad.net/">Bugs</a>
130- </span>
131- <small> / </small>
132- <span class="specifications" title="Launchpad feature specification tracker.">
133- <a href="https://blueprints.edge.launchpad.net/">Blueprints</a>
134- </span>
135- <small> / </small>
136- <span class="translations">
137- <a href="https://translations.edge.launchpad.net/">Translations</a>
138- </span>
139- <small> / </small>
140- <span class="answers" title="Launchpad Answer Tracker">
141- <a href="https://answers.edge.launchpad.net/">Answers</a>
142- </span>
143- </div>
144- </div>
145- <!--id="locationbar"-->
146- <div id="mainarea">
147- <div id="container">
148- <!--[if IE 7]>&nbsp;<![endif]-->
149- <div id="navigation-tabs">
150-
151-
152- </div>
153- <div>
154- <p>
155- <br/>
156- </p>
157- <h1>Mago Tests Report</h1>
158- <p>
159+ <body>
160+ <h1>Mago Tests Report</h1>
161+ <p>
162 This are the results from a run of Mago Desktop Tests. <br/>
163 If you find false positives, please, report bugs against <a href="https://launchpad.net/mago/+filebug">Mago</a> project.
164- </p>
165- <h2><b>Suite: <xsl:value-of select="suite/@name" /></b> (Class: <xsl:value-of select="suite/class" />)</h2>
166- <h2>Description: <xsl:value-of select="suite/description" /></h2>
167- <br />
168- <table width="100%" class="sortable listing" id="trackers">
169+ </p><br />
170+ <h4>Suite: <xsl:value-of select="suite/@name" />(Class: <xsl:value-of select="suite/class" />)</h4>
171+ <h4>Description: <xsl:value-of select="suite/description" /></h4>
172+ <table width="100%" id="mago-table">
173 <thead>
174 <tr>
175 <th>TestCase Name</th>
176@@ -184,42 +162,8 @@
177 <p>
178 <!-- *** Last Paragraph Space *** -->
179 </p>
180- </div>
181- <div class="clear"/>
182- </div>
183- <!--id="container"-->
184- </div>
185- <!--id="mainarea"-->
186- <div id="globalfooter" class="clearfix" xml:lang="en" lang="en" dir="ltr">
187- <div id="colophon"><a href="/+tour">What is Launchpad?</a>
188- | <a href="https://help.launchpad.net/">Get help with Launchpad</a>
189- </div>
190- <div id="lp-arcana">
191- Copyright 2004-2008 <a href="http://canonical.com/">Canonical Ltd.</a>
192- |
193- <a href="/legal">Terms of use</a>
194- <span id="lp-version">
195- |
196- <a href="https://help.launchpad.net/LaunchpadReleases">Launchpad 2.1.12 (r76673)</a>
197-
198-
199- beta site
200- </span>
201- </div>
202- </div>
203- <!--id="globalfooter"-->
204- <div id="help-pane" class="invisible">
205- <div id="help-body">
206- <iframe id="help-pane-content" class="invisible" src="javascript:void(0);"/>
207- </div>
208- <div id="help-footer">
209- <span id="help-close"/>
210- </div>
211- </div>
212 </body>
213 </html>
214- <!-- at least 396 queries issued in 3.36 seconds -->
215- <!-- Launchpad 2.1.12 (r7513) -->
216 </xsl:template>
217 <xsl:template match="screenshot" mode="link">
218 <a href="{text()}">

Subscribers

People subscribed via source and target branches

to status/vote changes: