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 index(boolean banner, List