2021-06-10 16:59:34 +08:00
|
|
|
<% table ||= report_element.table %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% timestamp = table.created_at %>
|
2021-06-10 16:59:34 +08:00
|
|
|
<div class="report-element report-step-attachment-element report-step-table-element">
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="report-element-header">
|
2022-05-31 20:40:25 +08:00
|
|
|
<div class="table-name">
|
|
|
|
<% if defined? export_all and export_all %>
|
|
|
|
<% file_link = @obj_filenames.dig(:tables, table.id, :file) %>
|
|
|
|
<a href="<%= file_link %>">
|
|
|
|
<em>
|
|
|
|
<%= file_link&.split('/')&.last %>
|
|
|
|
</em>
|
|
|
|
</a>
|
|
|
|
<% else %>
|
2023-10-05 21:23:10 +08:00
|
|
|
<% if table.name.present? %>
|
2022-05-31 20:40:25 +08:00
|
|
|
<em>
|
|
|
|
<%= truncate(table.name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
|
|
|
|
</em>
|
2018-08-29 12:56:47 +08:00
|
|
|
<% end %>
|
2022-05-31 20:40:25 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="user-time">
|
2023-05-10 22:15:14 +08:00
|
|
|
<%= t("projects.reports.elements.#{table_type}.user_time", timestamp: l(timestamp, format: :full)) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="report-element-body">
|
2019-07-15 19:27:27 +08:00
|
|
|
<input type="hidden" class="hot-table-contents" value="<%= table.contents_utf_8 %>" />
|
2024-01-11 00:28:14 +08:00
|
|
|
<input type="hidden" class="hot-table-metadata" value="<%= table.metadata.to_json %>" />
|
2019-07-15 19:27:27 +08:00
|
|
|
<div class="hot-table-container"></div>
|
|
|
|
<table class="report-common-table-format"></table>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2021-05-20 20:16:39 +08:00
|
|
|
<% if defined?(children) %>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-08-01 19:19:19 +08:00
|
|
|
</div>
|