-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
vendor.html
66 lines (56 loc) · 2.1 KB
/
vendor.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
{% extends "base.html" %}
{% load i18n %}
{% block description %}{% blocktrans with vendor.name as vendor_name %}Database of supported phones from {{ vendor_name }} in Gammu and Wammu, the software for managing GSM cell phones.{% endblocktrans %}{% endblock %}
{% block extrakeywords %},{{ vendor.name }}{% endblock %}
{% block title %}{{ vendor.name }} - {% trans "Gammu Phone Database " %}{% endblock %}
{% block content %}
<ol class="breadcrumb">
<li><a href="/">{% trans "Home" %}</a></li>
<li><a href="/phones/">{% trans "Phones Database" %}</a></li>
<li class="active">{{ vendor.name }}</li>
<li class="pull-right action"><a href="/phones/new/?vendor={{ vendor.slug }}"><i class="fa fa-plus"></i> {% trans "Add new record" %}</a></li>
</ol>
<h2>{{ vendor.name }}</h2>
<p>
{% trans "Website" %}: <a href="{{ vendor.url }}">{{ vendor.url }}</a>
</p>
<p>
{% if phones.object_list %}
{% blocktrans count phones.paginator.count as count %}
There is currently {{ count }} phone record from this vendor.
{% plural %}
There are currently {{ count }} phone records from this vendor.
{% endblocktrans %}
{% else %}
{% blocktrans %}
There is currently none phone record from this vendor!
{% endblocktrans %}
{% endif %}
{% blocktrans with vendor.slug as slug %}
To change existing entries, simply <a href="/phones/new/?vendor={{ slug }}">add new one</a>, they will be reviewed and the
old ones will get deleted eventually.
{% endblocktrans %}
</p>
{% if phones.object_list %}
{% with phones.object_list as phones %}
{% include "phonedb/list.html" %}
{% endwith %}
<nav>
<ul class="pagination">
{% if phones.has_previous %}
<li><a href="?page={{ phones.previous_page_number }}">«</a></li>
{% else %}
<li class="disabled"><span>«</span></li>
{% endif %}
{% for page in phones.paginator.page_range %}
<li {% if page == phones.number %} class="active" {% endif %}><a href="?page={{ page }}">{{ page }}</a></li>
{% endfor %}
{% if phones.has_next %}
<li><a href="?page={{ phones.next_page_number }}">»</a></li>
{% else %}
<li class="disabled"><span>»</span></li>
{% endif %}
</ul>
</nav>
{% endif %}
{% endblock %}