Revert "Revert "Add task IDs to canvas view [SCI-7177][SCI-7178]""

This reverts commit 50e7531ffa.
This commit is contained in:
Martin Artnik 2022-12-06 12:43:30 +01:00
parent bc43b3af98
commit df4654189b
5 changed files with 21 additions and 2 deletions

View file

@ -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 {

View file

@ -677,3 +677,8 @@
}
}
}
.task-details-code {
display: inline-block;
margin-left: 4px;
}

View file

@ -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

View file

@ -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>

View file

@ -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">