2016-02-12 23:52:43 +08:00
|
|
|
<% if result.blank? and @result.present? then result = @result end %>
|
|
|
|
<% result_text = result.result_text %>
|
|
|
|
<% comments = result.comments %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% timestamp = result.created_at %>
|
|
|
|
<% name = result.name %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="report-element report-result-element report-result-text-element" data-ts="<%= timestamp.to_i %>" data-type="result_text" data-id="<%= result.id %>" data-modal-title="<%=t "projects.reports.elements.modals.result_contents.head_title", result: result.name %>" data-name="<%= name %>" data-icon-class="glyphicon-asterisk">
|
|
|
|
<div class="report-element-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="pull-left result-icon">
|
|
|
|
<span class="glyphicon glyphicon-asterisk"></span>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left result-name">
|
|
|
|
<%= name %>
|
|
|
|
</div>
|
|
|
|
<div class="pull-left user-time">
|
|
|
|
<%=t "projects.reports.elements.result_text.user_time", user: result.user.full_name, timestamp: l(timestamp, format: :full) %>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right controls">
|
2016-08-01 19:19:19 +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">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 text-container">
|
2016-11-10 21:11:32 +08:00
|
|
|
<%= result_text.text.html_safe %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children if (defined? children and children.present?) %>
|
|
|
|
</div>
|
2016-08-01 19:19:19 +08:00
|
|
|
</div>
|