X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Foptions.html;h=0879ed1569cb55d5ead3d58a3b5c69b4031fa5ce;hb=53b2adecec6cd19deff36735031eefdecac75701;hp=76cbfc4d539d861361cb5a7d1ed6eba01c85552a;hpb=e3395d9dd51f56240e4cb9509ccd403bf5f9e343;p=Sone.git diff --git a/src/main/resources/templates/options.html b/src/main/resources/templates/options.html index 76cbfc4..0879ed1 100644 --- a/src/main/resources/templates/options.html +++ b/src/main/resources/templates/options.html @@ -8,6 +8,24 @@ getTranslation("WebInterface.DefaultText.Option.PostsPerPage", function(postsPerPageText) { registerInputTextareaSwap("#sone #options input[name=posts-per-page]", postsPerPageText, "posts-per-page", true, true); }); + getTranslation("WebInterface.DefaultText.Option.ImagesPerPage", function(imagesPerPageText) { + registerInputTextareaSwap("#sone #options input[name=images-per-page]", imagesPerPageText, "images-per-page", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.CharactersPerPost", function(postsPerPageText) { + registerInputTextareaSwap("#sone #options input[name=characters-per-post]", postsPerPageText, "characters-per-post", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.PostCutOffLength", function(postCutOffLengthText) { + registerInputTextareaSwap("#sone #options input[name=post-cut-off-length]", postCutOffLengthText, "post-cut-off-length", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.PositiveTrust", function(positiveTrustText) { + registerInputTextareaSwap("#sone #options input[name=positive-trust]", positiveTrustText, "positive-trust", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.NegativeTrust", function(negativeTrustText) { + registerInputTextareaSwap("#sone #options input[name=negative-trust]", negativeTrustText, "negative-trust", true, true); + }); + getTranslation("WebInterface.DefaultText.Option.TrustComment", function(trustCommentText) { + registerInputTextareaSwap("#sone #options input[name=trust-comment]", trustCommentText, "trust-comment", true, true); + }); }); @@ -21,7 +39,9 @@
<%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement=''>
+<%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle=="{link}" replacement==''|replace needle=="{/link}" replacement==''>
+ <%else> +<%= Page.Options.Section.SoneSpecificOptions.LoggedIn|l10n|html>
<%/if>@@ -29,37 +49,128 @@ <%= Page.Options.Option.AutoFollow.Description|l10n|html>
++ disabled="disabled"<%/if><%if enable-sone-insert-notifications> checked="checked"<%/if> /> + <%= Page.Options.Option.EnableSoneInsertNotifications.Description|l10n|html> +
+ ++ disabled="disabled"<%/if><%if show-notification-new-sones> checked="checked"<%/if>/> + <%= Page.Options.Option.ShowNotificationNewSones.Description|l10n|html> +
+ ++ disabled="disabled"<%/if><%if show-notification-new-posts> checked="checked"<%/if>/> + <%= Page.Options.Option.ShowNotificationNewPosts.Description|l10n|html> +
+ ++ disabled="disabled"<%/if><%if show-notification-new-replies> checked="checked"<%/if>/> + <%= Page.Options.Option.ShowNotificationNewReplies.Description|l10n|html> +
+ +<%= Page.Options.Option.ShowAvatars.Description|l10n|html>
+ +<%= Page.Options.Option.InsertionDelay.Description|l10n|html>
+ <%if =insertion-delay|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if><%= Page.Options.Option.PostsPerPage.Description|l10n|html>
+ <%if =posts-per-page|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if> +<%= Page.Options.Option.ImagesPerPage.Description|l10n|html>
+ <%if =images-per-page|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if> + + +<%= Page.Options.Option.CharactersPerPost.Description|l10n|html>
+ <%if =characters-per-post|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if> + + +<%= Page.Options.Option.PostCutOffLength.Description|l10n|html>
+ <%if =post-cut-off-length|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if> + + ++ checked="checked"<%/if> /> + <%= Page.Options.Option.RequireFullAccess.Description|l10n|html>
+ +<%= Page.Options.Option.PositiveTrust.Description|l10n|html>
+ <%if =positive-trust|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if><%= Page.Options.Option.NegativeTrust.Description|l10n|html>
+ <%if =negative-trust|in collection=fieldErrors> +<%= Page.Options.Warnings.ValueNotChanged|l10n|html>
+ <%/if><%= Page.Options.Option.TrustComment.Description|l10n|html>
-checked="checked"<%/if> /> <%= Page.Options.Option.FcpInterfaceActive.Description|l10n|html>
-<%= Page.Options.Option.SoneRescueMode.Description|l10n|html>
-+
+ <%= Page.Options.Option.FcpFullAccessRequired.Description|l10n|html|replace needle=="{link}" replacement==''|replace needle=="{/link}" replacement==''> + +
-<%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement=""|replace needle="{/strong}" replacement="">
-+
<%= Page.Options.Section.CompatibilityOptions.Description|l10n|html>
-<%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement=""|replace needle="{/strong}" replacement="">
-+
+ checked="checked"<%/if> /> + <%= Page.Options.Option.CompatibilityOptions.OldElementIds.Description|l10n|html> +