Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions histomicsui/web_client/stylesheets/views/itemList.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
margin-right 0.2em
text-align center
line-height 1em

.g-hui-open-item
margin-left 10px
13 changes: 5 additions & 8 deletions histomicsui/web_client/views/itemPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ wrap(ItemView, 'render', function (render) {
'<li role="presentation"><a class="g-hui-quarantine-item" role="menuitem"><span>Q</span>Quarantine item</a></li>'
);
}
if (this.$el.find('.g-item-actions-menu').length && !this.$el.find('.g-hui-open-item[role="menuitem"]').length &&
this.model.attributes.largeImage) {
this.$el.find('.g-item-actions-menu').prepend(
`<li role="presentation">
<a class="g-hui-open-item" role="menuitem" href="${webrootPath}#?image=${this.model.id}" target="_blank">
<i class="icon-link-ext"></i>Open in ${brandName}
</a>
</li>`
if (!this.$el.find('.g-hui-open-item[role="button"]').length && this.model.attributes.largeImage) {
this.$el.find('.g-item-header .btn-group').before(
`<a class="g-hui-open-item btn btn-sm btn-primary" role="button" href="${webrootPath}#?image=${this.model.id}" target="_blank">
<i class="icon-link-ext"></i>Open in ${brandName}
</a>`
);
}
this.events['click .g-hui-quarantine-item'] = quarantine;
Expand Down