mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
59 lines
2.5 KiB
Text
59 lines
2.5 KiB
Text
<div class="task-details-popover">
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-3">
|
|
<%= t('my_modules.details.info_popover.project_label') %>
|
|
</div>
|
|
<div class="col-xs-9 task-details-value">
|
|
<%= @my_module.experiment.project.name.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
|
</div>
|
|
</div>
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-3">
|
|
<%= t('my_modules.details.info_popover.experiment_label') %>
|
|
</div>
|
|
<div class="col-xs-9 task-details-value">
|
|
<%= @my_module.experiment.name.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
|
</div>
|
|
</div>
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-3">
|
|
<%= t('my_modules.details.info_popover.creator_label') %>
|
|
</div>
|
|
<div class="col-xs-9 task-details-value">
|
|
<%= @my_module.created_by&.full_name&.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
|
<%= t('my_modules.details.info_popover.creator_same_user_label') if current_user == @my_module.created_by %>
|
|
</div>
|
|
</div>
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-3">
|
|
<%= t('my_modules.details.info_popover.created_label') %>
|
|
</div>
|
|
<div class="col-xs-9 task-details-value">
|
|
<%= l(@my_module.created_at, format: :full_date) %>
|
|
</div>
|
|
</div>
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-3">
|
|
<%= t('my_modules.details.info_popover.modified_label') %>
|
|
</div>
|
|
<div class="col-xs-9 task-details-value">
|
|
<% if @my_module.last_modified_by.present? %>
|
|
<%= t('my_modules.details.info_popover.modified_value',
|
|
date: l(@my_module.updated_at, format: :full_date),
|
|
full_name: @my_module.last_modified_by.full_name.truncate(Constants::MAX_NAME_TRUNCATION)) %>
|
|
<% else %>
|
|
<%= t('my_modules.details.info_popover.modified_value_without_user',
|
|
date: l(@my_module.updated_at, format: :full_date)) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="row row-v-margin">
|
|
<div class="col-xs-12">
|
|
<%= link_to t('my_modules.details.info_popover.view_task_access'),
|
|
can_manage_my_module_users?(@my_module) ?
|
|
edit_access_permissions_project_experiment_my_module_path(@my_module.experiment.project, @my_module.experiment, @my_module) :
|
|
access_permissions_project_experiment_my_module_path(@my_module.experiment.project, @my_module.experiment, @my_module),
|
|
data: { action: 'remote-modal'} %>
|
|
</div>
|
|
</div>
|
|
</div>
|