forked from mozilla/kitsune
/
product.html
58 lines (53 loc) · 2.3 KB
/
product.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
{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "base.html" %}
{% from 'includes/common_macros.html' import for_contributors_sidebar %}
{% from 'products/includes/product_macros.html' import product_sidebar %}
{% from 'topics/includes/topic_macros.html' import hot_topics, help_topics with context %}
{% set crumbs = [(url('products'), _('Products and Services')), (None, _(product.title, 'DB: products.Product.title'))] %}
{% set styles = ('products',) %}
{% block title %}{{ _('{product} Help')|f(product=_(product.title, 'DB: products.Product.title')) }}{% endblock %}
{% block content %}
<div class="grid_12">
<h1 class="product-title cf">
<img src="{{ MEDIA_URL }}img/blank.png" alt="" class="logo-sprite"
style="background-image: url('{{ product.image_url }}');" />
{{ _(product.title, 'DB: products.Product.title') }}
</h1>
{% if product.slug == 'firefox' %}
<div class="download-firefox">
<a href="http://www.mozilla.org/firefox#desktop" class="download-button">
<span class="download-content">
<span class="download-title">{{ _('Firefox') }}</span>
{{ _('Free Download') }}
</download>
</a>
<ul class="info">
<li><a href="http://www.mozilla.org/firefox/all.html">Systems and Languages</a></li>
<li><a href="http://www.mozilla.org/en-US/firefox/notes">What's New</a></li>
<li><a href="http://www.mozilla.org/legal/privacy/firefox">Privacy</a></li>
</ul>
</div>
{% endif %}
</div>
<aside class="grid_3">
{{ for_contributors_sidebar(user, settings.WIKI_DEFAULT_LANGUAGE) }}
{{ product_sidebar(products, product) }}
</aside>
<div class="grid_9">
{{ hot_topics(hot_docs, fallback_hot_docs) }}
<section id="help-topics">
<h1>{{ _('Help Topics') }}</h1>
{{ help_topics(topics[:5], show_community_support=True) }}
{% for topic in topics[5:10] %}
{% if loop.first %}<ul>{% endif %}
<li>
<a href="{{ url('products.documents', product_slug=product.slug, topic_slug=topic.slug) }}">{{ _(topic.title, 'DB: topics.Topic.title') }}</a>
</li>
{% if loop.last %}</ul>{% endif %}
{% endfor %}
</section>
</div>
{% endblock %}
{% block for_contributors %}{% endblock %}
{% block outer_side %}
{% endblock %}