-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(citSci): added dataset progress information (in progress)
- Loading branch information
Showing
7 changed files
with
236 additions
and
31 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 |
---|---|---|
@@ -1,13 +1,61 @@ | ||
|
||
.citSci-next { | ||
.dataset-progress-wrapper { | ||
|
||
margin-left: 30px; | ||
display: flex; | ||
|
||
a, button { | ||
.citSci-next { | ||
|
||
width: 220px; | ||
margin-left: 30px; | ||
|
||
a, button { | ||
|
||
width: 220px; | ||
|
||
} | ||
|
||
} | ||
|
||
.dataset-progress { | ||
|
||
display: flex; | ||
|
||
background-color: #000000; | ||
|
||
.progress-summary { | ||
margin-left: 15px; | ||
background: #000000; | ||
color: #aaa; | ||
|
||
} | ||
|
||
|
||
|
||
.progress-graphic { | ||
margin-left: 15px; | ||
background: #000000; | ||
padding: 1px 1px 2px 2px; | ||
display: block; | ||
width: 23px; | ||
height: 23px; | ||
border-radius: 3px; | ||
div { | ||
display: block; | ||
height: 1px; | ||
width: 1px; | ||
background: #00ca56; | ||
margin:2px 2px 1px 1px; | ||
float: left; | ||
border-radius: 1px; | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
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
55 changes: 38 additions & 17 deletions
55
src/app/citizenScience/datasetProgress/datasetProgress.tpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,46 @@ | ||
<div class="dataset-progress-wrapper"> | ||
<div class="btn-group citSci-next"> | ||
<button ng-if="!isRoutedSample" | ||
class="btn btn-default" | ||
ng-disabled="nextDisabled(true)" | ||
ng-click="nextItem()" | ||
ng-disabled="isDisabled()" | ||
title="Next Clip"> | ||
{{nextText()}} <span class="glyphicon glyphicon-arrow-right"></span> | ||
</button> | ||
<a ng-if="isRoutedSample" | ||
href="{{listenLink}}" | ||
ng-click="nextItem()" | ||
class="btn btn-default" | ||
ng-disabled="nextDisabled(false)" | ||
title="Next Clip"> | ||
{{nextText()}} <span class="glyphicon glyphicon-arrow-right"></span> | ||
</a> | ||
</div> | ||
|
||
|
||
<div class="dataset-progress" ng-if="progress.percent > 0"> | ||
|
||
<span class="progress-summary"> | ||
{{progress.responseCount}} / {{progress.itemCount}} ({{progress.percent}} %) | ||
</span> | ||
|
||
<div class="progress-graphic"> | ||
<div ng-repeat="break in progress.breaks track by $index" style="opacity:{{(break * 0.8) + 0.2}};"></div> | ||
|
||
<div class="btn-group citSci-next"> | ||
<button ng-if="!isRoutedSample" | ||
class="btn btn-default" | ||
ng-disabled="nextDisabled(true)" | ||
ng-click="nextItem()" | ||
ng-disabled="isDisabled()" | ||
title="Next Clip"> | ||
{{nextText()}} <span class="glyphicon glyphicon-arrow-right"></span> | ||
</button> | ||
<a ng-if="isRoutedSample" | ||
href="{{listenLink}}" | ||
ng-click="nextItem()" | ||
class="btn btn-default" | ||
ng-disabled="nextDisabled(false)" | ||
title="Next Clip"> | ||
{{nextText()}} <span class="glyphicon glyphicon-arrow-right"></span> | ||
</a> | ||
</div> | ||
|
||
|
||
|
||
|
||
</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
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