From 55166d955e6a29acf7259a8c9635523ec51855b0 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 23 Oct 2014 15:38:56 +0100 Subject: pygmentize irc logs, friendly.css --- run.py | 58 +++++++++++--------------------------------------- static/friendly.css | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/log.html | 11 ++++++++++ 3 files changed, 84 insertions(+), 46 deletions(-) create mode 100644 static/friendly.css create mode 100644 templates/log.html diff --git a/run.py b/run.py index 9e3f3d5..f3b6017 100755 --- a/run.py +++ b/run.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from flask import Flask, send_from_directory, render_template +from flask import Flask, send_from_directory, render_template, url_for from urllib.parse import quote_plus import sys, os class Network(): @@ -26,28 +26,8 @@ class Log(): self.url = url app = Flask(__name__) -html_tree = '''