Skip to content

Commit

Permalink
Only get review details for records with status "todo"
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonrclarke committed Apr 22, 2021
1 parent 7074a34 commit 0128d6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

HEPDATA.upload_max_size = {{ config['UPLOAD_MAX_SIZE']|default(52000000) }};
HEPDATA.upload_timeout = {{ config['NGINX_TIMEOUT']|default(298) }};
HEPDATA.show_review = {{ 'true' if ctx.show_review_widget or ctx.show_upload_widget else 'false'}};
HEPDATA.show_review = {{ 'true' if ctx.status == "todo" and (ctx.show_review_widget or ctx.show_upload_widget) else 'false'}};

HEPDATA.hepdata_record.initialise();
HEPDATA.hepdata_resources.initialise({{ ctx.recid|default(0) }}, {{ ctx.version|default(0) }});
Expand Down

0 comments on commit 0128d6d

Please sign in to comment.