Anonymous avatar Anonymous committed 8410f4c

redirect if alias. fix header style

Comments (0)

Files changed (2)

couchit/application.py

         
         if request.site.privacy == "private" and not authenticated and endpoint!='site_login':
             response = redirect(url_for('site_login'))
-        
+        elif not subdomain and request.site.alias:
+            redirect_url = "http://%s.%s/%s" % (request.site.alias, settings.SERVER_NAME, 
+                                    path_info)
+            print redirect_url
+            response = redirect(redirect_url)
         
             
         return response(environ, start_response)

static/css/src/layout.css

 
 aside.hidden { display: none;}
 
+header h1,
+header h2 { padding:0px;}
 
+header h1 {
+    padding-top: 5px;
+}
+header h2 {
+    padding-bottom: 10px;
+}
 
 #page article,
 #pedit #pedit_wrapper {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.