Don’t show “web of trust is missing” notification the old way.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 16 Nov 2010 04:53:32 +0000 (05:53 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 16 Nov 2010 21:18:30 +0000 (22:18 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/include/head.html
src/main/resources/templates/wotPluginMissing.html [deleted file]

index 5e0a168..a74c125 100644 (file)
@@ -272,7 +272,6 @@ public class WebInterface implements CoreListener {
                Template unfollowSoneTemplate = templateFactory.createTemplate(createReader("/templates/unfollowSone.html"));
                Template deleteSoneTemplate = templateFactory.createTemplate(createReader("/templates/deleteSone.html"));
                Template noPermissionTemplate = templateFactory.createTemplate(createReader("/templates/noPermission.html"));
-               Template wotPluginMissingTemplate = templateFactory.createTemplate(createReader("/templates/wotPluginMissing.html"));
                Template dismissNotificationTemplate = templateFactory.createTemplate(createReader("/templates/dismissNotification.html"));
                Template logoutTemplate = templateFactory.createTemplate(createReader("/templates/logout.html"));
                Template optionsTemplate = templateFactory.createTemplate(createReader("/templates/options.html"));
@@ -300,7 +299,6 @@ public class WebInterface implements CoreListener {
                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("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 DismissNotificationPage(dismissNotificationTemplate, this)));
                pageToadlets.add(pageToadletFactory.createPageToadlet(new StaticPage("css/", "/static/css/", "text/css")));
                pageToadlets.add(pageToadletFactory.createPageToadlet(new StaticPage("javascript/", "/static/javascript/", "text/javascript")));
index b4353b1..546e774 100644 (file)
@@ -144,8 +144,6 @@ Page.NoPermission.Text.NoPermission=You tried to do something that you do not ha
 
 Page.DismissNotification.Title=Dismiss Notification - Sone
 
-Page.WotPluginMissing.Title=Web of Trust Plugin Missing - Sone
-Page.WotPluginMissing.Page.Title=Web of Trust Plugin Missing
 Page.WotPluginMissing.Text.WotRequired=Because the Web of Trust is an integral part of Sone, the Web of Trust plugin has to be loaded in order to run Sone.
 Page.WotPluginMissing.Text.LoadPlugin=Please load the Web of Trust plugin in the {link}plugin manager{/link}.
 
@@ -202,8 +200,6 @@ WebInterface.ClickToShow.Replies=Click here to show hidden replies.
 WebInterface.Notification.NewPostCount=You have new posts:
 WebInterface.Notification.NewReplyCount=You have new replies:
 
-Warning.PluginNotConnected.Text=The Web of Trust plugin could not be found! This can happen if the Web of Trust plugin is not loaded or if your node is currently still starting up. In the first case, load the Web of Trust plugin using the {link}plugin manager{/link}, in the second case wait until the Web of Trust plugin has been loaded, because in either case Sone will not be working unless the Web of Trust plugin is loaded!
-
 Notification.Startup.Text=Sone is currently starting up. It may take a while to retrieve all identities and Sones from the web of trust. If you are missing some elements, please be patient, they will probably reappear very soon.
 Notification.Button.Dismiss=Dismiss
 Notification.NewSone.Text=New Sones have been discovered:
index 41c7971..7b6cc28 100644 (file)
 
        <div id="main">
 
-               <%if !webInterface.core.identityManager.connected>
-                       <div id="plugin-warning">
-                               <%= Warning.PluginNotConnected.Text|l10n|html|replace needle="{link}" replacement="<a href=\"/plugins/\">"|replace needle="{/link}" replacement="</a>">
-                       </div>
-               <%/if>
-
                <div id="notification-area">
 
                        <form id="notification-dismiss-template" class="hidden dismiss" action="dismissNotification.html" method="post">
diff --git a/src/main/resources/templates/wotPluginMissing.html b/src/main/resources/templates/wotPluginMissing.html
deleted file mode 100644 (file)
index 4db624e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<%include include/head.html>
-
-       <h1><%= Page.WotPluginMissing.Page.Title|l10n|html></h1>
-
-       <p><%= Page.WotPluginMissing.Text.WotRequired|l10n|html></p>
-
-       <p><%= Page.WotPluginMissing.Text.LoadPlugin|l10n|html|replace needle="{link}" replacement='<a href="/plugins/">'|replace needle="{/link}" replacement='</a>'></p>
-
-<%include include/tail.html>