ioos / ckanext-ioos-theme

IOOS Catalog as a CKAN extension
GNU Affero General Public License v3.0
7 stars 14 forks source link

Expand the table by default #157

Closed lukecampbell closed 7 years ago

lukecampbell commented 7 years ago

Fixes https://github.com/ioos/catalog-ckan/issues/156

lukecampbell commented 7 years ago

I added templates/package/resource_read.html to the templates in this plugin and copied only the section we needed to modify.

https://github.com/ioos/ckan/blob/54fd9aff2ee091995c8693d7da6ed0049b804ef3/ckan/templates/package/resource_read.html

--- a/ckan/templates/package/resource_read.html
+++ b/ckan/templates/package/resource_read.html
@@ -145,7 +145,7 @@
         {% block resource_additional_information_inner %}
         <div class="module-content">
           <h2>{{ _('Additional Information') }}</h2>
-          <table class="table table-striped table-bordered table-condensed" data-module="table-toggle-more">
+          <table class="table table-striped table-bordered table-condensed">
             <thead>
               <tr>
                 <th scope="col">{{ _('Field') }}</th>

That way the extension will extend the existing template but with our small change so that the table doesn't expand.

mwengren commented 7 years ago

Looks good to me, thanks.