Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion omeroweb/webclient/static/webclient/css/dusty.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ button::-moz-focus-inner {
.btn_hierarchy {background: url('../../webgateway/img/iconmonstr-sitemap-6-icon-16.png') center center no-repeat;}
.btn_link {background: url('../../webgateway/img/icon_link.png')center center no-repeat;}

.btn_fspath, .btn_link, .btn_add, .btn_hierarchy {
.btn_fspath, .btn_link, .btn_add, .btn_hierarchy, .btn_extinfo {
float:right;
position: relative;
margin-left: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@
});

{% endif %}

$("#show_ext_info").on("click", function() {
var $panel = $("#externalInfo");
$panel.toggle();
});

});
</script>
Expand Down Expand Up @@ -348,10 +353,12 @@
</li>
{% endwith %}
{% endif %}
{% endif %}
{% endif %} <!-- endif image -->
</ul>
</div>

{% endif %} <!-- endif image or filesetInfo -->

{% if not share %}
{% if image.showOriginalFilePaths %}
<!-- show original file paths -->
Expand All @@ -366,7 +373,6 @@
</button>
{% endif %}
{% endif %}
{% endif %}


<!-- Publishing Options (Figure Scripts) -->
Expand All @@ -375,6 +381,17 @@
{% include "webclient/annotations/includes/figure_scripts_menu.html" %}
{% endif %}
{% endif %}

<!-- External Info (Zarr url)-->
{% with extinfo=obj.getExternalInfo %}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: with ome/omero-py#483 this should now be obj.getDetails().getExternalInfo()

{% if extinfo %}
<button id="show_ext_info" class="btn silver btn_extinfo" title="Zarr url" >
<span style="width: 25px; margin: 3px 2px 1px 2px; background: transparent; box-shadow: none; font-size: 11px; padding: 0px;">
Zarr
</span>
</button>
{% endif %}
{% endwith %}



Expand Down Expand Up @@ -424,3 +441,25 @@
<input type="text" size="30">
<img title="Close" src="{% static 'webgateway/img/close.gif' %}" />
</div>

<!-- This is hidden initially -->
<div id="externalInfo" style="display: none; margin-top: 15px; font-size: 13px;">
<!-- This will return None if obj.getExternalInfo method doesn't exist (omero-py 5.19.6 and earlier) -->
{% with extinfo=obj.getExternalInfo %}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: with ome/omero-py#483 this should now be obj.getDetails().getExternalInfo()

{% if extinfo %}

<div style="background: white; padding: 7px; border: 1px solid rgb(221, 221, 221); overflow: auto; border-radius: 4px;">
<h3>Zarr Info</h3>
<div style="margin: 8px 0; word-wrap: break-word"><strong>{{ extinfo.lsid.val }}</strong></div>
<details>
<summary>Details</summary>
<ul style="margin: 5px">
<li>externalInfo ID: <strong>{{ extinfo.id.val }}</strong></li>
<li>entityType: <strong>{{ extinfo.entityType.val }}</strong></li>
<li>entityId: <strong>{{ extinfo.entityId.val }}</strong></li>
</ul>
</details>
</div>
{% endif %}
{% endwith %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@
return;
}
$("#toolbar_info_panel").show();
$panel_title.html("Loading...");
$panel_title.html("&nbsp");
$panel_div.empty();
if (original_file_paths_url) {
$panel_title.html("Loading...");
$.getJSON(original_file_paths_url,
function(data) {
var repo = data.repo,
Expand Down Expand Up @@ -498,7 +499,7 @@

{% if manager.image %}

{% with image=manager.image canDownload=manager.image.canDownload %}
{% with obj=manager.image image=manager.image canDownload=manager.image.canDownload %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

Expand Down Expand Up @@ -536,7 +537,9 @@ <h1 class="can-collapse defclose" data-name="details">
{% else %}
{% if manager.dataset %}

{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.dataset %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

<!-- Dataset Name, ID, Owner -->
{% with obj=manager.dataset nameText=manager.dataset.name %}
Expand All @@ -563,7 +566,9 @@ <h1 class="can-collapse defclose" data-name="details">
{% else %}
{% if manager.project %}

{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.project %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

<!-- Project Name, ID, Owner -->
{% with obj=manager.project nameText=manager.project.name %}
Expand Down Expand Up @@ -592,7 +597,7 @@ <h1 class="can-collapse defclose" data-name="details">
{% endif %}

{% if manager.well %}
{% with image=manager.getWellSampleImage %}
{% with obj=manager.well image=manager.getWellSampleImage %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

Expand All @@ -604,7 +609,9 @@ <h1 class="can-collapse defclose" data-name="details">
{% else %}
{% if manager.acquisition %}

{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.acquisition %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

<!-- Acquisition Name -->
{% with obj=manager.acquisition nameText=manager.acquisition.name %}
Expand Down Expand Up @@ -640,7 +647,9 @@ <h1 class="can-collapse defclose" data-name="details">
{% else %}
{% if manager.plate %}

{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.plate %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

<!-- Plate Name, ID, Owner -->
{% with obj=manager.plate nameText=manager.plate.name %}
Expand Down Expand Up @@ -674,7 +683,9 @@ <h1 class="can-collapse defclose" data-name="details">
{% else %}
{% if manager.screen %}

{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.screen %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}

<!-- Screen Name, ID, Owner -->
{% with obj=manager.screen nameText=manager.screen.name %}
Expand Down Expand Up @@ -733,7 +744,9 @@ <h1 class="can-collapse defclose" data-name="details">
<div id="general_tab" class="right_tab_inner" >

<!-- Toolbar at the top -->
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.tag %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}


<!-- Tag TextValue, ID, Owner -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
<script type="text/javascript" src="{% static "webgateway/js/ome.spwgridview.js"|add:url_suffix %}"></script>

<script>
// Tip for developers... E.g. shows ExternalInfo after loading right panel
console.log("For dev info, use: $('.debug').show();");
Comment thread
will-moore marked this conversation as resolved.
Outdated

// OMERO constants
if (OMERO === undefined) {var OMERO = {};}
Expand Down
Loading