mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 09:13:05 +08:00
Merge pull request #2302 from urbanrotnik/ur-sci-4026-renew-assign-column-fix
Keep circles for task page [FIX]
This commit is contained in:
commit
bb9c1e6fff
2 changed files with 18 additions and 3 deletions
|
@ -65,6 +65,10 @@
|
|||
background-color: $color-alto;
|
||||
}
|
||||
}
|
||||
|
||||
.circle-icon {
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
// Checklists
|
||||
|
@ -103,7 +107,9 @@
|
|||
.repository-row-edit-icon {
|
||||
display: inline-block;
|
||||
}
|
||||
.assign-counter-container {
|
||||
|
||||
.assign-counter-container,
|
||||
.circle-icon {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +127,9 @@
|
|||
.repository-row-edit-icon {
|
||||
display: none;
|
||||
}
|
||||
.assign-counter-container {
|
||||
|
||||
.assign-counter-container,
|
||||
.circle-icon {
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,9 +42,16 @@ module RepositoryDatatableHelper
|
|||
end
|
||||
|
||||
def assigned_row(record)
|
||||
if record.assigned_my_modules_count.positive?
|
||||
if @my_module
|
||||
if record.assigned_my_modules_count.positive?
|
||||
"<span class='circle-icon'> </span>"
|
||||
else
|
||||
"<span class='circle-icon disabled'> </span>"
|
||||
end
|
||||
elsif record.assigned_my_modules_count.positive?
|
||||
tooltip = "#{record.assigned_my_modules_count} tasks, #{record.assigned_experiments_count} " \
|
||||
"experiments, #{record.assigned_projects_count} projects"
|
||||
|
||||
"<div class='assign-counter-container' title='#{tooltip}'>"\
|
||||
"<span class='assign-counter has-assigned'>#{record.assigned_my_modules_count}</span></div>"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue