-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
98 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
...ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/external_resources.html
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,26 @@ | ||
{# | ||
Copyright (C) 2023 CERN. | ||
|
||
Invenio RDM Records is free software; you can redistribute it and/or modify | ||
it under the terms of the MIT License; see LICENSE file for more details. | ||
#} | ||
|
||
{% if record.metadata.identifiers %} | ||
<section id="external-resources" aria-label="{{ _('External resources') }}" class="ui segment rdm-sidebar"> | ||
<h2 class="ui small header">{{ _('External resources') }}</h2> | ||
{%- for obj in config.get("APP_RDM_RECORD_LANDING_PAGE_EXTERNAL_LINKS", {}) -%} | ||
{% set resource = obj.render(record.metadata.identifiers) %} | ||
{% if resource %} | ||
<div class="content"> | ||
<img class="resource-logo" src="{{ url_for('static', filename='images/' + resource.icon) }}" /> | ||
<div> | ||
<b><a href="{{ resource.url }}">{{resource.title}}</a></b> | ||
{% if resource.subtitle %} | ||
{{resource.subtitle}} | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{%- endfor -%} | ||
</section> | ||
{% endif %} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.