Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2375] Update the templates to something that nearly works
- Loading branch information
Showing
5 changed files
with
64 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
py:strip=""> | ||
<py:match path="head" once="true"> | ||
<head py:attrs="select('@*')"> | ||
<meta charset="utf-8" /> | ||
<title py:with="title = list(select('title/text()'))"> | ||
<py:if test="title">: ${title}</py:if> | ||
</title> | ||
<link rel="stylesheet/less" href="/base/less/main.less" /> | ||
<script src="/base/test/vendor/less.js"></script> | ||
${select('*[local-name()!="title"]')} | ||
</head> | ||
</py:match> | ||
<py:match path="body"> | ||
<body py:attrs="select('@*')"> | ||
${select("*|text()")} | ||
</body> | ||
</py:match> | ||
|
||
<!--! Append all the base head elements --> | ||
<head py:match="head"> | ||
<meta charset="utf-8" /> | ||
<!--! Append CKAN to the title --> | ||
<title py:with="title = list(select('title/text()'))"> | ||
<py:if test="title">${title} - </py:if>CKAN | ||
</title> | ||
<link rel="stylesheet/less" href="/base/less/main.less" /> | ||
<script src="/base/test/vendor/less.js"></script> | ||
${select('*[local-name()!="title"]')} | ||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
py:strip=""> | ||
<div py:match="content"> | ||
content | ||
</div> | ||
<div py:match="sidebar"> | ||
sidebar | ||
</div> | ||
<xi:include href="../page_sidebar.html" /> | ||
xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<!--! Include matchers nearest first --> | ||
<xi:include href="../page.html" /> | ||
<xi:include href="sidebar.html" /> | ||
|
||
<!--! Now include the current page --> | ||
<head> | ||
<title>Search for a Dataset</title> | ||
</head> | ||
<body> | ||
<main> | ||
<content id="content" data-wah=""> | ||
<p>This is search content</p> | ||
<p>Hmm</p> | ||
</content> | ||
|
||
</main> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<div py:match="sidebar"> | ||
${select('*|text()')} | ||
<p>Extra Sidebar 1</p> | ||
<p>Extra Sidebar 2</p> | ||
<p>Extra Sidebar 3</p> | ||
</div> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.