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

28 lines
916 B
Text
Raw Normal View History

2021-06-10 16:59:34 +08:00
<% project ||= report_element.project %>
<div class="report-element report-project-header-element">
2016-02-12 23:52:43 +08:00
<div class="report-element-header">
<div class="row">
<div class="pull-left user-time">
2021-06-10 16:59:34 +08:00
<%= t('projects.reports.elements.project_header.user_time', timestamp: l(project.created_at, format: :full)) %>
2016-02-12 23:52:43 +08:00
</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>
2021-06-10 16:59:34 +08:00
<%= t('projects.reports.elements.project_header.title', project: project.name) %>
<% if project.archived? %>
2021-06-10 16:59:34 +08:00
<span class="label label-warning"><%= t('search.index.archived') %></span>
<% end %>
</h2>
2016-02-12 23:52:43 +08:00
</div>
</div>
</div>
<% if defined?(children) %>
<div class="report-element-children">
<%= children %>
</div>
<% end %>
2017-03-08 21:14:03 +08:00
</div>