Merge lp:~canonical-ca-hackers/ubuntu-webcatalog/953384-links-in-the-footer into lp:ubuntu-webcatalog

Proposed by Łukasz Czyżykowski
Status: Merged
Approved by: Danny Tamez
Approved revision: 78
Merged at revision: 77
Proposed branch: lp:~canonical-ca-hackers/ubuntu-webcatalog/953384-links-in-the-footer
Merge into: lp:ubuntu-webcatalog
Diff against target: 200 lines (+135/-6)
5 files modified
src/webcatalog/static/css/webcatalog.css (+19/-1)
src/webcatalog/templates/webcatalog/base.html (+38/-4)
src/webcatalog/templates/webcatalog/tos.html (+50/-0)
src/webcatalog/tests/test_views.py (+25/-1)
src/webcatalog/urls.py (+3/-0)
To merge this branch: bzr merge lp:~canonical-ca-hackers/ubuntu-webcatalog/953384-links-in-the-footer
Reviewer Review Type Date Requested Status
Danny Tamez (community) Approve
Review via email: mp+97239@code.launchpad.net

Commit message

Add footer links and terms of service view.

Description of the change

Overview
========
This branch adds a bunch of links related to the project. Also adds a static view for Terms of Service and a link to it.

To post a comment you must log in.
Revision history for this message
Łukasz Czyżykowski (lukasz-czyzykowski) wrote :

Waiting for a [link] in Terms of Service.

Revision history for this message
Danny Tamez (zematynnad) wrote :

Looks fine lukasz!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/webcatalog/static/css/webcatalog.css'
2--- src/webcatalog/static/css/webcatalog.css 2012-03-08 20:27:19 +0000
3+++ src/webcatalog/static/css/webcatalog.css 2012-03-13 15:34:18 +0000
4@@ -8,7 +8,25 @@
5 border-radius: 0 0 4px 4px;
6 width: 912px;
7 }
8-
9+/* Terms of Service */
10+#tos {
11+ background: white;
12+ padding: 32px;
13+ border: 1px solid #ccc;
14+}
15+#tos ol {
16+ padding-top: 8px;
17+ list-style: decimal;
18+}
19+#tos ol ol {
20+ list-style: lower-alpha;
21+}
22+#tos li {
23+ padding-bottom: 8px;
24+}
25+#tos p {
26+ padding-top: 8px;
27+}
28 /* Software centre mockup */
29 #sc-mockup {
30 background: white url("/assets/images/sc-gradient.png") repeat-x top;
31
32=== modified file 'src/webcatalog/templates/webcatalog/base.html'
33--- src/webcatalog/templates/webcatalog/base.html 2012-03-12 09:05:19 +0000
34+++ src/webcatalog/templates/webcatalog/base.html 2012-03-13 15:34:18 +0000
35@@ -20,7 +20,41 @@
36 </div>
37 {% endblock %}
38
39-{% block footer %}{% endblock %}
40-{% block copyright %}
41-{{ block.super }}
42-<p><a href="http://developer.ubuntu.com">{% trans "Create your own apps for Ubuntu!"%}</a></p>{% endblock %}
43+{% block footer %}
44+<div class="footer-div">
45+ <p class="footer-title">Legal</p>
46+ <ul>
47+ <li><a href="{% url wc-tos %}">Terms of Service</a></li>
48+ <li><a href="https://one.ubuntu.com/privacy/">Privacy Policy</a></li>
49+ </ul>
50+</div>
51+<div class="footer-div">
52+ <p class="footer-title">Connect</p>
53+ <ul>
54+ <li><a href="http://www.facebook.com/pages/Ubuntu/107963945935779">Ubuntu on Facebook</a></li>
55+ <li><a href="http://twitter.com/#!/ubuntu">Ubuntu on Twitter</a></li>
56+ <li><a href="http://planet.ubuntu.com/">Ubuntu Blogs</a></li>
57+ </ul>
58+</div>
59+<div class="footer-div">
60+ <p class="footer-title">Support</p>
61+ <ul>
62+ <li><a href="https://answers.launchpad.net/ubuntu-webcatalog/+addquestion">Ask a question</a>
63+ <li><a href="https://bugs.launchpad.net/ubuntu-webcatalog/+filebug">File a bug</a></li>
64+ </ul>
65+</div>
66+<div class="footer-div">
67+ <p class="footer-title">Developers</p>
68+ <ul>
69+ <li><a href="http://developer.ubuntu.com">Add your own application</a></li>
70+ <li><a href="https://launchpad.net/ubuntu-webcatalog">Source code for this service</a></li>
71+ </ul>
72+</div>
73+<div class="footer-div">
74+ <p class="footer-title">About</p>
75+ <ul>
76+ <li><a href="http://ubuntu.com">Ubuntu</a></li>
77+ <li><a href="https://canonical.com">Canonical</a></li>
78+ </ul>
79+</div>
80+{% endblock %}
81
82=== added file 'src/webcatalog/templates/webcatalog/tos.html'
83--- src/webcatalog/templates/webcatalog/tos.html 1970-01-01 00:00:00 +0000
84+++ src/webcatalog/templates/webcatalog/tos.html 2012-03-13 15:34:18 +0000
85@@ -0,0 +1,50 @@
86+{% extends "webcatalog/base.html" %}
87+
88+{% block content %}
89+<div id="tos">
90+<div class="header">
91+<h2>Ubuntu Software Centre Terms of Service</h2>
92+</div>
93+<div class="description">
94+<p>The Ubuntu Software Centre service (the &ldquo;Software Centre&rdquo;) is a service integrated with the Ubuntu desktop providing a simple way for Ubuntu users to purchase and download applications and content (&ldquo;apps&rdquo;). The Software Centre is run by Canonical Group Ltd (&ldquo;Canonical&rdquo; or &ldquo;us&rdquo; or &ldquo;our&rdquo; or &ldquo;we&rdquo;), and we hope that you will use and enjoy it.</p>
95+
96+<p>This agreement (&ldquo;agreement&rdquo;) is a legal agreement covering access to and use of the Software Centre by you as an individual (&ldquo;you&rdquo; or &ldquo;your&rdquo;). Your use of the Software Centre will be governed by this agreement, along with the Software Centre privacy policy. Please read this agreement carefully before you purchase or download apps from the Software Centre. By purchasing or downloading apps using the Software Centre, you agree to become bound by the terms and conditions of this agreement.</p>
97+
98+<ol>
99+ <li>Open source software. These terms do not limit or restrict your rights under any applicable open source software licenses. If the apps you download using the Software Centre are licensed under an open source license, only that license applies to such apps. With respect to apps under open source licences, you may be entitled to download a copy of the app source code, which you may download from our servers.</li>
100+
101+ <li>Apps available without charge. Canonical and third parties make some apps available at no charge to you through the Software Centre. You may download and install these apps with or without a Software Centre account.</li>
102+
103+ <li>Apps available for purchase.
104+ <ol>
105+ <li>Account. You must be at least 13 years old to use the Software Centre to purchase apps. If you are between age 13 and 18, you confirm that you have your parent's or legal guardian's consent to use Software Centre and that they have read and agreed to this agreement. You will be asked to use your Ubuntu Single Sign On account to make a purchase. If you do not have an Ubuntu Single Sign On account, you will need to create one. You are responsible for choosing an appropriate password for your Ubuntu Single Sign On account and for keeping it secure. Canonical representatives will not ask you for your password and you should not reveal it to anyone. Fees and payment. Payment for apps is due at the time you purchase the app. You will be asked to enter your credit card number and we will charge your credit card at the time of purchase. Fees are charged in the currency in which you make your purchase. All fees are non-refundable.</li>
106+
107+ <li>Downloads. Immediately after you purchase an app, the app will be available for you to download through the Software Centre. You may re-download your app from the Software Centre until we stop providing the Software Centre or until the app is removed from the Software Centre.</li>
108+
109+ </ol>
110+ </li>
111+ <li>App licenses. Each app you download or purchase is subject to the terms and conditions or license set by the app provider or developer, which may be presented to you at the time of download or contained in the app.</li>
112+
113+</ol>
114+<ol>
115+ <li>Support. Third party app providers may offer support for their apps. Third party apps are not supported by Canonical.</li>
116+
117+ <li>Acceptable use and conduct. All usage of the Software Centre must be legal and not infringe any third party's rights. You must not take any action or use the Software Centre in any way that might bring Canonical into disrepute, affect the ability of Canonical to provide the Software Centre, be illegal, or encourage illegal activities. You may not use the services in any manner that might be libellous or defamatory (more info on what <a href="https://www.eff.org/issues/bloggers/legal/liability/defamation">that means</a>), that contains threats or incites violence towards individuals or entities, or that violates the privacy or publicity rights of any third party. You shall indemnify Canonical in full for any loss, cost or damages suffered by it as a result of your use or misuse of the Software Centre.</li>
118+
119+ <li>Changes to the Software Centre or this agreement. We aim to continually improve the Software Centre and, as a result, will make changes to it from time to time, including adding new features and modifying or discontinuing (temporarily or permanently) existing features, in part or in whole. We may occasionally change the terms of this agreement by posting an updated version, and all changes will go into effect at the time we post the updated agreement.</li>
120+
121+ <li>Termination. You may terminate this agreement by stopping your use of the Software Centre at any time. We may terminate this agreement and your use of the Software Centre at any time if we are made aware that you are in breach of any term of this agreement or if we no longer make the Software Centre available.</li>
122+
123+ <li>Collection and use of your data. We may collect certain non-personally-identifiable information, which is located on your computer. The information collected may include statistics relating to the types of apps you download, how often you download apps, and which apps you download. You agree this information may be retained and used by Canonical. Canonical may disclose any or all personal data and contents you have sent, posted or published if required to comply with applicable law or the order or requirement of a court, administrative agency or other governmental body. All other use of your personal data is subject to the Software Centre privacy policy.</li>
124+
125+ <li>Third-party content. You may access third-party apps in your use of the Software Centre. You will not remove any third party's copyright notices or other identifier, except as allowed by the third-party's licence of that app. Canonical is not responsible for any app provided by any third party. Should you reasonably believe that any third-party app you access through the Software Centre is in breach of any law, regulation or third party's rights, you should notify Canonical in writing at the address below. In doing so, please:* identify the material which you believe to be infringing;* identify what you believe this material infringes and why;* provide your name, email address, address and telephone number;* confirm that you believe in good faith that this material is infringing a law or third party's rights and that, to the best of your knowledge, the information you are providing is correct;* identify if you are acting on behalf of the third party whose rights may have been infringed;provide your physical or electronic signature.</li>
126+
127+ <li>Limitation of Liability. Software and services provided under this agreement are provided to you as is and with no warranties whatsoever. All implied warranties are excluded to the extent legally permissible. Under no circumstances will Canonical or its suppliers be liable to you for any consequential or indirect loss of profits or economic advantage. Canonical cannot guarantee the connection speed between you and the Software Centre and Canonical cannot be held liable for any direct or indirect damage or loss caused by connection speed. Canonical will use reasonable efforts to ensure availability of the Software Centre, but makes no guarantee that the Software Centre will be available without interruption. Canonical is not responsible for the loss of any of your data or any loss of business or financial disadvantage to you as a result of any loss of or damage to your data as a consequence of your use of the Software Centre. You should ensure that you have suitable backups of all data. These limitations of liability do not apply with respect to any death or personal injury as a consequence of the negligent act of Canonical, its employees, suppliers or licensors.</li>
128+
129+ <li>General. This agreement is the entire agreement between you and Canonical with regard to the Software Centre. This agreement is governed by the laws of England and any dispute will be heard by the courts in England. Notwithstanding the immediately preceding sentence, if you are a citizen of the United States of America, Canada or Mexico (and not a citizen of the United Kingdom), and you are not accessing the service from the United Kingdom, then this agreement is governed by the laws of the State of New York (USA) and any dispute will be heard by the Federal and State courts located in the State of New York (USA). You may not assign this agreement, and any attempted assignment will be void from the beginning. Failure by Canonical to enforce any right or provision of this agreement shall not constitute a waiver of such right or provision. If any part of this agreement is held invalid or unenforceable, that part will be construed to reflect the parties&#146; original intent, and the remaining portions will remain in full force and effect. The terms of this agreement do not affect your statutory rights. Any notices should be sent by registered post to Canonical Group Ltd, 27th Floor Millbank Tower, 21-24 Millbank, London, England, SW1Q 4QP.</li>
130+</ol>
131+
132+<p>Last updated:&nbsp;March 13, 2012</p>
133+</div>
134+
135+</div>{% endblock %}
136
137=== modified file 'src/webcatalog/tests/test_views.py'
138--- src/webcatalog/tests/test_views.py 2012-03-12 15:43:37 +0000
139+++ src/webcatalog/tests/test_views.py 2012-03-13 15:34:18 +0000
140@@ -44,6 +44,7 @@
141 'ApplicationDetailTestCase',
142 'ApplicationReviewsTestCase',
143 'IndexTestCase',
144+ 'TermsOfServiceTestCase',
145 'OverviewTestCase',
146 'SearchTestCase',
147 'ComboViewTestCase',
148@@ -538,7 +539,30 @@
149
150 self.assertContains(response,
151 '<a href="http://developer.ubuntu.com">'
152- 'Create your own apps for Ubuntu!</a>')
153+ 'Add your own application</a>')
154+
155+ def test_links_to_other_items(self):
156+ links = [
157+ "http://www.facebook.com/pages/Ubuntu/107963945935779",
158+ "http://twitter.com/#!/ubuntu",
159+ "http://planet.ubuntu.com/",
160+ "https://answers.launchpad.net/ubuntu-webcatalog/+addquestion",
161+ "https://bugs.launchpad.net/ubuntu-webcatalog/+filebug",
162+ "http://developer.ubuntu.com",
163+ "https://launchpad.net/ubuntu-webcatalog",
164+ "http://ubuntu.com",
165+ "https://canonical.com",
166+ ]
167+ response = self.client.get(reverse('wc-index'))
168+ for link in links:
169+ self.assertContains(response, link)
170+
171+
172+class TermsOfServiceTestCase(TestCase):
173+
174+ def test_tos_is_accessible(self):
175+ response = self.client.get(reverse('wc-tos'))
176+ self.assertTemplateUsed(response, 'webcatalog/tos.html')
177
178
179 class OverviewTestCase(TestCaseWithFactory):
180
181=== modified file 'src/webcatalog/urls.py'
182--- src/webcatalog/urls.py 2012-03-12 15:30:15 +0000
183+++ src/webcatalog/urls.py 2012-03-13 15:34:18 +0000
184@@ -22,6 +22,7 @@
185 with_statement,
186 )
187 from django.conf.urls.defaults import patterns, include, url
188+from django.views.generic import TemplateView
189
190 __metaclass__ = type
191 __all__ = [
192@@ -45,6 +46,8 @@
193 'application_reviews', name="wc-package-reviews"),
194 url(r'^search/$', 'search', name="wc-search"),
195 url(r'^search/(?P<distro>[-.+\w]+)/$', 'search', name="wc-search"),
196+ url(r'^tos/$', name="wc-tos",
197+ view=TemplateView.as_view(template_name="webcatalog/tos.html")),
198 url(r'^combo/$', 'combo_view', name='wc-combo'),
199
200 (r'^api/', include('webcatalog.api.urls')),

Subscribers

People subscribed via source and target branches