forked from mozilla/zamboni
-
Notifications
You must be signed in to change notification settings - Fork 8
/
dashboard.html
88 lines (79 loc) · 2.66 KB
/
dashboard.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
{% extends "devhub/base.html" %}
{% block bodyclass %}{{ super() }} inverse{% endblock %}
{% block title %}{{ dev_page_title(_('Manage My Add-ons')) }}{% endblock %}
{% block content %}
<header>
{{ dev_breadcrumbs() }}
<hgroup>
<h2>{{ _('Manage My Add-ons') }}</h2>
{% if addons %}
{% set cnt = addons.paginator.count %}
{# L10n: {0} is an integer. #}
<h3>{{ ngettext('<b>{0}</b> add-on', '<b>{0}</b> add-ons',cnt)|f(cnt|numberfmt)|safe }}</h3>
{% endif %}
</hgroup>
</header>
{% if not addons %}
<div class="action-needed">
<h3>{{ _('Welcome to the Developer Dashboard') }}</h3>
<p>
{% trans %}
You don't currently have any add-ons hosted on Mozilla Add-ons. To learn
how the process works and submit your first add-on, click Get Started
below.
{% endtrans %}
</p>
<p class="button-wrapper">
<a href="{{ url('devhub.submit.1') }}"
class="action-button rounded">{{ _('Get Started') }}</a>
</p>
</div>
{% else %}
<section id="dashboard" class="primary" role="main">
<div class="featured listing">
<div class="featured-inner">
{% set url_base = url('devhub.addons') %}
{% if addons.paginator.num_pages > 1 %}
{{ addon_listing_header(url_base, sort_opts, sorting) }}
{% endif %}
{{ dev_addon_listing_items(addons.object_list) }}
{% if addons.paginator.num_pages > 1 %}
<div class="listing-footer">
{{ addons|paginator }}
</div>
{% endif %}
</div>{# /featured-inner #}
</div>
</section>
<section id="dashboard-sidebar" class="secondary" role="complementary">
<p id="submit-addon" class="cta">
<a href="{{ url('devhub.submit.1') }}"
class="button prominent">{{ _('Submit a New Add-on') }}</a>
</p>
<div class="recent-activity">
<h3>
{{ _('Recent Activity') }}
<a href="{{ rss }}" class="subscribe-feed" title="{{ _('Subscribe to this feed') }}">
{{ _('Subscribe to this feed') }}</a>
</h3>
{% if items %}
<ul>
{% for item in items %}
<li class="item">
{{ item }}
<span class="activity-timestamp">
{% trans user=item.user|user_link, ago=item.created|timesince %}
{{ ago }} by {{ user }}
{% endtrans %}
</span>
</li>
{% endfor %}
</ul>
{% endif %}
<p class="older-activity"><a href="{{ url('devhub.feed_all') }}">
{{ _('Older activity for My Add-ons') }} ►</a></p>
</div>
{% include "devhub/includes/blog_posts.html" %}
</section>
{% endif %}
{% endblock %}