Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StrandLab2.net
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Strand Lab
StrandLab2.net
Commits
2b6f77bb
Commit
2b6f77bb
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Add LUT thumbnails
parent
0c5a7ce6
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!92
Develop
,
!91
Donor.thumbnails
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
layouts/custom/repository.html
+25
-12
25 additions, 12 deletions
layouts/custom/repository.html
with
25 additions
and
12 deletions
layouts/custom/repository.html
+
25
−
12
View file @
2b6f77bb
...
...
@@ -120,6 +120,7 @@
<tr>
<th>
H
&
E Thumbnail (Pr)
</th>
<th>
H
&
E Thumbnail (Bl)
</th>
<th>
H
&
E Thumbnail (LUT)
</th>
<th>
Disease
</th>
<th>
ID
</th>
<th>
Age
</th>
...
...
@@ -853,14 +854,17 @@
let
newRow
=
table
.
insertRow
(
-
1
)
var
row_he_pr
=
newRow
.
insertCell
(
0
)
var
row_he_bl
=
newRow
.
insertCell
(
1
)
var
row_ds
=
newRow
.
insertCell
(
2
)
var
row_si
=
newRow
.
insertCell
(
3
)
var
row_ag
=
newRow
.
insertCell
(
4
)
var
row_et
=
newRow
.
insertCell
(
5
)
var
row_he_lut
=
newRow
.
insertCell
(
2
)
var
row_ds
=
newRow
.
insertCell
(
3
)
var
row_si
=
newRow
.
insertCell
(
4
)
var
row_ag
=
newRow
.
insertCell
(
5
)
var
row_et
=
newRow
.
insertCell
(
6
)
var
thm_pr
=
document
.
createElement
(
"
img
"
)
var
thm_pr_file
var
thm_bl
=
document
.
createElement
(
"
img
"
)
var
thm_bl_file
var
thm_lut
=
document
.
createElement
(
"
img
"
)
var
thm_lut_file
if
(
repo
[
i
][
"
Disease Status
"
]
==
"
Donor
"
)
{
var
dis_status
=
"
D
"
}
else
{
...
...
@@ -868,27 +872,36 @@
}
for
(
j
=
0
;
j
<
thumbnails
.
length
;
j
++
)
{
if
(
thumbnails
[
j
].
patient
==
dis_status
+
(
"
000
"
+
repo
[
i
][
"
Study ID
"
]).
slice
(
-
3
))
{
thm_pr_file
=
thumbnails
[
j
].
Pr
thm_pr
.
src
=
"
https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/Pr/
"
+
thm_pr_file
thm_bl_file
=
thumbnails
[
j
].
Bl
thm_bl
.
src
=
"
https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/Bl/
"
+
thm_bl_file
if
(
thumbnails
[
j
].
Pr
!=
""
){
thm_pr_file
=
thumbnails
[
j
].
Pr
thm_pr
.
src
=
"
https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/Pr/
"
+
thm_pr_file
}
if
(
thumbnails
[
j
].
Bl
!=
""
){
thm_bl_file
=
thumbnails
[
j
].
Bl
thm_bl
.
src
=
"
https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/Bl/
"
+
thm_bl_file
}
if
(
thumbnails
[
j
].
LUT
!=
""
){
thm_lut_file
=
thumbnails
[
j
].
LUT
thm_lut
.
src
=
"
https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/jpg/LUT/
"
+
thm_lut_file
}
break
}
}
//thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Pr/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Pr.jpg"
thm_pr
.
height
=
"
75
"
row_he_pr
.
appendChild
(
thm_pr
)
thm_pr
.
onerror
=
function
(){
this
.
remove
()
}
//thm_bl.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Bl/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Bl.jpg"
thm_bl
.
height
=
"
75
"
row_he_bl
.
appendChild
(
thm_bl
)
thm_bl
.
onerror
=
function
(){
this
.
remove
()
}
thm_lut
.
height
=
"
75
"
row_he_lut
.
appendChild
(
thm_lut
)
thm_lut
.
onerror
=
function
(){
this
.
remove
()
}
row_ds
.
innerHTML
=
repo
[
i
][
"
Disease Status
"
]
row_si
.
innerHTML
=
repo
[
i
][
"
Study ID
"
]
row_ag
.
innerHTML
=
repo
[
i
].
Age
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment