2018-08-29 12:56:47 +08:00
|
|
|
<% table ||= @table %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% timestamp = table.created_at %>
|
2018-05-22 22:55:58 +08:00
|
|
|
<div class="report-element report-step-attachment-element report-step-table-element" data-ts="<%= timestamp.to_i %>" data-type="step_table" data-id='{ "table_id": <%= table.id %> }' data-scroll-id="<%= table.id %>" data-name="<%= table.name %>" data-icon-class="fas fa-table">
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="report-element-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="pull-left attachment-icon">
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-table"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2018-08-29 12:56:47 +08:00
|
|
|
<div class="pull-left table-name">
|
2018-09-18 11:40:43 +08:00
|
|
|
<% if defined? export_all and export_all %>
|
2020-11-27 18:07:37 +08:00
|
|
|
<a href="<%= path[:file] %>">
|
2018-08-29 12:56:47 +08:00
|
|
|
<em><%=t 'projects.reports.elements.step_table.table_name',
|
2018-09-07 06:01:56 +08:00
|
|
|
name: filename %></em>
|
2018-08-29 12:56:47 +08:00
|
|
|
</a>
|
|
|
|
<% else %>
|
2018-10-12 13:33:03 +08:00
|
|
|
<% if table.try(:name) %>
|
2018-08-29 12:56:47 +08:00
|
|
|
<em><%=t 'projects.reports.elements.step_table.table_name',
|
|
|
|
name: truncate(table.name,
|
|
|
|
length: Constants::FILENAME_TRUNCATION_LENGTH) %></em>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="pull-left user-time">
|
2016-08-17 15:28:35 +08:00
|
|
|
<%=t 'projects.reports.elements.step_table.user_time', timestamp: l(timestamp, format: :full) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-right controls">
|
2016-08-17 15:28:35 +08:00
|
|
|
<%= render partial: 'reports/elements/element_controls.html.erb' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</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 %>" />
|
|
|
|
<div class="hot-table-container"></div>
|
|
|
|
<table class="report-common-table-format"></table>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children if (defined? children and children.present?) %>
|
|
|
|
</div>
|
2016-08-01 19:19:19 +08:00
|
|
|
</div>
|