mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +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;
|
background-color: $color-alto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.circle-icon {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checklists
|
// Checklists
|
||||||
|
@ -103,7 +107,9 @@
|
||||||
.repository-row-edit-icon {
|
.repository-row-edit-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.assign-counter-container {
|
|
||||||
|
.assign-counter-container,
|
||||||
|
.circle-icon {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,7 +127,9 @@
|
||||||
.repository-row-edit-icon {
|
.repository-row-edit-icon {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.assign-counter-container {
|
|
||||||
|
.assign-counter-container,
|
||||||
|
.circle-icon {
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,16 @@ module RepositoryDatatableHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def assigned_row(record)
|
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} " \
|
tooltip = "#{record.assigned_my_modules_count} tasks, #{record.assigned_experiments_count} " \
|
||||||
"experiments, #{record.assigned_projects_count} projects"
|
"experiments, #{record.assigned_projects_count} projects"
|
||||||
|
|
||||||
"<div class='assign-counter-container' title='#{tooltip}'>"\
|
"<div class='assign-counter-container' title='#{tooltip}'>"\
|
||||||
"<span class='assign-counter has-assigned'>#{record.assigned_my_modules_count}</span></div>"
|
"<span class='assign-counter has-assigned'>#{record.assigned_my_modules_count}</span></div>"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue