[#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;
padding: 0;
margin: 0;
background: none;
}
#map {
@ -10,19 +11,6 @@ html, body {
height: 100%;
}
.popup-table {
border-collapse: collapse;
border: 1px solid #bbb;
table-layout: fixed;
#map .table{
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, _) {
return {
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>',
style: {
opacity: 0.7,

View File

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