-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Refactor study results local features
- Loading branch information
1 parent
49fa6d4
commit f2a343e
Showing
12 changed files
with
236 additions
and
250 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 9 additions & 15 deletions
24
web_external/StudyResults/studyResultsLocalFeaturesPage.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
- var hasFeaturesClass = hasLocalFeatures ? '' : 'hidden'; | ||
- var noFeaturesClass = hasLocalFeatures ? 'hidden' : ''; | ||
|
||
.isic-study-results-local-features-content(class=noFeaturesClass) | ||
span N/A | ||
|
||
.isic-study-results-local-features-content(class=hasFeaturesClass) | ||
#isic-study-results-select-local-feature-container | ||
.isic-study-results-local-features-legend | ||
.isic-study-results-local-features-legend-possible | ||
i ■ | ||
span 50% confidence | ||
.isic-study-results-local-features-legend-definite | ||
i ■ | ||
span 100% confidence | ||
#isic-study-results-local-features-select-container | ||
.isic-study-results-local-features-legend | ||
.isic-study-results-local-features-legend-possible | ||
i ■ | ||
span 50% confidence | ||
.isic-study-results-local-features-legend-definite | ||
i ■ | ||
span 100% confidence | ||
#isic-study-results-local-features-image-container |
37 changes: 19 additions & 18 deletions
37
web_external/StudyResults/studyResultsLocalFeaturesPage.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
.isic-study-results-local-features-content | ||
display flex | ||
|
||
&>span | ||
margin-left 20px | ||
#isic-study-results-local-features-select-container | ||
flex 1 | ||
|
||
.isic-study-results-local-features-legend | ||
margin-top 10px | ||
.isic-study-results-local-features-legend | ||
margin-top 10px | ||
|
||
&>div | ||
display inline | ||
margin-left 20px | ||
&>div | ||
display inline | ||
margin-left 20px | ||
|
||
.isic-study-results-local-features-legend-possible | ||
i | ||
color #fafa00 | ||
.isic-study-results-local-features-legend-possible | ||
i | ||
color #fafa00 | ||
|
||
.isic-study-results-local-features-legend-definite | ||
i | ||
color #0000ff | ||
.isic-study-results-local-features-legend-definite | ||
i | ||
color #0000ff | ||
|
||
#isic-study-results-local-features-image-container | ||
margin-top 5px | ||
|
||
#isic-study-results-select-local-feature-container | ||
display flex | ||
flex 1 | ||
min-width 640px | ||
min-height 480px | ||
object-fit contain | ||
width 100% | ||
height 100% |
6 changes: 6 additions & 0 deletions
6
web_external/StudyResults/studyResultsLocalFeaturesSelectPage.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.isic-study-results-local-features-select-container | ||
// For select2, add width in style attribute, see https://select2.github.io/examples.html#responsive | ||
select#isic-study-results-local-features-select-box.form-control.input(style='width:100%') | ||
option(selected disabled value='') | ||
each feature in availableFeatures | ||
option(value=feature.id)= feature.name.join(', ') |
2 changes: 1 addition & 1 deletion
2
.../studyResultsSelectLocalFeaturesPage.styl → .../studyResultsLocalFeaturesSelectPage.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
web_external/StudyResults/studyResultsSelectLocalFeaturesPage.jade
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
isic.models.AnnotationModel = girder.Model.extend({ | ||
resourceName: 'annotation' | ||
resourceName: 'annotation', | ||
|
||
isComplete: function () { | ||
return this.get('state') === 'complete'; | ||
}, | ||
|
||
image: function () { | ||
return new isic.models.ImageModel(this.get('image')); | ||
} | ||
}); |