forked from mozilla/zamboni
/
pane.html
133 lines (121 loc) · 3.9 KB
/
pane.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{% macro addon_list(list, limit=5, sidebar=False) %}
<ul>
{# These are JSON add-ons from the API, not Addon objects. #}
{% for addon in list[:5] %}
<li data-guid="{{ addon.guid }}" data-summary="{{ addon.summary }}">
<a href="{{ addon.learnmore|urlparams(src='discovery-pane') }}">
<img src="{{ addon.icon }}">
{% if sidebar %}
{{ addon.name }}
{% else %}
<h3>{{ addon.name }}</h3>
<p class="desc">{{ addon.description }}</p>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endmacro %}
<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=700">
<base target="_blank"/>
<title>{{ _('Discover Add-ons') }}</title>
{{ css('zamboni/discovery-pane') }}
</head>
<body class="html-{{ DIR }}">
<header>
<section id="intro">
<h1><img src="{{ MEDIA_URL }}img/zamboni/discovery_pane/logo-addons.png"
width="87" height="82">{{ _('What are Add-ons?') }}</h1>
<p>
{% trans %}
Add-ons are applications that let you personalize Firefox with extra
functionality or style. Try a time-saving sidebar, a weather notifier,
or a themed look to make Firefox your own.
{% endtrans %}
<a href="https://addons.mozilla.org" class="button">{{ _('Learn More') }}</a>
</p>
</section>
{% if user.is_authenticated() %}
<section id="my-account">
<p>{{ _('Welcome, {0}')|f(request.amo_user.welcome_name) }}</p>
<div>
<a href="{{ url('users.edit') }}">{{ _('My Profile') }}</a>
•
<a href="{{ url('collections.user', request.amo_user.username) }}">
{{ _('My Collections')}}</a>
</div>
</section>
{% else %}
<section id="mission">
<p>{% trans url="http://www.mozilla.org/" -%}
Thanks for using Firefox and supporting
<a href="{{ url }}">Mozilla's mission</a>!
{%- endtrans %}</p>
{% if addon_downloads %}
<p id="download-count">
{{ _('Add-ons downloaded') }}:
<strong>{{ addon_downloads|numberfmt }}</strong>
</p>
{% endif %}
</section>
{% endif %}
</header>
<section id="main">
<section id="main-feature">
<ul id="nav-features">
<li id="nav-prev"><a href="#" class="prev">{{ _('Previous') }}</a></li>
<li id="nav-next"><a href="#" class="next">{{ _('Next') }}</a></li>
</ul>
<ul class="slider">
{% for module in modules %}
{{ module.render()|safe }}
{% endfor %}
</ul>
</section>
<section id="featured-addons">
<h2>{{ _('Featured Add-ons') }}</h2>
<div class="addons">
{{ addon_list(featured) }}
</div>
</section>
</section>
<section id="sub">
<section id="top-addons">
<h2>
{{ _('Top Add-ons') }}
</h2>
{{ addon_list(top_addons, 5, sidebar=True) }}
<p class="all">
<a href="{{ url('browse.extensions') }}">{{ _('See all ') }}</a>
</p>
</section>
<section id="more-ways">
<h2>{{ _('More ways to customize') }}</h2>
<ul>
<li id="more-addons">
<a href="{{ url('browse.extensions') }}">{{ _('Browse all add-ons') }}</a>
</li>
<li id="more-personas">
<a href="{{ url('browse.themes') }}">
{{ _('See all themes and Personas') }}</a>
</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>
</section>
{{ js('zamboni/discovery-pane') }}
</body>
</html>