-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Micro: Added nest to images scroll on micrograph workspace
- Loading branch information
1 parent
f1189bd
commit fa7430d
Showing
8 changed files
with
176 additions
and
54 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<div> | ||
<div class="side-images-scroll"> | ||
|
||
<div ng-repeat='generation in vm.parentGenerations | orderBy:"+": true track by $index'> | ||
<div> | ||
<span ng-if='vm.parentGenerations.length - $index - 1 === 0'>1st</span> | ||
<span ng-if='vm.parentGenerations.length - $index - 1 === 1'>2nd</span> | ||
<span ng-if='vm.parentGenerations.length - $index - 1 === 2'>3rd</span> | ||
<span ng-if='vm.parentGenerations.length - $index - 1 === 3'>4th</span> | ||
<span ng-if='vm.parentGenerations.length - $index - 1 === 4'>5th</span> | ||
<span>Generation Parents</span> | ||
<div class='nest-block'> | ||
<div ng-repeat='spot in generation'> | ||
<strabo-spot-directive></strabo-spot-directive> | ||
<div ng-repeat='image in vm.getImages(spot) track by image.id' ng-click='vm.toggleImageSelected(image)'> | ||
<ion-label class='micrograph-nest-image-label'>{{ image.title || 'Untitled' }}</ion-label> | ||
<a><img ng-src='{{ vm.getImageSrc(image.id) }}' id='{{ image.id }}' width='200' height='200'></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<span ng-show='generation.length > 0'> | ||
<i class='ion-arrow-down-c padding-left'></i> | ||
<br> | ||
</span> | ||
</div> | ||
|
||
<div> | ||
<b>THIS SPOT</b> | ||
<div class='nest-block' class='nest-block'> | ||
<div ng-repeat='spot in [vm.thisSpotWithThinSection]'> | ||
<strabo-spot-directive></strabo-spot-directive> | ||
<div ng-repeat='image in vm.getImages(spot) track by image.id' ng-click='vm.toggleImageSelected(image)'> | ||
<ion-label class='micrograph-nest-image-label'>{{ image.title || 'Untitled' }}</ion-label> | ||
<a><img ng-src='{{ vm.getImageSrc(image.id) }}' id='{{ image.id }}' width='200' height='200'></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div ng-repeat='generation in vm.childGenerations track by $index'> | ||
<span ng-show='generation.length > 0'> | ||
<i class='ion-arrow-down-c padding-left'></i> | ||
<br> | ||
</span> | ||
|
||
<div> | ||
<span ng-if='$index === 0'>1st</span> | ||
<span ng-if='$index === 1'>2nd</span> | ||
<span ng-if='$index === 2'>3rd</span> | ||
<span ng-if='$index === 3'>4th</span> | ||
<span ng-if='$index === 4'>5th</span> | ||
<span>Generation Children</span> | ||
<div class='nest-block'> | ||
<div ng-repeat='spot in generation'> | ||
<strabo-spot-directive></strabo-spot-directive> | ||
<div ng-repeat='image in vm.getImages(spot) track by image.id' ng-click='vm.toggleImageSelected(image)'> | ||
<ion-label class='micrograph-nest-image-label'>{{ image.title || 'Untitled' }}</ion-label> | ||
<a><img ng-src='{{ vm.getImageSrc(image.id) }}' id='{{ image.id }}' width='200' height='200'></a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class='padding' ng-hide='vm.images.length > 0'> | ||
No images in this Spot, {{ vm.thisSpotWithThinSection.properties.name }}. | ||
Add images to this Spot from the Spot page for this Micrograph. See below. | ||
<button ng-click='vm.goToSpot(vm.thisSpotWithThinSection.properties.id, "images")' | ||
class='button'> | ||
{{vm.thisSpotWithThinSection.properties.name}} | ||
</button> | ||
</div> | ||
</div> | ||
<div id='maps' class="thin-section-maps" data-tap-disabled='true' ng-show='vm.imagesSelected.length > 0'> | ||
</div> | ||
<div class="thin-section-maps padding" ng-hide='vm.imagesSelected.length > 0'> | ||
No images selected. Please select an image on the left to add it to the map workspace. | ||
</div> | ||
</div> |
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,15 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
angular | ||
.module('app') | ||
.directive('straboMicrographDirective', straboMicrographDirective); | ||
|
||
function straboMicrographDirective() { | ||
return { | ||
'restrict': 'AE', | ||
'replace': true, | ||
'templateUrl': 'app/maps/thin-section/thin-section.directive.html' | ||
}; | ||
} | ||
}()); |
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
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