-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2285] First, very rough stab at making the data viewer embeddable.
- Loading branch information
Ian Murray
committed
Apr 20, 2012
1 parent
440d830
commit bc2fd64
Showing
5 changed files
with
170 additions
and
2 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
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 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 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,82 @@ | ||
<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:def function="optional_head"> | ||
<!-- data preview --> | ||
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/leaflet/0.3.1/leaflet.css')}" /> | ||
<!--[if lte IE 8]> | ||
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/leaflet/0.3.1/leaflet.ie.css')}" /> | ||
<![endif]--> | ||
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/recline/css/data-explorer.css')}" /> | ||
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/recline/css/graph-flot.css')}" /> | ||
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/recline/css/map.css')}" /> | ||
<style type="text/css"> | ||
.recline-query-editor form, .recline-query-editor .text-query { | ||
height: 28px; | ||
} | ||
|
||
.recline-query-editor .pagination ul { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* needed for Chrome but not FF */ | ||
.header .recline-query-editor .add-on { | ||
margin-left: -27px; | ||
} | ||
|
||
/* needed for FF but not chrome */ | ||
.header .recline-query-editor .input-prepend { | ||
vertical-align: top; | ||
} | ||
</style> | ||
<!-- /data preview --> | ||
<style type="text/css"> | ||
.resource-actions { | ||
margin-right: 0; | ||
} | ||
.resource-actions .btn { | ||
position: relative; | ||
bottom: 3px; | ||
padding: 8px 10px; | ||
} | ||
.resource-actions .download { | ||
display: inline; | ||
} | ||
.resource-actions .download img { | ||
margin: 0px 4px -4px 0; | ||
} | ||
</style> | ||
<script type="text/javascript"> | ||
var preload_resource = ${h.literal(c.resource_json)}; | ||
var reclineState = ${h.literal(c.recline_state)}; | ||
</script> | ||
</py:def> | ||
|
||
<py:def function="page_title"> | ||
${h.dataset_display_name(c.package)} / | ||
${h.resource_display_name(c.resource)} - Dataset - Resource | ||
</py:def> | ||
|
||
<div py:match="content"> | ||
<div class="resource-preview"> | ||
<h3>Preview</h3> | ||
<a class="permalink" href="">Permalink</a> | ||
<div id="ckanext-datapreview"></div> | ||
</div> | ||
</div> | ||
|
||
<py:def function="optional_footer"> | ||
<!-- data preview --> | ||
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/jquery.mustache/jquery.mustache.js')}"></script> | ||
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/flot/0.7/jquery.flot.js')}"></script> | ||
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/flot/0.7/jquery.flot.js')}"></script> | ||
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/leaflet/0.3.1/leaflet.js')}"></script> | ||
<script src="${h.url_for_static('/scripts/vendor/recline/recline.js')}"></script> | ||
</py:def> | ||
|
||
<xi:include href="../layout_base.html" /> | ||
</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