scinote-web/app/views/reports/elements/_project_header_element.html.erb

27 lines
1.1 KiB
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% if project.blank? and @project.present? then project = @project end %>
<% name = t("projects.reports.elements.project_header.title", project: project.name) %>
<div class="report-element report-project-header-element" data-ts="ignore" data-type="project_header" data-id='{ "project_id": <%= project.id %> }' data-scroll-id="<%= project.id %>" data-name="<%= name %>" data-icon-class="fas fa-heading">
2016-02-12 23:52:43 +08:00
<div class="report-element-header">
<div class="row">
<div class="pull-left user-time">
<%=t "projects.reports.elements.project_header.user_time", timestamp: l(project.created_at, format: :full) %>
</div>
</div>
</div>
<div class="report-element-body" data-hook="report-project-header-element">
2016-02-12 23:52:43 +08:00
<div class="row">
<div class="col-xs-12 project-name">
<h2>
<%= name %>
<% if project.archived? %>
<span class="label label-warning"><%=t 'search.index.archived' %></span>
<% end %>
</h2>
2016-02-12 23:52:43 +08:00
</div>
</div>
</div>
<div class="report-element-children">
<%= children if (defined? children and children.present?) %>
</div>
2017-03-08 21:14:03 +08:00
</div>