Merge lp:~xubuntu-website/ubuntu-cdimage/xubuntu-assets into lp:ubuntu-cdimage

Proposed by Sean Davis
Status: Merged
Merged at revision: 1823
Proposed branch: lp:~xubuntu-website/ubuntu-cdimage/xubuntu-assets
Merge into: lp:ubuntu-cdimage
Diff against target: 37 lines (+10/-0)
2 files modified
lib/cdimage/tests/test_tree.py (+2/-0)
lib/cdimage/tree.py (+8/-0)
To merge this branch: bzr merge lp:~xubuntu-website/ubuntu-cdimage/xubuntu-assets
Reviewer Review Type Date Requested Status
Ubuntu CD Image Team Pending
Review via email: mp+375604@code.launchpad.net

Commit message

Apply Xubuntu per-flavor CSS and favicon (LP: #1835023)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/cdimage/tests/test_tree.py'
2--- lib/cdimage/tests/test_tree.py 2019-10-18 23:41:43 +0000
3+++ lib/cdimage/tests/test_tree.py 2019-11-15 10:12:08 +0000
4@@ -304,6 +304,8 @@
5 ["//cdimage.ubuntu.com/include/lubuntu/style.css"]),
6 ("lubuntu-next",
7 ["//cdimage.ubuntu.com/include/lubuntu/style.css"]),
8+ ("xubuntu",
9+ ["//cdimage.ubuntu.com/include/xubuntu/style.css"]),
10 ):
11 self.config["PROJECT"] = project
12 publisher = Publisher(self.tree, "daily")
13
14=== modified file 'lib/cdimage/tree.py'
15--- lib/cdimage/tree.py 2019-10-16 10:34:22 +0000
16+++ lib/cdimage/tree.py 2019-11-15 10:12:08 +0000
17@@ -442,6 +442,8 @@
18 return ["//releases.ubuntu.com/include/kubuntu.css"]
19 if self.project in ("lubuntu", "lubuntu-next"):
20 return ["//cdimage.ubuntu.com/include/lubuntu/style.css"]
21+ if self.project == "xubuntu":
22+ return ["//cdimage.ubuntu.com/include/xubuntu/style.css"]
23 else:
24 return ["https://assets.ubuntu.com/v1/" +
25 "vanilla-framework-version-1.8.0.min.css"]
26@@ -1181,6 +1183,12 @@
27 "href=\"http://cdimage.ubuntu.com/include/lubuntu/"
28 "favicon.png\" />", file=header)
29 header_href = 'https://lubuntu.me/'
30+ if self.project == "xubuntu":
31+ print(
32+ "<link rel=\"icon\" type=\"image/png\" "
33+ "href=\"http://cdimage.ubuntu.com/include/xubuntu/"
34+ "favicon.png\" />", file=header)
35+ header_href = 'https://xubuntu.org/'
36 else:
37 header_href = 'http://www.ubuntu.com/'
38

Subscribers

People subscribed via source and target branches