Skip to content

Commit

Permalink
files: updated annotate button preview condition
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and alejandromumo committed Oct 1, 2024
1 parent 58e6a89 commit 12bc7a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h3 class="active title panel-heading {{ record.ui.access_status.id }} m-0">
{%- set annostor_config = config.ANNOSTOR_COMMUNITIES[slug] if slug in config.ANNOSTOR_COMMUNITIES else None -%}
{%- if annostor_config is not none -%}
{%- set annostor_url = annostor_config.annostor_instance ~ "annotate/" ~ annostor_config.repo_instance ~ "/" ~ annostor_config.task ~ "/" ~ record.id -%}
{%- if permissions.can_edit and file_type=="pdf" and file.metadata.previewer == "mirador" -%}
{%- if permissions.can_edit and file_type=="pdf" and file.metadata.previewer == "image_previewer" -%}
<a role="button" target="_blank" class="ui compact mini button" href="{{ annostor_url }}">
<i class="pencil icon" aria-hidden="true"></i>{{_("Annotate")}}<i aria-hidden="true" class="right aligned external icon"></i>
</a>
Expand Down

0 comments on commit 12bc7a3

Please sign in to comment.