mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Removed sass compiler usage from web.js, updated jade templates to use blocks
This commit is contained in:
parent
cf53413bff
commit
88d2abab58
@ -2,9 +2,8 @@ var express = require('express');
|
|||||||
|
|
||||||
var webInterface = function(dbot) {
|
var webInterface = function(dbot) {
|
||||||
var pub = 'public';
|
var pub = 'public';
|
||||||
var app = express.createServer();
|
var app = express();
|
||||||
|
|
||||||
app.use(express.compiler({ src: pub, enable: ['sass'] }));
|
|
||||||
app.use(express.static(pub));
|
app.use(express.static(pub));
|
||||||
app.set('view engine', 'jade');
|
app.set('view engine', 'jade');
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
h3 Channels on #{connection}
|
h3 Channels on #{connection}
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/connections') « Connection List
|
a(href='/connections') « Connection List
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
h3 Current Connections
|
h3 Current Connections
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/') « Home
|
a(href='/') « Home
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
#modulelinks
|
#modulelinks
|
||||||
a.module(href='/quotes') Quotes
|
a.module(href='/quotes') Quotes
|
||||||
a.module(href='/polls') Polls
|
a.module(href='/polls') Polls
|
||||||
|
@ -9,5 +9,5 @@ html(lang='en')
|
|||||||
div#title
|
div#title
|
||||||
a(href='/') #{name} web interface
|
a(href='/') #{name} web interface
|
||||||
div#main
|
div#main
|
||||||
!{body}
|
block content
|
||||||
script(type="text/javascript", src="/script.js")
|
script(type="text/javascript", src="/script.js")
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/') « Home
|
a(href='/') « Home
|
||||||
div#controls
|
div#controls
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/') « Home
|
a(href='/') « Home
|
||||||
div#controls
|
div#controls
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/quotes/') « Quote list
|
a(href='/quotes/') « Quote list
|
||||||
ul#quotelist
|
ul#quotelist
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
h3 #{user}'s profile
|
h3 #{user}'s profile
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/users/'+connection+'/'+channel.substr(1,channel.length)) « #{channel} Nick List
|
a(href='/users/'+connection+'/'+channel.substr(1,channel.length)) « #{channel} Nick List
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block content
|
||||||
h3 Users currently in #{channel} on #{connection}
|
h3 Users currently in #{channel} on #{connection}
|
||||||
div#backlink
|
div#backlink
|
||||||
a(href='/channels/'+connection) « Channel List
|
a(href='/channels/'+connection) « Channel List
|
||||||
|
Loading…
Reference in New Issue
Block a user