🌐 Mention that WoT takes time to create identities
[Sone.git] / src / main / resources / templates / options.html
1 <%include include/head.html>
2
3         <script type="application/javascript">
4                 $(document).ready(function() {
5                         getTranslation("WebInterface.DefaultText.Option.InsertionDelay", function(insertionDelayDefaultText) {
6                                 registerInputTextareaSwap("#sone #options input[name=insertion-delay]", insertionDelayDefaultText, "insertion-delay", true, true);
7                         });
8                         getTranslation("WebInterface.DefaultText.Option.PostsPerPage", function(postsPerPageText) {
9                                 registerInputTextareaSwap("#sone #options input[name=posts-per-page]", postsPerPageText, "posts-per-page", true, true);
10                         });
11                         getTranslation("WebInterface.DefaultText.Option.ImagesPerPage", function(imagesPerPageText) {
12                                 registerInputTextareaSwap("#sone #options input[name=images-per-page]", imagesPerPageText, "images-per-page", true, true);
13                         });
14                         getTranslation("WebInterface.DefaultText.Option.CharactersPerPost", function(postsPerPageText) {
15                                 registerInputTextareaSwap("#sone #options input[name=characters-per-post]", postsPerPageText, "characters-per-post", true, true);
16                         });
17                         getTranslation("WebInterface.DefaultText.Option.PostCutOffLength", function(postCutOffLengthText) {
18                                 registerInputTextareaSwap("#sone #options input[name=post-cut-off-length]", postCutOffLengthText, "post-cut-off-length", true, true);
19                         });
20                 });
21         </script>
22
23         <h1><%= Page.Options.Page.Title|l10n|html></h1>
24
25         <p><%= Page.Options.Page.Description|l10n|html></p>
26
27         <form id="options" method="post">
28                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
29
30                 <h2><%= Page.Options.Section.SoneSpecificOptions.Title|l10n|html></h2>
31
32                 <%ifnull currentSone>
33                         <p><%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle=="{link}" replacement=='<a href="login.html">'|replace needle=="{/link}" replacement=='</a>'></p>
34                 <%else>
35                         <p><%= Page.Options.Section.SoneSpecificOptions.LoggedIn|l10n|html></p>
36                 <%/if>
37
38                 <p>
39                         <input type="checkbox" name="auto-follow"<%ifnull currentSone> disabled="disabled"<%/if><%if auto-follow> checked="checked"<%/if> />
40                         <%= Page.Options.Option.AutoFollow.Description|l10n|html>
41                 </p>
42
43                 <p>
44                         <input type="checkbox" name="enable-sone-insert-notifications"<%ifnull currentSone> disabled="disabled"<%/if><%if enable-sone-insert-notifications> checked="checked"<%/if> />
45                         <%= Page.Options.Option.EnableSoneInsertNotifications.Description|l10n|html>
46                 </p>
47
48                 <p>
49                         <input type="checkbox" name="show-notification-new-sones"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-sones> checked="checked"<%/if>/>
50                         <%= Page.Options.Option.ShowNotificationNewSones.Description|l10n|html>
51                 </p>
52
53                 <p>
54                         <input type="checkbox" name="show-notification-new-posts"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-posts> checked="checked"<%/if>/>
55                         <%= Page.Options.Option.ShowNotificationNewPosts.Description|l10n|html>
56                 </p>
57
58                 <p>
59                         <input type="checkbox" name="show-notification-new-replies"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-replies> checked="checked"<%/if>/>
60                         <%= Page.Options.Option.ShowNotificationNewReplies.Description|l10n|html>
61                 </p>
62
63                 <h2><%= Page.Options.Section.AvatarOptions.Title|l10n|html></h2>
64
65                 <p><%= Page.Options.Option.ShowAvatars.Description|l10n|html></p>
66
67                 <ul>
68                         <li>
69                                 <input type="radio" name="show-custom-avatars" value="NEVER"<%if show-custom-avatars|match value==NEVER> checked="checked"<%/if>/>
70                                 <%=Page.Options.Option.ShowAvatars.Never.Description|l10n|html>
71                         </li>
72                         <li>
73                                 <input type="radio" name="show-custom-avatars" value="FOLLOWED"<%if show-custom-avatars|match value==FOLLOWED> checked="checked"<%/if>/>
74                                 <%=Page.Options.Option.ShowAvatars.Followed.Description|l10n|html>
75                         </li>
76                         <li>
77                                 <input type="radio" name="show-custom-avatars" value="MANUALLY_TRUSTED"<%if show-custom-avatars|match value==MANUALLY_TRUSTED> checked="checked"<%/if>/>
78                                 <%=Page.Options.Option.ShowAvatars.ManuallyTrusted.Description|l10n|html>
79                         </li>
80                         <li>
81                                 <input type="radio" name="show-custom-avatars" value="TRUSTED"<%if show-custom-avatars|match value==TRUSTED> checked="checked"<%/if>/>
82                                 <%=Page.Options.Option.ShowAvatars.Trusted.Description|l10n|html>
83                         </li>
84                         <li>
85                                 <input type="radio" name="show-custom-avatars" value="ALWAYS"<%if show-custom-avatars|match value==ALWAYS> checked="checked"<%/if>/>
86                                 <%=Page.Options.Option.ShowAvatars.Always.Description|l10n|html>
87                         </li>
88                 </ul>
89
90                 <h2><%= Page.Options.Section.LoadLinkedImagesOptions.Title|l10n|html></h2>
91
92                 <p><%= Page.Options.Option.LoadLinkedImages.Description|l10n|html></p>
93
94                 <ul>
95                         <li>
96                                 <input type="radio" name="load-linked-images" value="NEVER"<%if load-linked-images|match value==NEVER> checked="checked"<%/if>/>
97                                 <%=Page.Options.Option.LoadLinkedImages.Never.Description|l10n|html>
98                         </li>
99                         <li>
100                                 <input type="radio" name="load-linked-images" value="FOLLOWED"<%if load-linked-images|match value==FOLLOWED> checked="checked"<%/if>/>
101                                 <%=Page.Options.Option.LoadLinkedImages.Followed.Description|l10n|html>
102                         </li>
103                         <li>
104                                 <input type="radio" name="load-linked-images" value="MANUALLY_TRUSTED"<%if load-linked-images|match value==MANUALLY_TRUSTED> checked="checked"<%/if>/>
105                                 <%=Page.Options.Option.LoadLinkedImages.ManuallyTrusted.Description|l10n|html>
106                         </li>
107                         <li>
108                                 <input type="radio" name="load-linked-images" value="TRUSTED"<%if load-linked-images|match value==TRUSTED> checked="checked"<%/if>/>
109                                 <%=Page.Options.Option.LoadLinkedImages.Trusted.Description|l10n|html>
110                         </li>
111                         <li>
112                                 <input type="radio" name="load-linked-images" value="ALWAYS"<%if load-linked-images|match value==ALWAYS> checked="checked"<%/if>/>
113                                 <%=Page.Options.Option.LoadLinkedImages.Always.Description|l10n|html>
114                         </li>
115                 </ul>
116
117                 <h2><%= Page.Options.Section.RuntimeOptions.Title|l10n|html></h2>
118
119                 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
120                 <%if =insertion-delay|in collection=fieldErrors>
121                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
122                 <%/if>
123                 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
124
125                 <p><%= Page.Options.Option.PostsPerPage.Description|l10n|html></p>
126                 <%if =posts-per-page|in collection=fieldErrors>
127                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
128                 <%/if>
129                 <p><input type="text" name="posts-per-page" value="<% posts-per-page|html>" /></p>
130
131                 <p><%= Page.Options.Option.ImagesPerPage.Description|l10n|html></p>
132                 <%if =images-per-page|in collection=fieldErrors>
133                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
134                 <%/if>
135                 <p><input type="text" name="images-per-page" value="<% images-per-page|html>" /></p>
136
137                 <p><%= Page.Options.Option.CharactersPerPost.Description|l10n|html></p>
138                 <%if =characters-per-post|in collection=fieldErrors>
139                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
140                 <%/if>
141                 <p><input type="text" name="characters-per-post" value="<% characters-per-post|html>" /></p>
142
143                 <p><%= Page.Options.Option.PostCutOffLength.Description|l10n|html></p>
144                 <%if =post-cut-off-length|in collection=fieldErrors>
145                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
146                 <%/if>
147                 <p><input type="text" name="post-cut-off-length" value="<% post-cut-off-length|html>" /></p>
148
149                 <p>
150                         <input type="checkbox" name="require-full-access"<%if require-full-access> checked="checked"<%/if> />
151                         <%= Page.Options.Option.RequireFullAccess.Description|l10n|html></p>
152                 </p>
153
154                 <h2><%= Page.Options.Section.FcpOptions.Title|l10n|html></h2>
155
156                 <p><input type="checkbox" name="fcp-interface-active"<%if fcp-interface-active> checked="checked"<%/if> /> <%= Page.Options.Option.FcpInterfaceActive.Description|l10n|html></p>
157
158                 <p>
159                         <%= Page.Options.Option.FcpFullAccessRequired.Description|l10n|html|replace needle=="{link}" replacement=='<a href="/config/fcp">'|replace needle=="{/link}" replacement=='</a>'>
160                         <select name="fcp-full-access-required">
161                                 <option value="0"<%if fcp-full-access-required|match value=="0"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.No|l10n|html></option>
162                                 <option value="1"<%if fcp-full-access-required|match value=="1"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Writing|l10n|html></option>
163                                 <option value="2"<%if fcp-full-access-required|match value=="2"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Always|l10n|html></option>
164                         </select>
165                 </p>
166
167                 <h2><%= Page.Options.Section.WebOfTrustOptions.Title|l10n|html></h2>
168
169                 <p><input type="checkbox" name="strict-filtering"<%if strict-filtering> checked="checked"<%/if> /> <%= Page.Options.Option.StrictFiltering.Description|l10n|html></p>
170
171                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
172
173         </form>
174
175 <%include include/tail.html>