Skip to content

Commit

Permalink
Tweaks to discovery pane
Browse files Browse the repository at this point in the history
  • Loading branch information
fligtar committed Sep 14, 2010
1 parent f58503d commit 3a270c0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions apps/discovery/modules.py
Expand Up @@ -85,8 +85,8 @@ class WebdevCollection(CollectionPromo):
title = _('Build the perfect website')


class SportsCollection(CollectionPromo):
slug = 'Sports Collection'
pk = 33357
cls = 'sports'
title = _('Get the latest scores and highlights')
class TesterCollection(CollectionPromo):
slug = 'Firefox Tester Tools'
pk = 82266
cls = 'tester'
title = _('Help test Firefox with these tools')
2 changes: 1 addition & 1 deletion apps/discovery/templates/discovery/modules/collection.html
Expand Up @@ -7,7 +7,7 @@ <h2>{{ title }}</h2>
<a href="{{ addon.get_url_path() }}">
<img src="{{ addon.icon_url }}">
<h3>{{ addon.name }}</h3>
<p class="desc">{{ addon.description }}</p>
<p class="desc">{{ addon.summary }}</p>
</a>
</li>
{% endfor %}
Expand Down
15 changes: 8 additions & 7 deletions apps/discovery/templates/discovery/pane.html
Expand Up @@ -22,7 +22,8 @@ <h3>{{ addon.name }}</h3>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=700">
<title>{{ _('Add-on Discovery Pane') }}</title>
<base target="_blank"/>
<title>{{ _('Discover Add-ons') }}</title>
{{ css('zamboni/discovery-pane') }}
</head>
<body class="html-{{ DIR }}">
Expand All @@ -36,18 +37,14 @@ <h1><img src="{{ MEDIA_URL }}img/zamboni/discovery_pane/logo-addons.png"
functionality or style. Try a time-saving sidebar, a weather notifier,
or a themed look to make Firefox your own.
{% endtrans %}
<a href="#" class="button">{{ _('Learn More') }}</a>
<a href="https://addons.mozilla.org" class="button">{{ _('Learn More') }}</a>

This comment has been minimized.

Copy link
@jbalogh

jbalogh Sep 14, 2010

This should be {{ url('home') }} or {{ SITE_URL }}. I'll make the change when I merge.

</p>
</section>


{% if user.is_authenticated() %}
<section id="my-account">
<p>{{ _('Welcome, {0}')|f(request.amo_user.welcome_name) }}</p>
{% trans url=url('home') -%}
You're logged in to your <a href="{{ url }}">Mozilla Add-ons</a>
account.
{%- endtrans %}</p>
<div>
<a href="{{ url('users.edit') }}">{{ _('My Profile') }}</a>
&bull;
Expand Down Expand Up @@ -87,7 +84,7 @@ <h1><img src="{{ MEDIA_URL }}img/zamboni/discovery_pane/logo-addons.png"
</section>

<section id="featured-addons">
<h2>{{ _('Featured add-ons') }}</h2>
<h2>{{ _('Featured Add-ons') }}</h2>
<div class="addons">
{{ addon_list(featured) }}
</div>
Expand Down Expand Up @@ -117,10 +114,14 @@ <h2>{{ _('More ways to customize') }}</h2>
</li>
</ul>
<p class="help">
This page isn't finished quite yet; look for more
improvements coming soon!
<!--
{% trans -%}
Need help with an add-on?
<a href="#"><strong>Get support</strong></a>
{%- endtrans %}
-->
</p>
</section>

Expand Down
2 changes: 1 addition & 1 deletion media/css/zamboni/discovery-pane.css
Expand Up @@ -196,7 +196,7 @@ header:after,

#mission p,
#my-account p {
font: 18px/1.1 MetaWebPro-Book, "Trebuchet MS", sans-serif;
font: 15px/1.1 MetaWebPro-Book, "Trebuchet MS", sans-serif;
margin: 0 0 .5em;
}

Expand Down

0 comments on commit 3a270c0

Please sign in to comment.