mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-27 14:37:35 +08:00
Added experiment code to PDF and DOCX [SCI-5830]
This commit is contained in:
parent
29ff910eba
commit
afc1b2d8b6
3 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ module Reports::Docx::DrawExperiment
|
||||||
@docx.h2 experiment.name, size: Constants::REPORT_DOCX_EXPERIMENT_TITLE_SIZE
|
@docx.h2 experiment.name, size: Constants::REPORT_DOCX_EXPERIMENT_TITLE_SIZE
|
||||||
@docx.p do
|
@docx.p do
|
||||||
text I18n.t('projects.reports.elements.experiment.user_time',
|
text I18n.t('projects.reports.elements.experiment.user_time',
|
||||||
timestamp: I18n.l(experiment.created_at, format: :full)), color: color[:gray]
|
code: experiment.code, timestamp: I18n.l(experiment.created_at, format: :full)), color: color[:gray]
|
||||||
if experiment.archived?
|
if experiment.archived?
|
||||||
text ' | '
|
text ' | '
|
||||||
text I18n.t('search.index.archived'), color: color[:gray]
|
text I18n.t('search.index.archived'), color: color[:gray]
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="report-element-header">
|
<div class="report-element-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="pull-left user-time">
|
<div class="pull-left user-time">
|
||||||
<%= t('projects.reports.elements.experiment.user_time', timestamp: l(timestamp, format: :full)) %>
|
<%= t('projects.reports.elements.experiment.user_time', code: experiment.code, timestamp: l(timestamp, format: :full)) %>
|
||||||
<b><%= link_to t('projects.reports.elements.all.scinote_link'),canvas_experiment_url(experiment), target: :_blank %></b>
|
<b><%= link_to t('projects.reports.elements.all.scinote_link'),canvas_experiment_url(experiment), target: :_blank %></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -677,7 +677,7 @@ en:
|
||||||
protocol:
|
protocol:
|
||||||
user_time: "Protocol created on %{timestamp}."
|
user_time: "Protocol created on %{timestamp}."
|
||||||
experiment:
|
experiment:
|
||||||
user_time: "Experiment created on %{timestamp}."
|
user_time: "Experiment %{code} created on %{timestamp}."
|
||||||
no_description: "No description"
|
no_description: "No description"
|
||||||
no_tags: "No tags"
|
no_tags: "No tags"
|
||||||
module_activity:
|
module_activity:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue