From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 10:32:58 +0000 (+0100) Subject: Remove the “help” page. X-Git-Tag: 0.2-RC1~17 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ae12f64c0fa0708aba5aa72295175f7a40b2dea0;p=Sone.git Remove the “help” page. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 7fb8da9..725b47b 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -213,7 +213,6 @@ public class WebInterface { Template logoutTemplate = templateFactory.createTemplate(createReader("/templates/logout.html")); Template optionsTemplate = templateFactory.createTemplate(createReader("/templates/options.html")); Template aboutTemplate = templateFactory.createTemplate(createReader("/templates/about.html")); - Template helpTemplate = templateFactory.createTemplate(createReader("/templates/help.html")); PageToadletFactory pageToadletFactory = new PageToadletFactory(sonePlugin.pluginRespirator().getHLSimpleClient(), "/Sone/"); pageToadlets.add(pageToadletFactory.createPageToadlet(new IndexPage(indexTemplate, this), "Index")); @@ -236,7 +235,6 @@ public class WebInterface { pageToadlets.add(pageToadletFactory.createPageToadlet(new LogoutPage(logoutTemplate, this), "Logout")); pageToadlets.add(pageToadletFactory.createPageToadlet(new OptionsPage(optionsTemplate, this), "Options")); pageToadlets.add(pageToadletFactory.createPageToadlet(new AboutPage(aboutTemplate, this, SonePlugin.VERSION), "About")); - pageToadlets.add(pageToadletFactory.createPageToadlet(new SoneTemplatePage("help.html", helpTemplate, "Page.Help.Title", this), "Help")); pageToadlets.add(pageToadletFactory.createPageToadlet(new SoneTemplatePage("noPermission.html", noPermissionTemplate, "Page.NoPermission.Title", this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new SoneTemplatePage("wotPluginMissing.html", wotPluginMissingTemplate, "Page.WotPluginMissing.Title", this))); pageToadlets.add(pageToadletFactory.createPageToadlet(new StaticPage("css/", "/static/css/", "text/css"))); diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index bc9dc84..7402be0 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -18,16 +18,6 @@ Navigation.Menu.Item.Options.Name=Options Navigation.Menu.Item.Options.Tooltip=Options for the Sone plugin Navigation.Menu.Item.About.Name=About Navigation.Menu.Item.About.Tooltip=Information about Sone -Navigation.Menu.Item.Help.Name=Help -Navigation.Menu.Item.Help.Tooltip=The Sone User Manual - -Page.Help.Title=Help - Sone -Page.Help.Page.Title=The Sone User Manual -Page.Help.Text.Introduction=Though Sone aims to be very easy to use there probably are a couple of functions that need to be explained. -Page.Help.Topic.Blocking.Title=What is “blocking?” -Page.Help.Topic.Blocking.Text=“Blocking a Sone” means to exclude it from the current Sone distribution method. Every time your Sone is updated, a list of all Sones you know is distributed as well—unless you block or blacklist a Sone. -Page.Help.Topic.Blacklisting.Title=What is the difference between “blocking” and “blacklisting?” -Page.Help.Topic.Blacklisting.Text=Blocking a Sone is only possible when you are logged in to a Sone so you can choose to not distribute somebody else’s Sone per Sone. Blacklisting works globally—a blacklisted Sone will not be distributed by any Sone on your node, starting with the next update of each Sone. A blacklisted Sone will also not appear in your “Known Sones” anymore, it will only be shown on the “Blacklist” page. Page.About.Title=About - Sone Page.About.Page.Title=About diff --git a/src/main/resources/templates/help.html b/src/main/resources/templates/help.html deleted file mode 100644 index f4a2f20..0000000 --- a/src/main/resources/templates/help.html +++ /dev/null @@ -1,15 +0,0 @@ -<%include include/head.html> - -

<%= Page.Help.Page.Title|l10n|html>

- -

<%= Page.Help.Text.Introduction|l10n|html>

- -

<%= Page.Help.Topic.Blocking.Title|l10n|html>

- -

<%= Page.Help.Topic.Blocking.Text|l10n|html>

- -

<%= Page.Help.Topic.Blacklisting.Title|l10n|html>

- -

<%= Page.Help.Topic.Blacklisting.Text|l10n|html>

- -<%include include/tail.html>