diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/RDMDepositForm.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/RDMDepositForm.js
index 51c0be4..397f6c7 100644
--- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/RDMDepositForm.js
+++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/RDMDepositForm.js
@@ -279,14 +279,11 @@ export class RDMDepositForm extends Component {
config={this.config}
record={this.props.record}
files={this.props.files}
+ permissions={this.props.permissions}
>
-
+
@@ -296,7 +293,7 @@ export class RDMDepositForm extends Component {
label={"Files"}
ui={this.accordionStyle}
>
- {this.noFiles && (
+ {this.noFiles && this.props.record.is_published && (
-
+
{/**TODO: uncomment to use FundingField*/}
@@ -505,8 +502,11 @@ export class RDMDepositForm extends Component {
label={"Protection"}
labelIcon={"shield"}
/>
- {this.config.data_cite &&(
-
+ {this.config.data_cite && (
+
)}
diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/index.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/index.js
index 0bf9bed..869d72b 100644
--- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/index.js
+++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/deposit/index.js
@@ -17,6 +17,7 @@ ReactDOM.render(
record={getInputFromDOM("deposits-record")}
files={getInputFromDOM("deposits-record-files")}
config={getInputFromDOM("deposits-config")}
+ permissions={getInputFromDOM("deposits-record-permissions")}
/>,
document.getElementById("deposit-form")
);
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html
index 0a1b36d..5b06cd2 100644
--- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html
+++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html
@@ -10,17 +10,20 @@
{%- extends config.BASE_TEMPLATE %}
{%- block page_body %}
- {%- if record %}
-
- {%- endif %}
- {%- if files %}
-
- {%- endif %}
- {%- if forms_config %}
-
- {%- endif %}
-
- {%- endblock page_body %}
+ {%- if record %}
+
+ {%- endif %}
+ {%- if files %}
+
+ {%- endif %}
+ {%- if forms_config %}
+
+ {%- endif %}
+ {%- if permissions %}
+
+ {%- endif %}
+
+{%- endblock page_body %}
{%- block javascript %}
{{ super() }}
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html
index fa4b4cf..1fa6580 100644
--- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html
+++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html
@@ -7,9 +7,9 @@
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.
#}
-
+
{%- extends config.BASE_TEMPLATE %}
-
+
{%- from "invenio_app_rdm/records/macros/files.html" import file_list_box, preview_file_box %}
{%- from "invenio_app_rdm/records/macros/detail.html" import show_detail %}
@@ -17,12 +17,34 @@
{%- set metadata = record.metadata %}
{%- block page_body %}
- {% if permissions is defined and permissions.can_update_draft %}
-
+
+ {% if permissions is defined and permissions.can_edit %}
+
+
+
+
- {% endif %}
+ {% endif %}
+ {% if not record.versions.is_latest %}
+
+
+
+
+
+
+ {% trans link_start=('')|safe, link_end=''|safe %}
+ There is a {{ link_start }}newer version{{ link_end }} of the record available.
+ {% endtrans %}
+
+
+
+
+
+
+ {% endif %}
+
+
+
@@ -33,9 +55,7 @@
{{ record.ui.publication_date_l10n_long }}
- {%- if metadata.version %}
- | Version {{ metadata.version }}
- {% endif %}
+ | Version {{ record.ui.version }}