diff --git a/atlas/templates/atlas/collection_detail.html b/atlas/templates/atlas/collection_detail.html
index 922b001b..2dbc3942 100644
--- a/atlas/templates/atlas/collection_detail.html
+++ b/atlas/templates/atlas/collection_detail.html
@@ -19,6 +19,7 @@
This collection will be available to view/take here
+
View as a viva collection here
{% if can_edit %}
diff --git a/atlas/templates/atlas/collection_viva.html b/atlas/templates/atlas/collection_viva.html
index 7a52fcae..deeedbb8 100644
--- a/atlas/templates/atlas/collection_viva.html
+++ b/atlas/templates/atlas/collection_viva.html
@@ -6,12 +6,14 @@
{% for case in cases %}
Case {{forloop.counter}}: {{case.title}}
-
+
+
{% endfor %}
+
{% endblock %}
@@ -23,9 +25,10 @@ var win2 = false;
$(document).ready(function() {
console.log('ready')
- $('.case-link').click(function() {
+ $('.show-case').click(function() {
var url = $(this).data('target');
console.log('clicked', url)
+ $('#case-title').text($(this).data('title'));
$('#viewer').attr('src', url)
//if (win2 == false || win2.closed) {
// win2 = openSecondaryWindow(url);
@@ -33,10 +36,15 @@ var win2 = false;
//} else {
// win2.location.href = url
//}
+ });
+ $('.open-case').click(function() {
+ var url = $(this).data('target');
+ win2 = openSecondaryWindow(url);
})
});
function openSecondaryWindow(url) {
- return win2 = window.open(url,'secondary','width=300,height=100');
+ //return win2 = window.open(url,'secondary','width=300,height=100');
+ return win2 = window.open(url,'secondary');
}
diff --git a/rad/static/css/anatomy.css b/rad/static/css/anatomy.css
index 663c34c7..4b86b9e3 100644
--- a/rad/static/css/anatomy.css
+++ b/rad/static/css/anatomy.css
@@ -919,7 +919,7 @@ summary h5 {
opacity: 80%;
}
-.small-url-button {
+.small-url-button, .no-padding {
padding: 0px;
}