mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
Merge pull request #6242 from rekonder/aj_SCI_9273
Insert the correct link for protocol parser import in the email notification [SCI-9273]
This commit is contained in:
commit
7825433ac2
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
<% if @notification.system_message? %>
|
<% if @notification.system_message? %>
|
||||||
<% # We assume the system notification is clean %>
|
<% # We assume the system notification is clean %>
|
||||||
<%= @notification.message.html_safe %>
|
<%= @notification.message.html_safe %>
|
||||||
<% elsif @notification.deliver? && @notification.message.match?(/data-id=('|")(\d*)('|")/) %>
|
<% elsif @notification.deliver? && @notification.message.match?(/data-id=('|")(\d*)('|")/) && @notification.message.match?(/href=('|")\/zip_exports/) %>
|
||||||
<%= I18n.t("notifications.deliver.download_link") %>
|
<%= I18n.t("notifications.deliver.download_link") %>
|
||||||
<% # work around the problem with inserting the link of zipExport %>
|
<% # work around the problem with inserting the link of zipExport %>
|
||||||
<% zip_id = /data-id=('|")(\d*)('|")/.match(@notification.message)[2] %>
|
<% zip_id = /data-id=('|")(\d*)('|")/.match(@notification.message)[2] %>
|
||||||
|
|
Loading…
Reference in a new issue