mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Revert "Revert "Add task IDs to canvas view [SCI-7177][SCI-7178]""
This reverts commit 50e7531ffa
.
This commit is contained in:
parent
bc43b3af98
commit
df4654189b
5 changed files with 21 additions and 2 deletions
|
@ -61,6 +61,14 @@
|
|||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.task-card-code {
|
||||
bottom: 5px;
|
||||
color: $color-volcano;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.archived-task-card-code {
|
||||
|
|
|
@ -677,3 +677,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.task-details-code {
|
||||
display: inline-block;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ class MyModule < ApplicationRecord
|
|||
include PermissionCheckableModel
|
||||
include Assignable
|
||||
|
||||
ID_PREFIX = 'TA'
|
||||
include PrefixedIdModel
|
||||
|
||||
attr_accessor :transition_error_rollback
|
||||
|
||||
enum state: Extends::TASKS_STATES
|
||||
|
|
|
@ -114,8 +114,8 @@
|
|||
<div role="tabpanel" class="tab-pane" id="<%= my_module.id %>_activities" data-contents="activities"></div>
|
||||
<div role="tabpanel" class="tab-pane" id="<%= my_module.id %>_comments" data-contents="comments"></div>
|
||||
</div>
|
||||
<div class="archived-task-card-code" data-view-mode="archived">
|
||||
<%= t('my_modules.details.code') %><%= my_module.code %>
|
||||
<div class="task-card-code">
|
||||
ID: <%= my_module.code %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
<%= render partial: "module_header_details_popover.html.erb" %>
|
||||
</div>
|
||||
</span>
|
||||
<span class="task-details-code">
|
||||
<%= @my_module.code %>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="details-container" class="task-details collapse">
|
||||
|
|
Loading…
Reference in a new issue