Fix for HTML cache not taking in to account SSL status. Moved <script> tags to the...
authorJack Allnutt <m2ys4u@Gmail.com>
Tue, 20 Sep 2011 17:07:49 +0000 (18:07 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Tue, 20 Sep 2011 17:07:49 +0000 (18:07 +0100)
node/app.js
node/client/index.html.jade

index 94769a85f850b2d7f8a4b2c9ee10226b11d07fb6..0bf378181dc85e8afcb7aa3b876fe53f1244b14e 100644 (file)
@@ -591,6 +591,7 @@ this.httpHandler = function (request, response) {
             hash = crypto.createHash('md5').update(touchscreen ? 't' : 'f')
                 .update(debug ? 't' : 'f')
                 .update(server_set ? 't' : 'f')
+                .update(secure ? 't' : 'f')
                 .update(server)
                 .update(nick)
                 .update(agent)
index 0ab1d6c7aef27c6f47eaa72a59d06779b37f787f..e7eb904f3e12a078ca30af5a8c906e261a0eda62 100644 (file)
@@ -14,6 +14,87 @@ html(xmlns="http://www.w3.org/1999/xhtml", lang="en-gb")
         - if (touchscreen)
             link(rel="stylesheet", type="text/css", href="css/touchscreen_tweaks.css")
 
+    body
+
+        div#kiwi
+            div.connectwindow
+                h1.logo Kiwi IRC
+                div#login
+                    form.formconnectwindow
+                        div.content.top
+                            ul
+                                li
+                                    label(for="nick") Your nickname:
+                                    input(type="text", id="nick", name="nick", class="nick", placeholder="Your nick..", value=nick)
+                            a.connect(href="") Connect...
+
+                        - var display
+                        - if (server_set)
+                            - display = 'display:none'
+                        - else
+                            - display = '';
+                        div.more(style=display)
+                            a(href="", class="more_link") more
+                            div.content.bottom
+                                ul
+                                    li
+                                        label(for="network") Server:
+                                        input(type="text", id="network", name="network", class="network", value=server)
+                                    li
+                                        label(for="channel") Channel:
+                                        input(type="text", id="channel", name="channel", class="channel", value="#kiwiirc")
+                                    li(class="section")
+                                        label(for="port") Port:
+                                        input(type="text", id="port", name="port", class="port", value="6667")
+                                    li
+                                        label(for="ssl") SSL:
+                                        input(type="checkbox", id="ssl", name="ssl", class="ssl")
+                                a.connect(href="") Connect...
+
+
+            
+            div.toolbars
+                div.windowlist
+                    div.poweredby Powered by Kiwi IRC
+                    ul
+
+                div.utilityviewlist
+                    ul
+
+                div.cur_topic(contenteditable="true", spellcheck="true")
+                    //
+                        ul.edit(style="float:right;")
+                            li
+                                img(src="img/more.png")
+                                    ul#kiwi_menu
+                                        li Item 1
+                                        li Item 2
+                                        li Item 3
+                    div.topic(style="margin-right:5em; overflow:hidden; white-space: pre-wrap; word-wrap: break-word;")
+
+            div.userlist
+                ul
+
+            div#windows.windows
+                div#panel1.panel
+                    div.scroller(style="width:100%;height:100%;")
+
+                div#panel2.panel
+
+            div.control
+                div.msginput
+                    div.nick
+                        a
+                        | :
+                    input(type="text", name="kiwi_msginput", id="kiwi_msginput")
+                div.plugins
+                    ul
+                        li
+                            a.load_plugin_file Plugins
+                        - if (debug)
+                            li
+                                a.reload_css Reload CSS
+
         script(type="text/javascript", src="/socket.io/socket.io.js")
         script(type="text/javascript", src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js")
         script(type="text/javascript", src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js")
@@ -116,85 +197,4 @@ html(xmlns="http://www.w3.org/1999/xhtml", lang="en-gb")
             |        <input type="hidden" class="userbox_nick" value="${nick}" />
             |        <a class="userbox_query">Message</a>
             |        <a class="userbox_whois">Info</a>
-            |    </div>
-
-    body
-
-        div#kiwi
-            div.connectwindow
-                h1.logo Kiwi IRC
-                div#login
-                    form.formconnectwindow
-                        div.content.top
-                            ul
-                                li
-                                    label(for="nick") Your nickname:
-                                    input(type="text", id="nick", name="nick", class="nick", placeholder="Your nick..", value=nick)
-                            a.connect(href="") Connect...
-
-                        - var display
-                        - if (server_set)
-                            - display = 'display:none'
-                        - else
-                            - display = '';
-                        div.more(style=display)
-                            a(href="", class="more_link") more
-                            div.content.bottom
-                                ul
-                                    li
-                                        label(for="network") Server:
-                                        input(type="text", id="network", name="network", class="network", value=server)
-                                    li
-                                        label(for="channel") Channel:
-                                        input(type="text", id="channel", name="channel", class="channel", value="#kiwiirc")
-                                    li(class="section")
-                                        label(for="port") Port:
-                                        input(type="text", id="port", name="port", class="port", value="6667")
-                                    li
-                                        label(for="ssl") SSL:
-                                        input(type="checkbox", id="ssl", name="ssl", class="ssl")
-                                a.connect(href="") Connect...
-
-
-            
-            div.toolbars
-                div.windowlist
-                    div.poweredby Powered by Kiwi IRC
-                    ul
-
-                div.utilityviewlist
-                    ul
-
-                div.cur_topic(contenteditable="true", spellcheck="true")
-                    //
-                        ul.edit(style="float:right;")
-                            li
-                                img(src="img/more.png")
-                                    ul#kiwi_menu
-                                        li Item 1
-                                        li Item 2
-                                        li Item 3
-                    div.topic(style="margin-right:5em; overflow:hidden; white-space: pre-wrap; word-wrap: break-word;")
-
-            div.userlist
-                ul
-
-            div#windows.windows
-                div#panel1.panel
-                    div.scroller(style="width:100%;height:100%;")
-
-                div#panel2.panel
-
-            div.control
-                div.msginput
-                    div.nick
-                        a
-                        | :
-                    input(type="text", name="kiwi_msginput", id="kiwi_msginput")
-                div.plugins
-                    ul
-                        li
-                            a.load_plugin_file Plugins
-                        - if (debug)
-                            li
-                                a.reload_css Reload CSS
+            |    </div>
\ No newline at end of file