Fixed bug if details wasn't defined on sample level in project view
Moved logic from jquery to python for project view