mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
19 lines
775 B
Text
19 lines
775 B
Text
<% project ||= report_element.project %>
|
|
<div class="report-element report-project-header-element">
|
|
<div class="report-element-body" data-hook="report-project-header-element">
|
|
<h2 class="project-name">
|
|
<%= link_to t('projects.reports.elements.project_header.title', project: project.name), project_url(project), target: :_blank %>
|
|
<% if project.archived? %>
|
|
<span class="label label-warning"><%= t('search.index.archived') %></span>
|
|
<% end %>
|
|
</h2>
|
|
<div class="user-time">
|
|
<%= t('projects.reports.elements.project_header.user_time', timestamp: l(project.created_at, format: :full)) %>
|
|
</div>
|
|
</div>
|
|
<% if defined?(children) %>
|
|
<div class="report-element-children">
|
|
<%= children %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|