Skip to content

Commit

Permalink
Replace Jinja templates in frontend with Angular (oppia#4037)
Browse files Browse the repository at this point in the history
fix part of oppia#3950
  • Loading branch information
ishucr7 authored and seanlip committed Nov 1, 2017
1 parent 572a93e commit 9fab44d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ oppia.controller('StateStatistics', [
stateCustomizationArgsService, oppiaExplorationHtmlFormatterService,
TrainingModalService, INTERACTION_SPECS) {
$scope.isInteractionTrainable = false;
$scope.SHOW_TRAINABLE_UNRESOLVED_ANSWERS =
GLOBALS.SHOW_TRAINABLE_UNRESOLVED_ANSWERS;

$scope.initStateStatistics = function(data) {
$scope.isInteractionTrainable = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<div ng-controller="StateStatistics">
{% if SHOW_TRAINABLE_UNRESOLVED_ANSWERS %}
<div ng-if="isInteractionTrainable && trainingDataButtonContentsList.length > 0">
<div ng-if="SHOW_TRAINABLE_UNRESOLVED_ANSWERS && isInteractionTrainable && trainingDataButtonContentsList.length > 0">
<div class="oppia-editor-header">
<strong>Learner Answers to Teach Oppia</strong>
</div>
Expand All @@ -12,5 +11,4 @@
</span>
</button>
</div>
{% endif %}
</div>

0 comments on commit 9fab44d

Please sign in to comment.