[#21] Make popup table match the rest of CKAN tables

This commit is contained in:
amercader 2013-06-14 17:40:39 +01:00
parent e4774e62a5
commit bf9d551462
3 changed files with 7 additions and 15 deletions

View File

@ -2,6 +2,7 @@ html, body {
height: 600px; height: 600px;
padding: 0; padding: 0;
margin: 0; margin: 0;
background: none;
} }
#map { #map {
@ -10,19 +11,6 @@ html, body {
height: 100%; height: 100%;
} }
.popup-table { #map .table{
border-collapse: collapse;
border: 1px solid #bbb;
table-layout: fixed;
width: 300px; width: 300px;
} }
.popup-table td, .popup-table th {
border: 1px solid #bbb;
padding: 4px;
word-wrap: break-word;
}
.popup-table tr:nth-child(even) {
background-color: #eee;
}

View File

@ -2,7 +2,7 @@
ckan.module('geojsonpreview', function (jQuery, _) { ckan.module('geojsonpreview', function (jQuery, _) {
return { return {
options: { options: {
table: '<table class="popup-table"><tbody>{body}</tbody></table>', table: '<table class="table table-striped table-bordered table-condensed"><tbody>{body}</tbody></table>',
row:'<tr><th>{key}</th><td>{value}</td></tr>', row:'<tr><th>{key}</th><td>{value}</td></tr>',
style: { style: {
opacity: 0.7, opacity: 0.7,

View File

@ -1,6 +1,10 @@
{% extends "dataviewer/base.html" %} {% extends "dataviewer/base.html" %}
{% block page %} {% block page %}
{%- block styles %}
{% resource g.main_css[6:] %}
{% endblock %}
<div data-module="geojsonpreview" id="data-preview"> <div data-module="geojsonpreview" id="data-preview">
<h4 class="loading-dialog"> <h4 class="loading-dialog">
<div class="loading-spinner"></div> <div class="loading-spinner"></div>