2020-04-21 21:11:57 +08:00
|
|
|
<div class="task-details-popover">
|
2020-05-13 18:20:25 +08:00
|
|
|
<div class="row row-v-margin">
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-3 task-details-value">
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.project_label') %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-9">
|
2020-04-21 21:11:57 +08:00
|
|
|
<%= @my_module.experiment.project.name.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-13 18:20:25 +08:00
|
|
|
<div class="row row-v-margin">
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-3 task-details-value">
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.experiment_label') %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-9">
|
2020-04-21 21:11:57 +08:00
|
|
|
<%= @my_module.experiment.name.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-13 18:20:25 +08:00
|
|
|
<div class="row row-v-margin">
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-3 task-details-value">
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.creator_label') %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-9">
|
2020-05-20 16:37:33 +08:00
|
|
|
<%= @my_module.created_by&.full_name&.truncate(Constants::MAX_NAME_TRUNCATION) %>
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.creator_same_user_label') if current_user == @my_module.created_by %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-13 18:20:25 +08:00
|
|
|
<div class="row row-v-margin">
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-3 task-details-value">
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.created_label') %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-9">
|
2020-04-21 21:11:57 +08:00
|
|
|
<%= l(@my_module.created_at, format: :full_date) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-13 18:20:25 +08:00
|
|
|
<div class="row row-v-margin">
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-3 task-details-value">
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.modified_label') %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
2023-09-22 17:59:39 +08:00
|
|
|
<div class="col-xs-9">
|
2020-04-23 18:40:27 +08:00
|
|
|
<% if @my_module.last_modified_by.present? %>
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.modified_value',
|
2020-04-23 18:40:27 +08:00
|
|
|
date: l(@my_module.updated_at, format: :full_date),
|
|
|
|
full_name: @my_module.last_modified_by.full_name.truncate(Constants::MAX_NAME_TRUNCATION)) %>
|
|
|
|
<% else %>
|
2020-05-07 22:11:22 +08:00
|
|
|
<%= t('my_modules.details.info_popover.modified_value_without_user',
|
2020-04-23 18:40:27 +08:00
|
|
|
date: l(@my_module.updated_at, format: :full_date)) %>
|
|
|
|
<% end %>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-28 16:45:34 +08:00
|
|
|
<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) ?
|
2023-02-23 21:57:38 +08:00
|
|
|
edit_access_permissions_my_module_path(@my_module) :
|
|
|
|
access_permissions_my_module_path(@my_module),
|
2021-10-28 16:45:34 +08:00
|
|
|
data: { action: 'remote-modal'} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-21 21:11:57 +08:00
|
|
|
</div>
|