X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Foptions.html;h=2adf57e2dadd0f382c5efaaecf68e36a65bb37d8;hb=43a21f859e9fec31096c1540148bdd44a8e3702f;hp=dfeb3e9ec06955d6d66fa1281b4d839815e196e6;hpb=2fef2b7dae1fb428e1b060b740b253189dc22bf7;p=Sone.git diff --git a/src/main/resources/templates/options.html b/src/main/resources/templates/options.html index dfeb3e9..2adf57e 100644 --- a/src/main/resources/templates/options.html +++ b/src/main/resources/templates/options.html @@ -8,6 +8,12 @@ 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.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); }); @@ -31,6 +37,8 @@ <%ifnull currentSone>
<%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement=''>
+ <%else> +<%= Page.Options.Section.SoneSpecificOptions.LoggedIn|l10n|html>
<%/if>@@ -38,20 +46,54 @@ <%= 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> +
+<%= 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.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>
@@ -70,11 +112,6 @@ -<%= Page.Options.Option.SoneRescueMode.Description|l10n|html>
--
<%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement=""|replace needle="{/strong}" replacement="">