striptags for all user-entered strings
[mygpo.git] / mygpo / web / templates / devicelist.html
bloba3d6b3f70ec92f5c1ab88a80764deeab8d6325f5
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load humanize %}
4 {% load devices %}
6 {% block content %}
7 <h1>{% trans "Device List" %}</h1>
9 <table class="list">
10 <tr>
11 <th>{% trans "Name" %}</th>
12 <th>{% trans "Type" %}</th>
13 <th>{% trans "UID" %}</th>
14 </tr>
15 {% for d in devices %}
16 {% ifchanged d.sync_group %}
17 <tr class="group">
18 <td colspan="3">
19 {% if not d.sync_group %}{% trans "Not synchronized" %}
20 {% else %}{% trans "Synchronized" %}
21 {% endif %}
22 </td>
23 </tr>
24 {% endifchanged %}
25 <tr>
26 <td><a href="/device/{{ d.id }}">{{ d|device_icon }}{{ d.name|striptags }}</a></td>
27 <td>{{ d|device_type }}</td>
28 <td>{{ d.uid|striptags }}</td>
29 </tr>
30 {% endfor %}
31 </table>
33 <div class="info"><strong>{% trans "How do I add a new device?" %}</strong> {% trans "Just upload your subscriptions with a new device using gPodder, and it will automatically show up in this list." %}</div>
34 {% endblock %}