import java.util.ArrayList;
import java.util.List;
+import net.pterodactylus.util.template.ClassPathTemplateProvider;
import net.pterodactylus.util.template.CollectionSortFilter;
import net.pterodactylus.util.template.HtmlFilter;
import net.pterodactylus.util.template.ReflectionAccessor;
CollectionSortFilter sortFilter = new CollectionSortFilter();
sortFilter.addComparator(Identity.class, IdentityComparator.NAME);
templateContextFactory.addFilter("sort", sortFilter);
+ templateContextFactory.addProvider(new ClassPathTemplateProvider(WebInterface.class));
}
//
+<%include include/head.html>
<h1>Add target.</h1>
<p>An error occured.</p>
+<%include include/tail.html>
\ No newline at end of file
--- /dev/null
+<div id="wotns">
\ No newline at end of file
--- /dev/null
+</div>
\ No newline at end of file
+<%include include/head.html>
<h1>WoTNS</h1>
<p>Yay, Index!</p>
<button type="submit" name="enable">Enable</button>
</form>
<%/foreach>
+<%include include/tail.html>
\ No newline at end of file
+<%include include/head.html>
<h1>Manage “<%ownIdentity.nickname|html>”</h1>
<%foreach ownIdentity.targets target>
<%first>
<input type="text" name="target" value=""/>
<button type="submit" name="add">Add</button>
</form>
+<%include include/tail.html>
\ No newline at end of file
+<%include include/head.html>
<h1>Unknown name</h1>
-<p>The name “<%shortName|html>” is unknown.</p>
\ No newline at end of file
+<p>The name “<%shortName|html>” is unknown.</p>
+<%include include/tail.html>
\ No newline at end of file