3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +01:00

fix up report for use with login

This commit is contained in:
reality 2013-07-29 21:08:41 +00:00
parent 21b2b4eec3
commit 9a99d5eb47
5 changed files with 10 additions and 8 deletions

View File

@ -2,5 +2,7 @@
"ignorable": true,
"notifyVoice": false,
"dependencies": [ "users" ],
"dbType": "redis"
"dbType": "redis",
"requireWebLogin": true,
"webAccess": "power_users"
}

View File

@ -2,14 +2,14 @@ var _ = require('underscore')._;
var pages = function(dbot) {
return {
'/notify': function(req, res) {
'/report': function(req, res) {
res.render('servers', {
'name': dbot.config.name,
'servers': _.keys(dbot.config.servers)
});
},
'/notify/:server': function(req, res) {
'/report/:server': function(req, res) {
var server = req.params.server;
res.render('channels', {
'name': dbot.config.name,
@ -18,7 +18,7 @@ var pages = function(dbot) {
});
},
'/notify/:server/:channel': function(req, res) {
'/report/:server/:channel': function(req, res) {
var server = req.params.server,
channel = req.params.channel,
notifies = [];

View File

@ -3,8 +3,8 @@ extends ../layout
block content
h3 Channels on #{server}
div#backlink
a(href='/warning') « Server List
a(href='/report') « Server List
ul#quotelist
-each channel in channels
a(href='/notify/'+server+'/'+encodeURIComponent(channel))
a(href='/report/'+server+'/'+encodeURIComponent(channel))
li.quotes #{channel}

View File

@ -2,7 +2,7 @@ extends ../layout
block content
div#backlink
a(href='/notify/'+server) « Server Channels
a(href='/report/'+server) « Server Channels
p
div#profile_datatable
table.table.table-hover.data

View File

@ -6,5 +6,5 @@ block content
a(href='/') « Home
ul#quotelist
-each server in servers
a(href='/notify/'+server)
a(href='/report/'+server)
li.quotes #{server}