Skip to content

Commit 2e056e9

Browse files
committed
Merge branch 'idc-test' of https://github.com/ImagingDataCommons/IDC-WebApp into idc-prod-sp
2 parents 54dd451 + e34773a commit 2e056e9

3 files changed

Lines changed: 64 additions & 9 deletions

File tree

static/css/bootstrap-idc.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,25 @@
102102
.doi-list.ar-collex-set {
103103
margin-left: var(--fa-li-margin,0.75em);
104104
margin-bottom: 1em;
105+
}
106+
107+
.quota-card {
108+
margin-top: 100px;
109+
}
110+
111+
.quota-card .card-header {
112+
background: #d98033;
113+
color: #fff;
114+
font-family: system-ui;
115+
}
116+
117+
.quota-details {
118+
height: 80vh;
119+
min-height: 500px;
120+
font-size: large;
121+
font-family: system-ui;
122+
}
123+
124+
.quota-details a {
125+
font-weight: bold;
105126
}

templates/collections/collection_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load static %}
33
{% load custom_tags %}
44
{% load idc_collections_custom_tags %}
5-
{% block title %}Collection Details {{ collection_id }} | IDC{% endblock %}}
5+
{% block title %}Collection Details {{ collection_id }} | IDC{% endblock %}
66
{% block extra_css_libs %}
77
<link type="text/css" rel="stylesheet" href="{% static 'css/bootstrap-5.css' %}" />
88
<link type="text/css" rel="stylesheet" href="{% static 'css/bootstrap-idc.css' %}" />

templates/idc/quota.html

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'base.html' %}
2-
32
{% comment %}
4-
5-
Copyright 2019, Institute for Systems Biology
3+
Copyright 2025, Institute for Systems Biology
64

75
Licensed under the Apache License, Version 2.0 (the "License");
86
you may not use this file except in compliance with the License.
@@ -17,17 +15,53 @@
1715
limitations under the License.
1816

1917
{% endcomment %}
18+
{% load static %}
19+
{% load custom_tags %}
20+
{% block title %}Quota Reached | IDC{% endblock %}
21+
{% block extra_css_libs %}
22+
<link type="text/css" rel="stylesheet" href="{% static 'css/bootstrap-5.css' %}" />
23+
<link type="text/css" rel="stylesheet" href="{% static 'css/bootstrap-idc.css' %}" />
24+
{% endblock %}
25+
{% block header %}
26+
27+
{% endblock %}
28+
29+
{% block link_page_name %}quota_page{% endblock %}
30+
{% block page_name %}quota_notice{% endblock %}
31+
32+
{% block page_header %}{% endblock %}
2033

2134
{% block content %}
22-
<div>
23-
<div class="quota-body">
24-
<div class="center">
25-
<h1 class="center"><span>Daily Imaging Data Quota Exceeded</span></h1>
26-
<p>Users are restricted to a quota of {{ quota }} GB per day of medical imaging files. You have reached your daily quota. Your quota will be reset at midnight GMT. For further details consult our <a href="https://learn.canceridc.dev/portal/proxy-policy">proxy policy</a>.</p>
35+
<div class="container-fluid quota-details">
36+
<div class="row">
37+
<div class="col-3"></div>
38+
<div class="col">
39+
<div class="card quota-card text-center">
40+
<div class="card-header">
41+
<h3>Daily Imaging Data Quota Exceeded</h3>
42+
</div>
43+
<div class="card-body">
44+
<p>
45+
Users are restricted to a quota of <b>{{ quota }} GB</b> per day of medical imaging files accessed via
46+
our DICOM interface and viewers. You have reached your daily quota. Your quota will be reset at
47+
midnight UTC.
48+
</p>
49+
<p>
50+
For further details on methods of accessing IDC imaging data, consult our
51+
<a href="" url="https://learn.canceridc.dev/portal/proxy-policy/" title="Proxy Policy"
52+
class="external-link" data-toggle="modal" data-target="#external-web-warning"
53+
data-bs-toggle="modal" data-bs-target="#external-web-warning"
54+
>proxy policy <i class="fa-solid fa-external-link external-link-icon" aria-hidden="true"></i></a>.
55+
</p>
56+
</div>
2757
</div>
2858
</div>
59+
<div class="col-3"></div>
2960
</div>
61+
</div>
3062
{% endblock %}
3163

3264
{% block js_file %}
65+
{{ block.super }}
66+
<script type="text/javascript" src="{% static 'js/landing.js' %}?v={{ APP_VERSION }}"></script>
3367
{% endblock %}

0 commit comments

Comments
 (0)