mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
38 lines
1.6 KiB
Text
38 lines
1.6 KiB
Text
<% table ||= @table %>
|
|
<% timestamp = table.created_at %>
|
|
<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">
|
|
<div class="report-element-header">
|
|
<div class="row">
|
|
<div class="pull-left attachment-icon">
|
|
<span class="fas fa-table"></span>
|
|
</div>
|
|
<div class="pull-left table-name">
|
|
<% if defined? export_all and export_all %>
|
|
<a href="<%= path %>">
|
|
<em><%=t 'projects.reports.elements.step_table.table_name',
|
|
name: filename %></em>
|
|
</a>
|
|
<% else %>
|
|
<% if table.try(:name) %>
|
|
<em><%=t 'projects.reports.elements.step_table.table_name',
|
|
name: truncate(table.name,
|
|
length: Constants::FILENAME_TRUNCATION_LENGTH) %></em>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="pull-left user-time">
|
|
<%=t 'projects.reports.elements.step_table.user_time', timestamp: l(timestamp, format: :full) %>
|
|
</div>
|
|
<div class="pull-right controls">
|
|
<%= render partial: 'reports/elements/element_controls.html.erb' %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="report-element-body">
|
|
<input type="hidden" class="hot-table-contents" value="<%= table.contents_utf_8 %>" />
|
|
<div class="hot-table-container"></div>
|
|
</div>
|
|
<div class="report-element-children">
|
|
<%= children if (defined? children and children.present?) %>
|
|
</div>
|
|
</div>
|