Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 24cc07e

Browse files
Merge pull request #63 from melanger/chartjsFromComposer
Chartjs from composer
2 parents deddb85 + 8398ba0 commit 24cc07e

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All notable changes to this project will be documented in this file.
3535
- Added modes into PerunAttribute process filter
3636
- MODE_FULL - Rewrite all attributes specified in config
3737
- MODE_PARTIAL - Rewrite only unset attributes
38+
- Chart.bundle.js is now loaded from SSP module instead of directly from internet
3839

3940
#### Fixed
4041
- Fixed the problem that IDP filter on WAYF didn't work correctly

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"simplesamlphp/simplesamlphp": "~1.17",
2424
"simplesamlphp/composer-module-installer": "~1.0",
2525
"cesnet/simplesamlphp-module-perunauthorize": "~2.0",
26+
"cesnet/simplesamlphp-module-chartjs": "~2.8.0",
2627
"ext-curl": "*",
2728
"ext-json": "*"
2829
}

templates/listOfSps-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ function getClass($attribute)
212212

213213
?>
214214

215-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.js"></script>
215+
<script src="<?php echo htmlspecialchars(\SimpleSAML\Module::getModuleURL('chartjs/Chart.bundle.min.js'));?>"></script>
216216

217217
<script src="<?php echo htmlspecialchars(\SimpleSAML\Module::getModuleURL('perun/listOfSps.js'));?>"></script>

www/res/css/listOfSps.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,24 @@ h3 {
7575
word-wrap: break-word;
7676
}
7777
}
78+
79+
.row, .col-md-6 {
80+
box-sizing: border-box;
81+
}
82+
.row {
83+
margin-left: -15px;
84+
margin-right: -15px;
85+
}
86+
.col-md-6 {
87+
position: relative;
88+
min-height: 1px;
89+
padding-left: 15px;
90+
padding-right: 15px;
91+
92+
}
93+
@media (min-width: 992px) {
94+
.col-md-6 {
95+
width: 50%;
96+
float: left;
97+
}
98+
}

0 commit comments

Comments
 (0)