diff --git a/modules/report/config.json b/modules/report/config.json index 975bd13..3e32ba1 100644 --- a/modules/report/config.json +++ b/modules/report/config.json @@ -2,5 +2,7 @@ "ignorable": true, "notifyVoice": false, "dependencies": [ "users" ], - "dbType": "redis" + "dbType": "redis", + "requireWebLogin": true, + "webAccess": "power_users" } diff --git a/modules/report/pages.js b/modules/report/pages.js index e8bbc89..c199048 100644 --- a/modules/report/pages.js +++ b/modules/report/pages.js @@ -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 = []; diff --git a/views/report/channels.jade b/views/report/channels.jade index b2a0b7e..50a74c0 100644 --- a/views/report/channels.jade +++ b/views/report/channels.jade @@ -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} diff --git a/views/report/notifies.jade b/views/report/notifies.jade index 1b4c04d..c076e4c 100644 --- a/views/report/notifies.jade +++ b/views/report/notifies.jade @@ -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 diff --git a/views/report/servers.jade b/views/report/servers.jade index 924eb19..3401db0 100644 --- a/views/report/servers.jade +++ b/views/report/servers.jade @@ -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}