Add new icons for services, closes #12

This commit is contained in:
Ana Custura 2026-04-01 07:34:01 +01:00
parent 9754f8fc74
commit 1451e90976
13 changed files with 41 additions and 194 deletions

View file

@ -2,7 +2,7 @@ import io
import re
from app import app
from flask import render_template, flash, redirect, url_for, send_file
from flask import render_template, flash, redirect, url_for, send_file, send_from_directory
from app.forms import LoginForm, SettingsForm, Step1Form, Step2Form, Step3Form, Step4Form
from flask_login import login_user, current_user, logout_user, login_required
import sqlalchemy as sa
@ -101,20 +101,20 @@ def index():
#if enable_wifi_sharing == 'true':
# service_array.append({"name": _l("Share Access"), "image": url_for("static", filename="images/share-icon.svg"), "url": url_for("share")})
if enable_deltachat == 'true':
service_array.append({"name": _l("Secure Messenger"), "image": url_for("static", filename="images/deltachat-icon.svg"), "url": url_for("messaging") })
service_array.append({"name": _l("Secure Messenger"), "image": url_for("static", filename="images/SecureMessenger.svg"), "url": url_for("messaging") })
if enable_chat == 'true':
service_array.append({"name": _l("Local Chat"), "image": url_for("static", filename="images/chat-icon.png"), "url": f"{app.config["CONVENE_INSTALL_PATH"]}/#/room/join/%23public%3abutterbox.local"})
service_array.append({"name": _l("Local Chat"), "image": url_for("static", filename="images/LocalChat.svg"), "url": f"{app.config["CONVENE_INSTALL_PATH"]}/#/room/join/%23public%3abutterbox.local"})
if enable_file_viewer == 'true' and usb_has_appstore:
service_array.append({"name": _l("Apps"), "image": url_for("static", filename="images/appstore-icon.svg")})
service_array.append({"name": _l("Apps"), "image": url_for("static", filename="images/Apps.svg")})
if enable_file_viewer == 'true' and usb_has_maps:
service_array.append({"name": _l("Maps"), "image": url_for("static", filename="images/maps-icon.png")})
service_array.append({"name": _l("Maps"), "image": url_for("static", filename="images/Maps.svg")})
if enable_file_viewer == 'true':
name = _l("Files")
if not usb_inserted:
name = _l("Insert USB to browse files")
service_array.append({
"name": name,
"image": url_for("static", filename="images/explore-icon.svg"),
"image": url_for("static", filename="images/Files.svg"),
"url": url_for("files", path=""),})
return render_template('index.html', title='Home', get_setting=get_setting, services=service_array)