Permalink
Browse files

add bootstrap css

  • Loading branch information...
tsing committed Jan 9, 2013
1 parent f766185 commit db5cb416fad879f9f6a6f43bbcca2068d0de24f6
Showing with 26 additions and 2 deletions.
  1. +6 −1 domains.py
  2. +9 −0 static/css/bootstrap-responsive.min.css
  3. +9 −0 static/css/bootstrap.min.css
  4. +2 −1 views/domains.html
View
@@ -1,7 +1,8 @@
import gevent.monkey; gevent.monkey.patch_all()
import gevent.queue
+import os
-from bottle import default_app, route, post, delete, run, request, debug, url, redirect, template
+from bottle import default_app, route, post, delete, run, request, debug, url, redirect, template, static_file
from auth import require_auth
from store import Store
from flash import FlashPlugin
@@ -64,6 +65,10 @@ def delete_domain(domain):
fanout.update()
return redirect(url('domains'))
+@route('/static/<path:path>')
+def static(path):
+ return static_file(path, os.path.join(os.path.dirname(__file__), "static"))
+
def main():
from werkzeug.debug import DebuggedApplication

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -4,7 +4,8 @@
<meta charset="utf-8">
<title>被墙域名管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
+ <link href="../static/css/bootstrap.min.css" rel="stylesheet">
+ <link href="../static/css/bootstrap-responsive.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

0 comments on commit db5cb41

Please sign in to comment.