X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2Fweb%2Ftemplates%2FWebLibraryServerTemplates.java;h=31abe69919acaf217e85c53c754d7a7d0b54a626;hb=258e065f81071a861711ef935dca3ec5563f4360;hp=ba4deb83f290739407822fc4933802633fb5bf0e;hpb=8639c60de668b16a3aab1f673da58514c8430de9;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/web/templates/WebLibraryServerTemplates.java b/src/be/nikiroo/fanfix/library/web/templates/WebLibraryServerTemplates.java deleted file mode 100644 index ba4deb8..0000000 --- a/src/be/nikiroo/fanfix/library/web/templates/WebLibraryServerTemplates.java +++ /dev/null @@ -1,166 +0,0 @@ -package be.nikiroo.fanfix.library.web.templates; - -import java.util.List; - -import be.nikiroo.fanfix.Instance; -import be.nikiroo.fanfix.bundles.UiConfig; -import be.nikiroo.fanfix.library.Template; -import be.nikiroo.utils.Version; - -public class WebLibraryServerTemplates { - static private WebLibraryServerTemplates instance = new WebLibraryServerTemplates(); - - static public WebLibraryServerTemplates getInstance() { - return instance; - } - - public Template bookline(String luid, String href, String title, - String author, boolean cached) { - - String cachedClass = "cached"; - String cachedValue = "◉"; - if (!cached) { - cachedClass = "uncached"; - cachedValue = "○"; - } - - return new Template(getClass(), "bookline.html") // - .set("href", href) // - .set("cachedClass", cachedClass) // - .set("cached", cachedValue) // - .set("luid", luid) // - .set("title", title) // - .set("author", author) // - ; - } - - public Template browser(String selectedValue, String filter, - List