diff --git a/README.rst b/README.rst index 6e7d88b..b1a7392 100644 --- a/README.rst +++ b/README.rst @@ -183,7 +183,7 @@ In one terminal, run the bot:: Join that channel and give commands to the bot:: - ~fetchdb http://paste.openstack.org/raw/736003/ + ~fetchdb http://paste.openstack.org/raw/737820/ #swift now discussing ring placement (note, the bot currently only takes commands from Freenode identified users) diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..ea82154 --- /dev/null +++ b/html/index.html @@ -0,0 +1,31 @@ + + + + + Quick PTG Resources + + + + + +
+

Quick PTG Resources

+

Follow links to useful sites for the OpenStack Project Teams Gathering.

+ + +
+ + + + + + diff --git a/html/index.js b/html/index.js new file mode 100644 index 0000000..5277efb --- /dev/null +++ b/html/index.js @@ -0,0 +1,9 @@ +// sets variable source to the animalTemplate id in index.html +var source = document.getElementById("LinksTemplate").innerHTML; + +// Handlebars compiles the above source into a template +var template = Handlebars.compile(source); + +$.getJSON("ptg.json", function(json) { + document.getElementById("ExtraLinks").innerHTML = template(json); +}); diff --git a/ptgbot/db.py b/ptgbot/db.py index 338b176..46a62ab 100644 --- a/ptgbot/db.py +++ b/ptgbot/db.py @@ -24,7 +24,8 @@ class PTGDataBase(): BASE = {'tracks': [], 'slots': {}, 'now': {}, 'next': {}, 'colors': {}, 'location': {}, 'schedule': {}, 'voice': 0, - 'motd': {'message': '', 'level': 'info'}} + 'motd': {'message': '', 'level': 'info'}, + 'links': {}} def __init__(self, config): self.filename = config['db_filename']