Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

great progress on making pages agnostic about vhosts

  • Loading branch information...
commit 4ab3c51d8adb7e365ad6a3bbb56eb0f37648a1be 1 parent a55524e
@jchris jchris authored
View
10 _attachments/script/myloader.js
@@ -10,9 +10,9 @@ couchapp_load([
"/_utils/script/json2.js",
"/_utils/script/jquery.js",
"/_utils/script/jquery.couch.js",
- "/vendor/couchapp/jquery.couch.app.js",
- "/vendor/couchapp/jquery.couch.app.util.js",
- "/vendor/couchapp/jquery.mustache.js",
- "/vendor/couchapp/jquery.pathbinder.js",
- "/vendor/couchapp/jquery.evently.js"
+ "../vendor/couchapp/jquery.couch.app.js",
+ "../vendor/couchapp/jquery.couch.app.util.js",
+ "../vendor/couchapp/jquery.mustache.js",
+ "../vendor/couchapp/jquery.pathbinder.js",
+ "../vendor/couchapp/jquery.evently.js"
]);
View
6 evently/profile/loggedOut/all.html
@@ -1,5 +1,5 @@
<p class="menu">
- <a href="/page/index">Home</a>
- <a href="/pages/recent">Changes</a>
- <a href="/pages/comments">Comments</a>
+ <a href="../page/index">Home</a>
+ <a href="../pages/recent">Changes</a>
+ <a href="../pages/comments">Comments</a>
</p>
View
6 evently/profile/loggedOut/mustache.html
@@ -1,5 +1,5 @@
<p class="menu">
- <a href="/page/index">Home</a>
- <a href="/pages/recent">Changes</a>
- <a href="/pages/comments">Comments</a>
+ <a href="../page/index">Home</a>
+ <a href="../pages/recent">Changes</a>
+ <a href="../pages/comments">Comments</a>
</p>
View
6 evently/profile/profileReady/all.html
@@ -2,8 +2,8 @@
{{#gravatar_url}}<img src="{{gravatar_url}}"/>{{/gravatar_url}}
</div>
<p class="menu">
- <a href="/page/index">Home</a>
- <a href="/pages/recent">Changes</a>
- <a href="/pages/comments">Comments</a>
+ <a href="../page/index">Home</a>
+ <a href="../pages/recent">Changes</a>
+ <a href="../pages/comments">Comments</a>
</p>
<div style="clear:left;"></div>
View
6 evently/profile/profileReady/mustache.html
@@ -5,8 +5,8 @@
<a href="#/edit">Edit</a>
<a href="#/history">History</a>
<a href="#/upload">Upload File</a>
- <a href="/page/index">Home</a>
- <a href="/pages/recent">Changes</a>
- <a href="/pages/comments">Comments</a>
+ <a href="../page/index">Home</a>
+ <a href="../pages/recent">Changes</a>
+ <a href="../pages/comments">Comments</a>
</p>
<div style="clear:left;"></div>
View
1  lists/pages.js
@@ -10,7 +10,6 @@ function() {
};
provides("html", function() {
while (row = getRow()) {
- log(row)
data.pages.push({
title : row.value.title,
id : row.id,
View
2  shows/page.js
@@ -5,7 +5,7 @@ function(doc, req) {
data = {
docid : JSON.stringify(req.id),
id : req.id,
- path : "/page/"+req.id,
+ path : "../page/"+req.id,
site_title : this.couchapp.name
};
if (doc) {
View
1  shows/redirect.js
@@ -1,4 +1,5 @@
function() {
var redirect = require("vendor/couchapp/lib/redirect");
+ // todo make this work in both modes
return redirect.permanent("/page/index");
}
View
2  templates/page.html
@@ -13,7 +13,7 @@
</div>
{{/has_atts}}
</body>
- <script src="/script/myloader.js"></script>
+ <script src="../script/myloader.js"></script>
<script src="/_utils/script/base64.js"></script>
<script src="/_utils/script/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8">
View
4 templates/pages.html
@@ -1,11 +1,11 @@
{{>header}}
<ul>
{{#pages}}
- <li><a href="/page/{{id}}">{{title}}</a> by {{by}} <span class="date">{{at}}</span></li>
+ <li><a href="../page/{{id}}">{{title}}</a> by {{by}} <span class="date">{{at}}</span></li>
{{/pages}}
</ul>
</body>
- <script src="/script/myloader.js"></script>
+ <script src="../script/myloader.js"></script>
<script src="/_utils/script/base64.js"></script>
<script type="text/javascript" charset="utf-8">
$.couch.app(function(app) {
View
6 templates/partials/header.html
@@ -2,12 +2,12 @@
<html>
<head>
<title>{{title}} - {{site_title}}</title>
- <link rel="stylesheet" href="/style/base-min.css" type="text/css">
- <link rel="stylesheet" href="/style/main.css" type="text/css">
+ <link rel="stylesheet" href="../style/base-min.css" type="text/css">
+ <link rel="stylesheet" href="../style/main.css" type="text/css">
</head>
<body>
<div id="header">
<div id="account"></div>
- <h1><strong><a href="/page/index">{{site_title}}</a>:</strong> <a href="{{path}}">{{title}}</a></h1>
+ <h1><strong><a href="../page/index">{{site_title}}</a>:</strong> <a href="{{path}}">{{title}}</a></h1>
</div>
<div id="profile"></div>
Please sign in to comment.
Something went wrong with that request. Please try again.