mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
- Fix icon paths in copyright file. - Minor refactoring. - Add Kiwix library link to app page as well as users may want to see the content available before installing the app. - Consolidate terminology to 'content package' for UI and just 'package' internally. - Drop unused SYSTEM_USER constant. - Simplify the ExecStart= in systemd service file. - Fix incorrect i18n caused by non-lazy formatting of strings. - Confirm that xml parsing is not vulnerable as expat library of required version is used in Debian bookworm. - Don't start the kiwix daemon when managing library if app is disabled. - Ignore errors when removing files during uninstallation. - Handle failures more gracefully when library XML file does not have required attributes. - Update SVG/PNG icons to adhere to FreedomBox guidelines. - Trim block translations in templates. - Drop comments/deadcode inside translation strings. - Drop a comment inside add content page that only makes sense with multiple methods for adding content. - tests: Don't use pkg_resources library as it is deprecated. We can use importlib.resources library in future if we run tests on zip installations. - Fix potential security issues while writing file to tmp directory. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
48 lines
1.4 KiB
HTML
48 lines
1.4 KiB
HTML
{% extends "app.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block configuration %}
|
|
{{ block.super }}
|
|
|
|
<h3>{% trans "Manage Content Packages" %}</h3>
|
|
|
|
<div class="btn-toolbar">
|
|
<a href="{% url 'kiwix:add-package' %}" class="btn btn-default"
|
|
role="button" title="{% trans 'Add a content package' %}">
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
|
{% trans 'Add Package' %}
|
|
</a>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
{% if not packages %}
|
|
<p>{% trans 'No content packages available.' %}</p>
|
|
{% else %}
|
|
<div id="kiwix-packages" class="list-group list-group-two-column">
|
|
{% for id, package in packages.items %}
|
|
<div class="list-group-item">
|
|
<a id="{{ id }}" class="primary"
|
|
href="/kiwix/viewer#{{ package.path }}"
|
|
title="{{ package.description }}">
|
|
{{ package.title }}
|
|
</a>
|
|
|
|
<a href="{% url 'kiwix:delete-package' id %}"
|
|
class="btn btn-default btn-sm secondary" role="button"
|
|
title="{% blocktrans with title=package.title %}Delete package {{ title }}{% endblocktrans %}">
|
|
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|