Add possibility to have an extra file path after the target.
[WoTNS.git] / src / main / resources / templates / index.html
1 <%include include/head.html>
2 <h1>WoTNS</h1>
3 <p>The Web of Trust Name Service uses properties of Web of Trust identities to implement a DNS-like scheme on top of Freenet.</p>
4 <p>The general syntax is: <code>http://<%request.host>/tns/<i>identity[@start-of-key]</i>/<i>target</i>[/<i>path</i>]</code>.</p>
5 <p><i>identity</i> is the nickname of a Web of Trust identity, such as “WoTNS”. It is also possible to include the beginning of the identity’s
6 key into <i>identity</i>, in the form of <i>nickname@start-of-key</i>, such as “WoTNS@DAx”.</p>
7 <p>The <i>target</i> consists of a name chosen by the remote identity. It can consist of latin latters, digits, and periods (and the final name
8 has to fulfill the Web of Trust’s requirement for a valid property name.</p>
9 <p>The <i>target</i> can be followed by a path, such as “more_content.html”, that will be appended to whatever the target is set to,
10 including the slash between <i>target</i> and <i>path</i>.</p>
11 <p>To be able to add targets for one of your identities, you first have to create an identity using the <a href="/WebOfTrust/">Web of Trust</a>,
12 and you have to enable the identity here.</p>
13
14 <%foreach enabledIdentities identity|sort>
15         <%first>
16                 <h1>Enabled Identities</h1>
17         <%/first>
18         <form action="enableIdentity.html" method="post">
19                 <input type="hidden" name="formPassword" value="<%formPassword|html>"/>
20                 <input type="hidden" name="ownIdentity" value="<%identity.id|html>"/>
21                 <a href="manage.html?ownIdentity=<%identity.id|html>"><%identity.nickname|html></a>
22                 <button type="submit" name="disable">Disable</button>
23         </form>
24 <%/foreach>
25
26 <%foreach disabledIdentities identity|sort>
27         <%first>
28                 <h1>Disabled Identities</h1>
29         <%/first>
30         <form action="enableIdentity.html" method="post">
31                 <input type="hidden" name="formPassword" value="<%formPassword|html>"/>
32                 <input type="hidden" name="ownIdentity" value="<%identity.id|html>"/>
33                 <%identity.nickname|html>
34                 <button type="submit" name="enable">Enable</button>
35         </form>
36 <%/foreach>
37 <%include include/tail.html>