From 90d3686163b6eff25fcb8a99bb52486a9f9c1f9f Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 07 Apr 2021 12:48:56 +0000
Subject: [PATCH] Einstellungen
---
src/de/uhilger/mediaz/store/StorageFile.java | 19 ++++++++++++++++---
www/ui/app.css | 6 ++++++
www/ui/data/tpl/katalog_root_liste.tpl | 2 +-
src/de/uhilger/mediaz/api/ListFileHandler.java | 2 --
4 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/src/de/uhilger/mediaz/api/ListFileHandler.java b/src/de/uhilger/mediaz/api/ListFileHandler.java
index acd3243..cb24df1 100644
--- a/src/de/uhilger/mediaz/api/ListFileHandler.java
+++ b/src/de/uhilger/mediaz/api/ListFileHandler.java
@@ -29,9 +29,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
diff --git a/src/de/uhilger/mediaz/store/StorageFile.java b/src/de/uhilger/mediaz/store/StorageFile.java
index a5d8b52..29b4851 100644
--- a/src/de/uhilger/mediaz/store/StorageFile.java
+++ b/src/de/uhilger/mediaz/store/StorageFile.java
@@ -1,7 +1,19 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ Mediazentrale - Personal Media Center
+ Copyright (C) 2021 Ulrich Hilger
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.uhilger.mediaz.store;
@@ -15,6 +27,7 @@
public static final String TYP_FILE = "file";
public static final String TYP_AUDIO = "audio";
public static final String TYP_VIDEO = "video";
+ public static final String TYP_KATALOG = "katalog";
private String name;
private String typ;
diff --git a/www/ui/app.css b/www/ui/app.css
index 2ace15c..293101a 100644
--- a/www/ui/app.css
+++ b/www/ui/app.css
@@ -193,6 +193,12 @@
padding-right: 0.3rem;
}
+.entity-typ-katalog:before {
+ font-family: "pikto";
+ content: '\f1c0'; /* icon-database */
+ padding-right: 0.3rem;
+}
+
.form-button-footer {
display: flex;
flex-flow: row;
diff --git a/www/ui/data/tpl/katalog_root_liste.tpl b/www/ui/data/tpl/katalog_root_liste.tpl
index ec4280e..abf177a 100644
--- a/www/ui/data/tpl/katalog_root_liste.tpl
+++ b/www/ui/data/tpl/katalog_root_liste.tpl
@@ -6,7 +6,7 @@
</div>
<ul class='entity-liste'>
{{#ArrayList}}
- <li class='entity-eintrag'>{{.}}</li>
+ <li class='entity-eintrag entity-typ-katalog'>{{.}}</li>
{{/ArrayList}}
</ul>
</div>
--
Gitblit v1.9.3