mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-03 06:03:51 +08:00
Merge pull request #2833 from urbanrotnik/ur-sci-4988-notes-duplication
Remove notes duplication [SCI-4988]
This commit is contained in:
commit
9419a16df5
2 changed files with 11 additions and 32 deletions
|
@ -46,6 +46,9 @@ module Reports::Docx::DrawMyModule
|
|||
text I18n.t('projects.reports.elements.module.status')
|
||||
text ' '
|
||||
text "[#{status.name}]", color: status.color.delete('#')
|
||||
if my_module.completed?
|
||||
text " #{I18n.t('my_modules.states.completed')} #{I18n.l(my_module.completed_on, format: :full)}"
|
||||
end
|
||||
end
|
||||
|
||||
@docx.p do
|
||||
|
|
|
@ -24,37 +24,6 @@
|
|||
<% end %>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="pull-right module-start-date">
|
||||
<% if my_module.started_on.present? %>
|
||||
<%= t('projects.reports.elements.module.started_on', started_on: l(my_module.started_on, format: :full)) %>
|
||||
<% else %>
|
||||
<em><%=t "projects.reports.elements.module.no_start_date" %></em>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="pull-right module-due-date">
|
||||
<% if my_module.due_date.present? %>
|
||||
<%=t "projects.reports.elements.module.due_date", due_date: l(my_module.due_date, format: :full) %>
|
||||
<% else %>
|
||||
<em><%=t "projects.reports.elements.module.no_due_date" %></em>
|
||||
<% end %>
|
||||
<% if my_module.completed? %>
|
||||
<%= t("my_modules.states.completed") %>
|
||||
<%= l(my_module.completed_on, format: :full) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<% if my_module.description.present? %>
|
||||
<%= custom_auto_link(my_module.prepare_for_report(:description, for_export_all),
|
||||
team: current_team,
|
||||
simple_format: false,
|
||||
base64_encoded_imgs: for_export_all) %>
|
||||
<% else %>
|
||||
<em><%=t "projects.reports.elements.module.no_description" %></em>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<p class="module-start-date">
|
||||
<% if my_module.started_on.present? %>
|
||||
|
@ -74,6 +43,12 @@
|
|||
<% status = my_module.my_module_status %>
|
||||
<%= t("projects.reports.elements.module.status") %>
|
||||
<span class="status-block" style="background: <%= status.color %>"><%= status.name %></span>
|
||||
<% if my_module.completed? %>
|
||||
<span style="margin-left: 10px;">
|
||||
<%= t("my_modules.states.completed") %>
|
||||
<%= l(my_module.completed_on, format: :full) %>
|
||||
</span>
|
||||
<% end %>
|
||||
</p>
|
||||
<div class="row module-tags">
|
||||
<div class="pull-left">
|
||||
|
@ -96,9 +71,10 @@
|
|||
<% if my_module.description.present? %>
|
||||
<%= custom_auto_link(my_module.prepare_for_report(:description, for_export_all),
|
||||
team: current_team,
|
||||
simple_format: false,
|
||||
base64_encoded_imgs: for_export_all) %>
|
||||
<% else %>
|
||||
<em><%= t("projects.reports.elements.module.no_description") %></em>
|
||||
<em><%= t("projects.reports.elements.module.no_description") %></em>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue