From 44170178c65df42aa5f986e85a1e54fff15ff478 Mon Sep 17 00:00:00 2001
From: Jaden Diefenbaugh <blakcap@users.noreply.github.com>
Date: Thu, 23 Feb 2017 11:23:10 +0100
Subject: [PATCH] clearer controller alias, add noop trigger for editor
 highlighting

---
 .../templates/reports/panels/viewer.html        | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/beat/web/reports/templates/reports/panels/viewer.html b/beat/web/reports/templates/reports/panels/viewer.html
index f5725d2cd..b5ea6f1fc 100644
--- a/beat/web/reports/templates/reports/panels/viewer.html
+++ b/beat/web/reports/templates/reports/panels/viewer.html
@@ -1,3 +1,4 @@
+{# '{#' is a trigger for django highlighting in editors #}
 {% comment %}
 * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
 * Contact: beat.support@idiap.ch
@@ -45,7 +46,7 @@
 			</div>{# panel #}
 
 			{# GROUPS DISPLAY/EDITOR #}
-			<div id='groups' class='panel panel-default' ng-controller='GroupsController as groups'>
+			<div id='groups' class='panel panel-default' ng-controller='GroupsController as groupsCtrl'>
 				<div id="groups-heading" class="panel-heading" role="tab">
 					<h4 class="panel-title">
 						<a
@@ -69,25 +70,25 @@
 							<div class='col-lg-6'>
 								<div class="input-group">
 									<span class="input-group-btn">
-										<button ng-click='groups.createGroup(groups.newGroupName)' class="btn btn-default" type="button">Create</button>
+										<button ng-click='groupsCtrl.createGroup(groupsCtrl.newGroupName)' class="btn btn-default" type="button">Create</button>
 									</span>
-									<input ng-model='groups.newGroupName' type="text" class="form-control" placeholder="Group name...">
+									<input ng-model='groupsCtrl.newGroupName' type="text" class="form-control" placeholder="Group name...">
 								</div>
 							</div>
 						</div>
-						<div ng-repeat='group in groups.groups track by $index' ng-class='groups.classArr(group.name)'>
+						<div ng-repeat='group in groupsCtrl.groups track by $index' ng-class='groupsCtrl.classArr(group.name)'>
 							<div class='panel-heading'>
 								<h4 class='panel-title'>{$ group.name $}</h4>
 							</div>
 							<div class='panel-body'>
 								<button
 									class='btn btn-success'
-									ng-click='groups.setActiveGroup(group.name)'>
+									ng-click='groupsCtrl.setActiveGroup(group.name)'>
 									Set as Active Group
 								</button>
 								<button
 									class='btn btn-danger'
-									ng-click='groups.deleteGroup(group.name)'>
+									ng-click='groupsCtrl.deleteGroup(group.name)'>
 									Delete Group
 								</button>
 								<div class="dropdown pull-left">
@@ -102,7 +103,7 @@
 										<span class="caret"></span>
 									</button>
 									<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
-										<li ng-click='groups.addExperimentToGroup(expName, group.name)'  ng-repeat='(expName, exp) in groups.compatibleExperiments(group.analyzer)'>
+										<li ng-click='groupsCtrl.addExperimentToGroup(expName, group.name)'  ng-repeat='(expName, exp) in groupsCtrl.compatibleExperiments(group.analyzer)'>
 											<a href='#'>{$ expName $}</a>
 										</li>
 									</ul>
@@ -120,7 +121,7 @@
 										{$ expName $}
 										<button
 											class='btn btn-danger'
-											ng-click='groups.removeExperimentFromGroup(expName, group.name)'>
+											ng-click='groupsCtrl.removeExperimentFromGroup(expName, group.name)'>
 											Remove Experiment
 										</button>
 									</li>
-- 
GitLab