Skip to content

Commit 2a78d2e

Browse files
authored
Merge pull request #1449 from ImagingDataCommons/idc-test-sp
Hotfixes, size adjustments
2 parents a98ea25 + 426b2b7 commit 2a78d2e

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

idc/views.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
from django.contrib.auth.signals import user_login_failed
4545
from django.dispatch import receiver
4646
from idc.models import User_Data
47-
from concurrent.futures import ThreadPoolExecutor
48-
from multiprocessing import Manager
49-
from math import floor
50-
from functools import partial
5147

5248

5349

@@ -809,15 +805,12 @@ def explore_data_page(request, filter_path=False, path_filters=None):
809805

810806
try:
811807
req = request.GET or request.POST
812-
mode=req.get('mode','1')
813-
ref = (req.get('ref', 'False').lower() == "true")
814-
if ref:
815-
request.session.create()
816808

817809
is_dicofdic = (req.get('is_dicofdic', "False").lower() == "true")
818810
source = req.get('data_source_type', DataSource.SOLR)
819811
versions = json.loads(req.get('versions', '[]'))
820812
filters = json.loads(req.get('filters', '{}'))
813+
with_stats = (req.get('with_stats', 'true').lower() == "true")
821814
disk_size = (req.get('disk_size', 'False').lower() == "true")
822815

823816
fields = json.loads(req.get('fields', '[]'))
@@ -860,7 +853,7 @@ def explore_data_page(request, filter_path=False, path_filters=None):
860853

861854
context = build_explorer_context(
862855
is_dicofdic, source, versions, filters, fields, order_docs, counts_only, with_related, with_derived,
863-
collapse_on, is_json, uniques=uniques, totals=totals, disk_size=disk_size
856+
collapse_on, is_json, uniques=uniques, totals=totals, with_stats=with_stats, disk_size=disk_size
864857
)
865858

866859
if not('totals' in context):
@@ -878,10 +871,9 @@ def explore_data_page(request, filter_path=False, path_filters=None):
878871
if not ('disk_size' in context['totals']):
879872
context['totals']['disk_size'] = '0.0 GB'
880873

881-
882874
if not is_json:
883875
# These are filters to be loaded *after* a page render
884-
context['mode']=mode
876+
885877
if wcohort:
886878
context['filters_for_load'] = cohort_filters_dict
887879
elif filter_path:

static/css/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4471,3 +4471,15 @@ d-topics-list iframe {
44714471
fill: #b0d4f3;
44724472
}
44734473

4474+
.filter-display-panel .panel-body, .shopping-cart-panel .panel-body {
4475+
padding-top: 0px
4476+
}
4477+
4478+
.filter-display-panel .panel-heading, .shopping-cart-panel .panel-heading,
4479+
#projects_panel_container .panel-heading {
4480+
padding-bottom: 0px
4481+
}
4482+
4483+
.filter-display-panel .panel-heading, .shopping-cart-panel .panel-heading {
4484+
padding-top: 0px
4485+
}

templates/idc/landing.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@
3131
<div class="row ">
3232
<div class="col-xs-1"></div>
3333
<div class="col-xs-10">
34-
<b>IDC Community Office Hours open to all every Tuesday 16:30 – 17:30 (New York) and
35-
Wednesday 10:30-11:30 (New York) via Google Meet at
36-
<a class="external-link" href="" url="https://meet.google.com/xyt-vody-tvb"
34+
<b>Need personalized help? Sign up for a 1-on-1 meeting with an IDC team member here:
35+
<a class="external-link" href="" url="https://tinyurl.com/idc-help-request"
3736
data-toggle="modal" data-target="#external-web-warning">
38-
https://meet.google.com/xyt-vody-tvb
37+
https://tinyurl.com/idc-help-request
3938
</a></b>.
4039
</div>
4140
<div class="col-xs-1">

0 commit comments

Comments
 (0)