Merge lp:~jblount/libubuntuone/classy-error-pages into lp:libubuntuone
- classy-error-pages
- Merge into trunk
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Stuart Langridge | ||||
Proposed branch: | lp:~jblount/libubuntuone/classy-error-pages | ||||
Merge into: | lp:libubuntuone | ||||
Diff against target: |
621 lines (+521/-7) 7 files modified
data/Makefile.am (+4/-1) data/connecting.html (+34/-0) data/in_development.html (+34/-0) data/load_error.html (+41/-0) data/reset.css (+49/-0) data/screen.css (+336/-0) libubuntuone/u1-music-store.c (+23/-6) |
||||
To merge this branch: | bzr merge lp:~jblount/libubuntuone/classy-error-pages | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Langridge (community) | Disapprove | ||
Rodrigo Moya (community) | Needs Fixing | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+21513@code.launchpad.net |
Commit message
Description of the change
Adds some css and html to make the error pages look nice / right / good.
Rodrigo Moya (rodrigo-moya) wrote : | # |
Eric Casteleijn (thisfred) wrote : | # |
Looks good, code builds.
- 55. By Joshua Blount
-
merged with trunk
Joshua Blount (jblount) wrote : | # |
> Looks ok to me, although I just merged another branch that adds a new page
> (initial page when loading the real store), so I think this is going to have
> conflicts, so can you please merge with trunk and add that other page please?
I merged with trunk, but could you please once over it and make sure I didn't get rid of anything?
Rodrigo Moya (rodrigo-moya) wrote : | # |
Ok, there are a few problems:
* in_development.html seems to be missing, right? Also, the call to load that file seems to be missing also.
* There are some leaks in the C code:
552 + calculated_file_url = g_strdup_
553 + g_filename_
554 + reload_url);
g_filename_to_uri returns a newly-allocated string, so you need to store it in a variable, use it to g_strdup_printf calculated_
* also, we use the GNOME coding style for couchdb-glib (because it's going to be included in GNOME soon), so could you please add a space after the function name and before the '(' character?
Apart from that it looks ok, so please fix that and I'll approve it
- 56. By Joshua Blount
-
added in_development.html template
Stuart Langridge (sil) wrote : | # |
Rejecting because instead we'll use https:/
Unmerged revisions
Preview Diff
1 | === modified file 'data/Makefile.am' | |||
2 | --- data/Makefile.am 2010-02-17 12:57:19 +0000 | |||
3 | +++ data/Makefile.am 2010-03-19 11:51:34 +0000 | |||
4 | @@ -2,6 +2,9 @@ | |||
5 | 2 | js_DATA = \ | 2 | js_DATA = \ |
6 | 3 | u1-library-override.js \ | 3 | u1-library-override.js \ |
7 | 4 | u1-preview.js \ | 4 | u1-preview.js \ |
9 | 5 | u1-songs-clickable.js | 5 | u1-songs-clickable.js \ |
10 | 6 | load_error.html \ | ||
11 | 7 | connecting.html \ | ||
12 | 8 | staticstyle.css | ||
13 | 6 | 9 | ||
14 | 7 | EXTRA_DIST = $(js_DATA) | 10 | EXTRA_DIST = $(js_DATA) |
15 | 8 | 11 | ||
16 | === added file 'data/connecting.html' | |||
17 | --- data/connecting.html 1970-01-01 00:00:00 +0000 | |||
18 | +++ data/connecting.html 2010-03-19 11:51:34 +0000 | |||
19 | @@ -0,0 +1,34 @@ | |||
20 | 1 | <!doctype html> | ||
21 | 2 | <html> | ||
22 | 3 | <head> | ||
23 | 4 | <title>Loading error</title> | ||
24 | 5 | <link rel="stylesheet" href="reset.css" type="text/css" media="all"> | ||
25 | 6 | <link rel="stylesheet" href="screen.css" type="text/css" media="all"> | ||
26 | 7 | |||
27 | 8 | </head> | ||
28 | 9 | <body class="downloads"> | ||
29 | 10 | <div id="header"> | ||
30 | 11 | |||
31 | 12 | <div class="wrap"> | ||
32 | 13 | <h1 id="logo">Ubuntu One Music Store</h1> | ||
33 | 14 | |||
34 | 15 | </div><!-- close .wrap --> | ||
35 | 16 | </div><!-- close #header --> | ||
36 | 17 | |||
37 | 18 | <div class="superfluous"> | ||
38 | 19 | <div id="content"> | ||
39 | 20 | <div class="access"> | ||
40 | 21 | <h1>Connecting</h1> | ||
41 | 22 | <h2>o hai we are helping you connect to ubuntu one in an unstyled fashion</h2> | ||
42 | 23 | </div> | ||
43 | 24 | </div> | ||
44 | 25 | |||
45 | 26 | </div> | ||
46 | 27 | </div> | ||
47 | 28 | <div id="footer"> | ||
48 | 29 | <div class="wrap"> | ||
49 | 30 | </div> | ||
50 | 31 | </div> | ||
51 | 32 | </body> | ||
52 | 33 | </html> | ||
53 | 34 | |||
54 | 0 | 35 | ||
55 | === added directory 'data/img' | |||
56 | === added file 'data/img/button-left.png' | |||
57 | 1 | Binary files data/img/button-left.png 1970-01-01 00:00:00 +0000 and data/img/button-left.png 2010-03-19 11:51:34 +0000 differ | 36 | Binary files data/img/button-left.png 1970-01-01 00:00:00 +0000 and data/img/button-left.png 2010-03-19 11:51:34 +0000 differ |
58 | === added file 'data/img/button-right.png' | |||
59 | 2 | Binary files data/img/button-right.png 1970-01-01 00:00:00 +0000 and data/img/button-right.png 2010-03-19 11:51:34 +0000 differ | 37 | Binary files data/img/button-right.png 1970-01-01 00:00:00 +0000 and data/img/button-right.png 2010-03-19 11:51:34 +0000 differ |
60 | === added file 'data/img/content_top.png' | |||
61 | 3 | Binary files data/img/content_top.png 1970-01-01 00:00:00 +0000 and data/img/content_top.png 2010-03-19 11:51:34 +0000 differ | 38 | Binary files data/img/content_top.png 1970-01-01 00:00:00 +0000 and data/img/content_top.png 2010-03-19 11:51:34 +0000 differ |
62 | === added file 'data/img/downloads_background.png' | |||
63 | 4 | Binary files data/img/downloads_background.png 1970-01-01 00:00:00 +0000 and data/img/downloads_background.png 2010-03-19 11:51:34 +0000 differ | 39 | Binary files data/img/downloads_background.png 1970-01-01 00:00:00 +0000 and data/img/downloads_background.png 2010-03-19 11:51:34 +0000 differ |
64 | === added file 'data/img/footer_clouds.png' | |||
65 | 5 | Binary files data/img/footer_clouds.png 1970-01-01 00:00:00 +0000 and data/img/footer_clouds.png 2010-03-19 11:51:34 +0000 differ | 40 | Binary files data/img/footer_clouds.png 1970-01-01 00:00:00 +0000 and data/img/footer_clouds.png 2010-03-19 11:51:34 +0000 differ |
66 | === added file 'data/img/green_check.png' | |||
67 | 6 | Binary files data/img/green_check.png 1970-01-01 00:00:00 +0000 and data/img/green_check.png 2010-03-19 11:51:34 +0000 differ | 41 | Binary files data/img/green_check.png 1970-01-01 00:00:00 +0000 and data/img/green_check.png 2010-03-19 11:51:34 +0000 differ |
68 | === added file 'data/img/header_background.png' | |||
69 | 7 | Binary files data/img/header_background.png 1970-01-01 00:00:00 +0000 and data/img/header_background.png 2010-03-19 11:51:34 +0000 differ | 42 | Binary files data/img/header_background.png 1970-01-01 00:00:00 +0000 and data/img/header_background.png 2010-03-19 11:51:34 +0000 differ |
70 | === added file 'data/img/logo.png' | |||
71 | 8 | Binary files data/img/logo.png 1970-01-01 00:00:00 +0000 and data/img/logo.png 2010-03-19 11:51:34 +0000 differ | 43 | Binary files data/img/logo.png 1970-01-01 00:00:00 +0000 and data/img/logo.png 2010-03-19 11:51:34 +0000 differ |
72 | === added file 'data/img/menu.png' | |||
73 | 9 | Binary files data/img/menu.png 1970-01-01 00:00:00 +0000 and data/img/menu.png 2010-03-19 11:51:34 +0000 differ | 44 | Binary files data/img/menu.png 1970-01-01 00:00:00 +0000 and data/img/menu.png 2010-03-19 11:51:34 +0000 differ |
74 | === added file 'data/img/orange_x.png' | |||
75 | 10 | Binary files data/img/orange_x.png 1970-01-01 00:00:00 +0000 and data/img/orange_x.png 2010-03-19 11:51:34 +0000 differ | 45 | Binary files data/img/orange_x.png 1970-01-01 00:00:00 +0000 and data/img/orange_x.png 2010-03-19 11:51:34 +0000 differ |
76 | === added file 'data/img/search.png' | |||
77 | 11 | Binary files data/img/search.png 1970-01-01 00:00:00 +0000 and data/img/search.png 2010-03-19 11:51:34 +0000 differ | 46 | Binary files data/img/search.png 1970-01-01 00:00:00 +0000 and data/img/search.png 2010-03-19 11:51:34 +0000 differ |
78 | === added file 'data/img/superfluous-bubbles.png' | |||
79 | 12 | Binary files data/img/superfluous-bubbles.png 1970-01-01 00:00:00 +0000 and data/img/superfluous-bubbles.png 2010-03-19 11:51:34 +0000 differ | 47 | Binary files data/img/superfluous-bubbles.png 1970-01-01 00:00:00 +0000 and data/img/superfluous-bubbles.png 2010-03-19 11:51:34 +0000 differ |
80 | === added file 'data/in_development.html' | |||
81 | --- data/in_development.html 1970-01-01 00:00:00 +0000 | |||
82 | +++ data/in_development.html 2010-03-19 11:51:34 +0000 | |||
83 | @@ -0,0 +1,34 @@ | |||
84 | 1 | <!doctype html> | ||
85 | 2 | <html> | ||
86 | 3 | <head> | ||
87 | 4 | <title>Loading error</title> | ||
88 | 5 | <link rel="stylesheet" href="reset.css" type="text/css" media="all"> | ||
89 | 6 | <link rel="stylesheet" href="screen.css" type="text/css" media="all"> | ||
90 | 7 | |||
91 | 8 | </head> | ||
92 | 9 | <body class="downloads"> | ||
93 | 10 | <div id="header"> | ||
94 | 11 | |||
95 | 12 | <div class="wrap"> | ||
96 | 13 | <h1 id="logo">Ubuntu One Music Store</h1> | ||
97 | 14 | |||
98 | 15 | </div><!-- close .wrap --> | ||
99 | 16 | </div><!-- close #header --> | ||
100 | 17 | |||
101 | 18 | <div class="superfluous"> | ||
102 | 19 | <div id="content"> | ||
103 | 20 | <div class="access"> | ||
104 | 21 | <h1>In development</h1> | ||
105 | 22 | <h2>The music store is under development, please be patient</h2> | ||
106 | 23 | </div> | ||
107 | 24 | </div> | ||
108 | 25 | |||
109 | 26 | </div> | ||
110 | 27 | </div> | ||
111 | 28 | <div id="footer"> | ||
112 | 29 | <div class="wrap"> | ||
113 | 30 | </div> | ||
114 | 31 | </div> | ||
115 | 32 | </body> | ||
116 | 33 | </html> | ||
117 | 34 | |||
118 | 0 | 35 | ||
119 | === added file 'data/load_error.html' | |||
120 | --- data/load_error.html 1970-01-01 00:00:00 +0000 | |||
121 | +++ data/load_error.html 2010-03-19 11:51:34 +0000 | |||
122 | @@ -0,0 +1,41 @@ | |||
123 | 1 | <!doctype html> | ||
124 | 2 | <html> | ||
125 | 3 | <head> | ||
126 | 4 | <title>Loading error</title> | ||
127 | 5 | <link rel="stylesheet" href="reset.css" type="text/css" media="all"> | ||
128 | 6 | <link rel="stylesheet" href="screen.css" type="text/css" media="all"> | ||
129 | 7 | |||
130 | 8 | <script> | ||
131 | 9 | function reload() { | ||
132 | 10 | reload_url = location.search.substr(1); | ||
133 | 11 | location.href = reload_url; | ||
134 | 12 | return false; | ||
135 | 13 | } | ||
136 | 14 | </script> | ||
137 | 15 | </head> | ||
138 | 16 | <body class="downloads"> | ||
139 | 17 | <div id="header"> | ||
140 | 18 | |||
141 | 19 | <div class="wrap"> | ||
142 | 20 | <h1 id="logo">Ubuntu One Music Store</h1> | ||
143 | 21 | |||
144 | 22 | </div><!-- close .wrap --> | ||
145 | 23 | </div><!-- close #header --> | ||
146 | 24 | |||
147 | 25 | <div class="superfluous"> | ||
148 | 26 | <div id="content"> | ||
149 | 27 | <div class="access"> | ||
150 | 28 | <h1>Internet connection is required to access the music store</h1> | ||
151 | 29 | <h2>Please connect and reload.</h2> | ||
152 | 30 | <p><button onclick="reload()"><span>Reload</span></button></p> | ||
153 | 31 | </div> | ||
154 | 32 | </div> | ||
155 | 33 | |||
156 | 34 | </div> | ||
157 | 35 | </div> | ||
158 | 36 | <div id="footer"> | ||
159 | 37 | <div class="wrap"> | ||
160 | 38 | </div> | ||
161 | 39 | </div> | ||
162 | 40 | </body> | ||
163 | 41 | </html> | ||
164 | 0 | 42 | ||
165 | === added file 'data/reset.css' | |||
166 | --- data/reset.css 1970-01-01 00:00:00 +0000 | |||
167 | +++ data/reset.css 2010-03-19 11:51:34 +0000 | |||
168 | @@ -0,0 +1,49 @@ | |||
169 | 1 | pan, applet, object, iframe, | ||
170 | 2 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
171 | 3 | a, abbr, acronym, address, big, cite, code, | ||
172 | 4 | del, dfn, em, font, img, ins, kbd, q, s, samp, | ||
173 | 5 | small, strike, strong, sub, sup, tt, var, | ||
174 | 6 | dl, dt, dd, ol, ul, li, | ||
175 | 7 | fieldset, form, label, legend, | ||
176 | 8 | table, caption, tbody, tfoot, thead, tr, th, td { | ||
177 | 9 | margin: 0; | ||
178 | 10 | padding: 0; | ||
179 | 11 | border: 0; | ||
180 | 12 | outline: 0; | ||
181 | 13 | font-weight: inherit; | ||
182 | 14 | font-style: inherit; | ||
183 | 15 | font-size: 100%; | ||
184 | 16 | font-family: inherit; | ||
185 | 17 | vertical-align: baseline; | ||
186 | 18 | } | ||
187 | 19 | /* remember to define focus styles! */ | ||
188 | 20 | :focus { | ||
189 | 21 | outline: 0; | ||
190 | 22 | } | ||
191 | 23 | body { | ||
192 | 24 | line-height: 1; | ||
193 | 25 | color: black; | ||
194 | 26 | background: white; | ||
195 | 27 | } | ||
196 | 28 | ol, ul { | ||
197 | 29 | list-style: none; | ||
198 | 30 | } | ||
199 | 31 | /* tables still need 'cellspacing="0"' in the markup */ | ||
200 | 32 | table { | ||
201 | 33 | border-collapse: separate; | ||
202 | 34 | border-spacing: 0; | ||
203 | 35 | } | ||
204 | 36 | caption, th, td { | ||
205 | 37 | text-align: left; | ||
206 | 38 | font-weight: normal; | ||
207 | 39 | } | ||
208 | 40 | blockquote:before, blockquote:after, | ||
209 | 41 | q:before, q:after { | ||
210 | 42 | content: ""; | ||
211 | 43 | } | ||
212 | 44 | blockquote, q { | ||
213 | 45 | quotes: "" ""; | ||
214 | 46 | } | ||
215 | 47 | |||
216 | 48 | strong {font-weight: bold;} | ||
217 | 49 | em {font-style: italic;} | ||
218 | 0 | 50 | ||
219 | === added file 'data/screen.css' | |||
220 | --- data/screen.css 1970-01-01 00:00:00 +0000 | |||
221 | +++ data/screen.css 2010-03-19 11:51:34 +0000 | |||
222 | @@ -0,0 +1,336 @@ | |||
223 | 1 | /* copied from original html */ | ||
224 | 2 | |||
225 | 3 | #downloads { | ||
226 | 4 | padding: 0; | ||
227 | 5 | margin: 0; | ||
228 | 6 | } | ||
229 | 7 | #downloads li { | ||
230 | 8 | overflow: hidden; /* enclose floats */ | ||
231 | 9 | zoom: 1; /* hasLayout in IE */ | ||
232 | 10 | border-bottom: 1px dotted black; | ||
233 | 11 | list-style: none; | ||
234 | 12 | padding: 0; | ||
235 | 13 | margin: 0; | ||
236 | 14 | } | ||
237 | 15 | |||
238 | 16 | li .metadata { | ||
239 | 17 | float: left; | ||
240 | 18 | width: 450px; | ||
241 | 19 | } | ||
242 | 20 | |||
243 | 21 | .progress .progress-bar { | ||
244 | 22 | float: right; | ||
245 | 23 | width: 154px; | ||
246 | 24 | height: 13px; | ||
247 | 25 | background: url(img/progress-bar-background.png) no-repeat left; | ||
248 | 26 | } | ||
249 | 27 | |||
250 | 28 | .progress .progress-bar .gradient { | ||
251 | 29 | height: 13px; | ||
252 | 30 | background: url(img/gradient.png) no-repeat left; | ||
253 | 31 | -webkit-transition: width 2s linear; | ||
254 | 32 | /* 2s should be the same as the Rhythmbox update interval */ | ||
255 | 33 | } | ||
256 | 34 | .progress .progress-string { | ||
257 | 35 | float: right; | ||
258 | 36 | clear: right; | ||
259 | 37 | } | ||
260 | 38 | |||
261 | 39 | .progress .progress-complete { | ||
262 | 40 | background: url(img/musicstore-complete-tick.png) no-repeat right; | ||
263 | 41 | padding-right: 28px; | ||
264 | 42 | -webkit-transition: opacity 0.5s linear; | ||
265 | 43 | height: 20px; | ||
266 | 44 | padding-top: 10px; | ||
267 | 45 | display: inline-block; | ||
268 | 46 | } | ||
269 | 47 | |||
270 | 48 | /* originating with this file */ | ||
271 | 49 | |||
272 | 50 | body { | ||
273 | 51 | font-family: "bitstream vera sans", "dejavu sans", verdana, sans-serif; | ||
274 | 52 | margin: 0 auto; | ||
275 | 53 | font-size: 11px; | ||
276 | 54 | line-height: 14px; | ||
277 | 55 | } | ||
278 | 56 | |||
279 | 57 | .wrap { | ||
280 | 58 | margin: 0 auto; | ||
281 | 59 | width: 730px; | ||
282 | 60 | } | ||
283 | 61 | |||
284 | 62 | #header { | ||
285 | 63 | background: url(img/header_background.png) repeat-x; | ||
286 | 64 | height: 86px; | ||
287 | 65 | min-width: 550px; | ||
288 | 66 | margin-bottom: 0; | ||
289 | 67 | margin-top: -50px; | ||
290 | 68 | } | ||
291 | 69 | |||
292 | 70 | #header ul {padding: 0; margin: 0;} | ||
293 | 71 | #header ul li {display: inline; margin: 0; padding: 0;} | ||
294 | 72 | |||
295 | 73 | #header ul#home_nav {float: left;} | ||
296 | 74 | |||
297 | 75 | ul#home_nav li a { | ||
298 | 76 | display: block; | ||
299 | 77 | float: left; | ||
300 | 78 | text-indent: -9999px; | ||
301 | 79 | width: 26px; | ||
302 | 80 | height: 41px; | ||
303 | 81 | } | ||
304 | 82 | |||
305 | 83 | ul#home_nav li.back a { | ||
306 | 84 | background: url(img/menu.png) no-repeat; | ||
307 | 85 | background-position: 0 0; | ||
308 | 86 | } | ||
309 | 87 | |||
310 | 88 | ul#home_nav li.back a:hover { | ||
311 | 89 | background: url(img/menu.png) no-repeat; | ||
312 | 90 | background-position: 0 -41px; | ||
313 | 91 | |||
314 | 92 | } | ||
315 | 93 | |||
316 | 94 | ul#home_nav li.home a { | ||
317 | 95 | width: 42px; | ||
318 | 96 | background: url(img/menu.png) no-repeat; | ||
319 | 97 | background-position: -26px 0; | ||
320 | 98 | } | ||
321 | 99 | |||
322 | 100 | ul#home_nav li.home a:hover { | ||
323 | 101 | width: 42px; | ||
324 | 102 | background: url(img/menu.png) no-repeat; | ||
325 | 103 | background-position: -26px -41px; | ||
326 | 104 | } | ||
327 | 105 | |||
328 | 106 | #header ul#nav { | ||
329 | 107 | float: right; | ||
330 | 108 | background: url(img/menu.png) no-repeat; | ||
331 | 109 | background-position: top right; | ||
332 | 110 | padding-right: 38px; | ||
333 | 111 | } | ||
334 | 112 | |||
335 | 113 | #nav li a { | ||
336 | 114 | float: left; | ||
337 | 115 | display: block; | ||
338 | 116 | text-indent: -9999px; | ||
339 | 117 | height: 41px; | ||
340 | 118 | } | ||
341 | 119 | |||
342 | 120 | #nav li.new a { | ||
343 | 121 | width: 57px; | ||
344 | 122 | background: #000 url(img/menu.png) no-repeat; | ||
345 | 123 | background-position: -320px 0; | ||
346 | 124 | } | ||
347 | 125 | |||
348 | 126 | #nav li.new a:hover { | ||
349 | 127 | background: #000 url(img/menu.png) no-repeat; | ||
350 | 128 | background-position: -320px -41px;; | ||
351 | 129 | } | ||
352 | 130 | |||
353 | 131 | #nav li.just_added a { | ||
354 | 132 | width: 90px; | ||
355 | 133 | background: url(img/menu.png) no-repeat; | ||
356 | 134 | background-position: -377px 0; | ||
357 | 135 | } | ||
358 | 136 | |||
359 | 137 | #nav li.just_added a:hover { | ||
360 | 138 | background: url(img/menu.png) no-repeat; | ||
361 | 139 | background-position: -377px -41px; | ||
362 | 140 | } | ||
363 | 141 | |||
364 | 142 | #nav li.browse a { | ||
365 | 143 | width: 69px; | ||
366 | 144 | background: url(img/menu.png) no-repeat; | ||
367 | 145 | background-position: -467px 0; | ||
368 | 146 | } | ||
369 | 147 | |||
370 | 148 | #nav li.browse a:hover { | ||
371 | 149 | background: url(img/menu.png) no-repeat; | ||
372 | 150 | background-position: -467px -41px; | ||
373 | 151 | } | ||
374 | 152 | |||
375 | 153 | #nav li.downloads a { | ||
376 | 154 | width: 109px; | ||
377 | 155 | background: url(img/menu.png) no-repeat; | ||
378 | 156 | background-position: -536px 0; | ||
379 | 157 | } | ||
380 | 158 | |||
381 | 159 | body.downloads #nav li.downloads a:hover, #nav li.downloads a:hover { | ||
382 | 160 | background: url(img/menu.png) no-repeat; | ||
383 | 161 | background-position: -536px -41px; | ||
384 | 162 | } | ||
385 | 163 | |||
386 | 164 | body.downloads #nav li.downloads a { | ||
387 | 165 | background: url(img/menu.png) no-repeat; | ||
388 | 166 | background-position: -536px -82px; | ||
389 | 167 | } | ||
390 | 168 | |||
391 | 169 | #nav li.basket a { | ||
392 | 170 | width: 65px; | ||
393 | 171 | background: url(img/menu.png) no-repeat; | ||
394 | 172 | background-position: -645px 0; | ||
395 | 173 | } | ||
396 | 174 | |||
397 | 175 | #nav li.basket a:hover { | ||
398 | 176 | background: url(img/menu.png) no-repeat; | ||
399 | 177 | background-position: -645px -41px; | ||
400 | 178 | } | ||
401 | 179 | |||
402 | 180 | #nav li.help a { | ||
403 | 181 | width: 52px; | ||
404 | 182 | background: url(img/menu.png) no-repeat; | ||
405 | 183 | background-position: -710px 0; | ||
406 | 184 | } | ||
407 | 185 | |||
408 | 186 | #nav li.help a:hover { | ||
409 | 187 | background: url(img/menu.png) no-repeat; | ||
410 | 188 | background-position: -710px -41px; | ||
411 | 189 | } | ||
412 | 190 | |||
413 | 191 | .navish {overflow: auto;} | ||
414 | 192 | |||
415 | 193 | h1#logo { | ||
416 | 194 | margin-top: 60px; | ||
417 | 195 | display: block; | ||
418 | 196 | text-indent: -9999px; | ||
419 | 197 | background: url(img/logo.png) no-repeat; | ||
420 | 198 | width: 190px; | ||
421 | 199 | height: 15px; | ||
422 | 200 | float: left; | ||
423 | 201 | } | ||
424 | 202 | |||
425 | 203 | #header form { | ||
426 | 204 | float: right; | ||
427 | 205 | margin-top: 10px; | ||
428 | 206 | } | ||
429 | 207 | |||
430 | 208 | #content { | ||
431 | 209 | margin: 0 auto; | ||
432 | 210 | width: 760px; | ||
433 | 211 | background: url(img/content_top.png) no-repeat; | ||
434 | 212 | min-height: 300px; | ||
435 | 213 | text-align: left; | ||
436 | 214 | padding-top: 25px; | ||
437 | 215 | } | ||
438 | 216 | |||
439 | 217 | .access { | ||
440 | 218 | margin: 0 auto; | ||
441 | 219 | width: 500px; | ||
442 | 220 | margin-top: 130px; | ||
443 | 221 | } | ||
444 | 222 | |||
445 | 223 | #content .access h1 { | ||
446 | 224 | font-weight: bold; | ||
447 | 225 | margin: 0; | ||
448 | 226 | font-size: 15px; | ||
449 | 227 | margin-bottom: 10px; | ||
450 | 228 | } | ||
451 | 229 | |||
452 | 230 | #content .access h2 { | ||
453 | 231 | font-weight: normal; | ||
454 | 232 | font-size: 13px; | ||
455 | 233 | margin: 0; | ||
456 | 234 | margin-bottom: 20px; | ||
457 | 235 | } | ||
458 | 236 | |||
459 | 237 | #content h2 { | ||
460 | 238 | font-size: 20px; | ||
461 | 239 | font-weight: normal; | ||
462 | 240 | margin: 0; | ||
463 | 241 | padding: 0; | ||
464 | 242 | text-align: left; | ||
465 | 243 | margin-bottom: 25px; | ||
466 | 244 | margin-left: 15px; | ||
467 | 245 | } | ||
468 | 246 | |||
469 | 247 | .progress { | ||
470 | 248 | text-align: right; | ||
471 | 249 | float: right; | ||
472 | 250 | width: 280px; | ||
473 | 251 | } | ||
474 | 252 | |||
475 | 253 | ul.downloading { | ||
476 | 254 | color: #8f8f8f; | ||
477 | 255 | border-top: 1px dotted #999999; | ||
478 | 256 | border-bottom: 1px dotted #999999; | ||
479 | 257 | margin-left: 15px; | ||
480 | 258 | } | ||
481 | 259 | |||
482 | 260 | ul.downloading li { | ||
483 | 261 | border-bottom: 1px dotted #d6d6d6; | ||
484 | 262 | padding-top: 20px; | ||
485 | 263 | padding-bottom: 20px; | ||
486 | 264 | overflow: auto; | ||
487 | 265 | } | ||
488 | 266 | |||
489 | 267 | ul.downloading li.last { | ||
490 | 268 | border-bottom: none; | ||
491 | 269 | } | ||
492 | 270 | |||
493 | 271 | |||
494 | 272 | .superfluous { | ||
495 | 273 | background: url(img/downloads_background.png) repeat-x 50% 100%; | ||
496 | 274 | padding-bottom: 100px; | ||
497 | 275 | } | ||
498 | 276 | |||
499 | 277 | |||
500 | 278 | #footer { | ||
501 | 279 | background: url(img/superfluous-bubbles.png) no-repeat 380px 0%; | ||
502 | 280 | margin: 0 auto; | ||
503 | 281 | margin-top: -75px; | ||
504 | 282 | width: 750px; | ||
505 | 283 | padding-top: 100px; | ||
506 | 284 | } | ||
507 | 285 | |||
508 | 286 | button#music-search { | ||
509 | 287 | background: url(img/search.png) no-repeat; | ||
510 | 288 | text-indent: -9999px; | ||
511 | 289 | width: 77px; | ||
512 | 290 | height: 22px; | ||
513 | 291 | border: 0; | ||
514 | 292 | } | ||
515 | 293 | |||
516 | 294 | |||
517 | 295 | .progress p, .progress .progress-string {padding-right: 3px;} | ||
518 | 296 | |||
519 | 297 | p.copyright {color: #8f8f8f; margin-bottom: 8px;} | ||
520 | 298 | |||
521 | 299 | #pagination { | ||
522 | 300 | overflow: hidden; /* enclose floats */ | ||
523 | 301 | zoom: 1; | ||
524 | 302 | } | ||
525 | 303 | #pagination #count { | ||
526 | 304 | float: left; | ||
527 | 305 | } | ||
528 | 306 | #pagination #pages { | ||
529 | 307 | float: right; | ||
530 | 308 | } | ||
531 | 309 | #pagination #pages a { | ||
532 | 310 | text-decoration: none; | ||
533 | 311 | margin: 4px; | ||
534 | 312 | color: #8f8f8f; | ||
535 | 313 | } | ||
536 | 314 | #pagination #pages a.current { | ||
537 | 315 | color: #f58027; | ||
538 | 316 | } | ||
539 | 317 | |||
540 | 318 | button { | ||
541 | 319 | background: url(img/button-left.png) no-repeat left; | ||
542 | 320 | border: 0; | ||
543 | 321 | padding: 0; | ||
544 | 322 | padding-left: 7px; | ||
545 | 323 | display: inline-block; | ||
546 | 324 | text-align: center; | ||
547 | 325 | } | ||
548 | 326 | |||
549 | 327 | |||
550 | 328 | button span { | ||
551 | 329 | background: url(img/button-right.png) no-repeat right; | ||
552 | 330 | display: block; | ||
553 | 331 | white-space: nowrap; | ||
554 | 332 | color: white; | ||
555 | 333 | font-size: 12px; | ||
556 | 334 | padding: 4px 24px 3px 15px; | ||
557 | 335 | margin-left: 1px; | ||
558 | 336 | } | ||
559 | 0 | 337 | ||
560 | === added file 'data/staticstyle.css' | |||
561 | === modified file 'libubuntuone/u1-music-store.c' | |||
562 | --- libubuntuone/u1-music-store.c 2010-03-12 16:12:36 +0000 | |||
563 | +++ libubuntuone/u1-music-store.c 2010-03-19 11:51:34 +0000 | |||
564 | @@ -37,10 +37,10 @@ | |||
565 | 37 | #define U1_NOT_LOGGED_IN_STORE_URL "/music/store-no-token" | 37 | #define U1_NOT_LOGGED_IN_STORE_URL "/music/store-no-token" |
566 | 38 | #define U1_NOT_REGISTERED_URL "https://one.ubuntu.com/music/notregistered?returnUrl=" | 38 | #define U1_NOT_REGISTERED_URL "https://one.ubuntu.com/music/notregistered?returnUrl=" |
567 | 39 | 39 | ||
568 | 40 | #define U1_DEFAULT_ERROR_PAGE "load_error.html" | ||
569 | 41 | #define U1_IN_DEVELOPMENT_PAGE "in_development.html" | ||
570 | 42 | #define U1_CONNECTING_PAGE "connecting.html" | ||
571 | 40 | #define U1_INITIAL_PAGE "<html><body>Loading Ubuntu One music store</body></html>" | 43 | #define U1_INITIAL_PAGE "<html><body>Loading Ubuntu One music store</body></html>" |
572 | 41 | #define U1_DEFAULT_ERROR_PAGE "<html><body>Could not load Music Store</body></html>" | ||
573 | 42 | #define U1_IN_DEVELOPMENT_PAGE "<html><body>The music store is under development, please be patient</body></html>" | ||
574 | 43 | #define U1_CONNECTING_PAGE "<html><body>Connecting to Ubuntu One. Please wait...</body></html>" | ||
575 | 44 | 44 | ||
576 | 45 | struct _U1MusicStorePrivate { | 45 | struct _U1MusicStorePrivate { |
577 | 46 | DBusGConnection *bus; | 46 | DBusGConnection *bus; |
578 | @@ -151,6 +151,24 @@ | |||
579 | 151 | object_class->finalize = u1_music_store_finalize; | 151 | object_class->finalize = u1_music_store_finalize; |
580 | 152 | } | 152 | } |
581 | 153 | 153 | ||
582 | 154 | |||
583 | 155 | static void | ||
584 | 156 | load_internal_html_page (WebKitWebView *web_view, const gchar *file_name, gchar *reload_url) | ||
585 | 157 | { | ||
586 | 158 | gchar *calculated_file_path, *calculated_file_url; | ||
587 | 159 | calculated_file_path = g_build_path ("/", U1_JAVASCRIPT_DIR, file_name, NULL); | ||
588 | 160 | if (reload_url == NULL) { | ||
589 | 161 | calculated_file_url = g_filename_to_uri(calculated_file_path, NULL, NULL); | ||
590 | 162 | } else { | ||
591 | 163 | calculated_file_url = g_strdup_printf("%s?%s", | ||
592 | 164 | g_filename_to_uri(calculated_file_path, NULL, NULL), | ||
593 | 165 | reload_url); | ||
594 | 166 | } | ||
595 | 167 | webkit_web_view_open (web_view, calculated_file_url); | ||
596 | 168 | g_free(calculated_file_url); | ||
597 | 169 | g_free(calculated_file_path); | ||
598 | 170 | } | ||
599 | 171 | |||
600 | 154 | static void | 172 | static void |
601 | 155 | parse_oauth_string (const gchar *string, gchar **oauth_token, gchar **oauth_token_secret) | 173 | parse_oauth_string (const gchar *string, gchar **oauth_token, gchar **oauth_token_secret) |
602 | 156 | { | 174 | { |
603 | @@ -319,7 +337,7 @@ | |||
604 | 319 | gboolean success; | 337 | gboolean success; |
605 | 320 | GError *error = NULL; | 338 | GError *error = NULL; |
606 | 321 | 339 | ||
608 | 322 | webkit_web_view_load_string (web_view, U1_CONNECTING_PAGE, "text/html", "utf-8", "file:///"); | 340 | load_internal_html_page(web_view, U1_CONNECTING_PAGE, NULL); |
609 | 323 | 341 | ||
610 | 324 | proxy = dbus_g_proxy_new_for_name (music_store->priv->bus, "com.ubuntuone.Authentication", | 342 | proxy = dbus_g_proxy_new_for_name (music_store->priv->bus, "com.ubuntuone.Authentication", |
611 | 325 | "/", "com.ubuntuone.Authentication"); | 343 | "/", "com.ubuntuone.Authentication"); |
612 | @@ -648,8 +666,7 @@ | |||
613 | 648 | load_error_cb (WebKitWebView *web_view, WebKitWebFrame *frame, const gchar *uri, GError *error, gpointer user_data) | 666 | load_error_cb (WebKitWebView *web_view, WebKitWebFrame *frame, const gchar *uri, GError *error, gpointer user_data) |
614 | 649 | { | 667 | { |
615 | 650 | U1MusicStore *music_store = U1_MUSIC_STORE (user_data); | 668 | U1MusicStore *music_store = U1_MUSIC_STORE (user_data); |
618 | 651 | 669 | load_internal_html_page(web_view, U1_DEFAULT_ERROR_PAGE, uri); | |
617 | 652 | webkit_web_view_load_string (web_view, U1_DEFAULT_ERROR_PAGE, "text/html", "utf-8", "file:///"); | ||
619 | 653 | 670 | ||
620 | 654 | return TRUE; | 671 | return TRUE; |
621 | 655 | } | 672 | } |
Looks ok to me, although I just merged another branch that adds a new page (initial page when loading the real store), so I think this is going to have conflicts, so can you please merge with trunk and add that other page please?