-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from jeanbez/view-submission
view all details of submissions
- Loading branch information
Showing
5 changed files
with
302 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<nav id="breadcrumb"> | ||
<p>YOU ARE HERE</p> | ||
|
||
<?php | ||
$this->Breadcrumbs->add(_('LISTS'), ['controller' => 'releases', 'action' => 'index']); | ||
$this->Breadcrumbs->add(strtoupper($submission->information_list_name), ['controller' => 'listings', 'action' => 'list', strtolower($submission->information_list_name), 'io500']); | ||
$this->Breadcrumbs->add(strtoupper($submission->information_system), ['controller' => 'submissions', 'action' => 'view', $submission->id]); | ||
$this->Breadcrumbs->add(_('CONFIGURATION'), ['controller' => 'submissions', 'action' => 'configuration', $submission->id]); | ||
|
||
echo $this->Breadcrumbs->render([], ['separator' => ' / ']); | ||
?> | ||
</nav> | ||
|
||
<div class="row"> | ||
<div class="column-responsive column-80"> | ||
<div class="submissions view content"> | ||
<h2 class="submissions-name"> | ||
<?php if ($questionnaire) { ?> | ||
<div class="badge badge-<?php echo $questionnaire->reproducibility_score_id; ?>"></div> | ||
<?php } ?> | ||
|
||
<?php echo h($submission->information_system); ?> | ||
</h2> | ||
|
||
<div class="submissions-action"> | ||
<?php | ||
echo $this->Html->link( | ||
_('Summary'), | ||
[ | ||
'controller' => 'submissions', | ||
'action' => 'view', | ||
$submission->id | ||
], | ||
[ | ||
'class' => 'button-navigation' | ||
] | ||
); | ||
|
||
echo $this->Html->link( | ||
_('Configuration'), | ||
[ | ||
'controller' => 'submissions', | ||
'action' => 'configuration', | ||
$submission->id | ||
], | ||
[ | ||
'class' => 'button' | ||
] | ||
); | ||
|
||
if ($questionnaire) { | ||
echo $this->Html->link( | ||
_('Reproducibility'), | ||
[ | ||
'controller' => 'questionnaires', | ||
'action' => 'view', | ||
$submission->id | ||
], | ||
[ | ||
'class' => 'button-navigation' | ||
] | ||
); | ||
} | ||
|
||
if ($submission->repository_url) { | ||
echo $this->Html->link( | ||
_('Files'), | ||
$submission->repository_url, | ||
[ | ||
'target' => '_blank', | ||
'class' => 'button-navigation' | ||
] | ||
); | ||
} | ||
|
||
if ($submission->cdcl_url) { | ||
echo $this->Html->link( | ||
_('Data Center'), | ||
$submission->cdcl_url, | ||
[ | ||
'class' => 'button-navigation', | ||
'target' => '_blank' | ||
] | ||
); | ||
} | ||
?> | ||
</div> | ||
|
||
<div class="information"> | ||
<div id="dcl_wrap"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<?php | ||
echo $this->Html->css([ | ||
'https://submission.io500.org/css/dcl.min.css' | ||
]); | ||
|
||
echo $this->Html->script( | ||
[ | ||
'https://submission.io500.org/js/js-yaml.min.js', | ||
'https://submission.io500.org/js/c3.min.js', | ||
'https://submission.io500.org/js/d3.min.js', | ||
'https://submission.io500.org/js/jquery.min.js', | ||
'https://submission.io500.org/js/math.min.js', | ||
'https://unpkg.com/@popperjs/core@2', | ||
'https://unpkg.com/tippy.js@6', | ||
'https://submission.io500.org/js/dcl.js', | ||
'https://submission.io500.org/js/dcl-load.js', | ||
'https://submission.io500.org/js/dcl-move.js', | ||
'https://submission.io500.org/js/dcl-vis.js' | ||
], | ||
[ | ||
'block' => 'script' | ||
] | ||
); | ||
|
||
$url_site = 'https://submission.io500.org/files/submissions/' . $submission->id . '.json?timestamp=' . time(); | ||
$url_schema = 'https://submission.io500.org/model/schema-io500.json?timestamp=' . time(); | ||
|
||
$this->Html->scriptBlock( | ||
" | ||
$(document).ready(function() { | ||
dcl_draw_graph = false; | ||
dcl_draw_table = false; | ||
dcl_draw_toolbar = false; | ||
dcl_draw_aggregation = false; | ||
dcl_global_readonly = true; | ||
dcl_schema = '" . $url_schema . "'; | ||
dcl_site = '" . $url_site . "'; | ||
dcl_startup(); | ||
}); | ||
", | ||
[ | ||
'block' => 'script' | ||
] | ||
); | ||
?> |
Oops, something went wrong.