forked from GitHub/dbot
fix up report for use with login
This commit is contained in:
parent
21b2b4eec3
commit
9a99d5eb47
@ -2,5 +2,7 @@
|
||||
"ignorable": true,
|
||||
"notifyVoice": false,
|
||||
"dependencies": [ "users" ],
|
||||
"dbType": "redis"
|
||||
"dbType": "redis",
|
||||
"requireWebLogin": true,
|
||||
"webAccess": "power_users"
|
||||
}
|
||||
|
@ -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 = [];
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user