Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Merge 53ad776 into dd59e4a
Browse files Browse the repository at this point in the history
  • Loading branch information
nogalpaulina committed Apr 8, 2021
2 parents dd59e4a + 53ad776 commit ef64812
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<url-pattern>/settings/*</url-pattern>
<url-pattern>/user-settings</url-pattern>
<url-pattern>/notifications</url-pattern>
<url-pattern>/learningAnalytics</url-pattern>
<url-pattern>/static/*</url-pattern>
<url-pattern>/exclusive/*</url-pattern>
<url-pattern>/widgets</url-pattern>
Expand Down
4 changes: 4 additions & 0 deletions web/src/main/webapp/css/general.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ md-select-menu {
.center {
text-align: center;
}

.learningAnalytics__content {
padding: 0 18px;
}
41 changes: 41 additions & 0 deletions web/src/main/webapp/my-app/learningAnalytics/controllers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
'use strict';

define(['angular'], function(angular) {
return angular.module('my-app.learningAnalytics.controllers', [])

.controller('LearningAnalyticsController',
['$scope', 'learningAnalyticsService',
function($scope, learningAnalyticsService) {

// Promise to resolve group memberships
learningAnalyticsService.getGroups().then(function(data) {
$scope.groups = data.groups;

for (var i = 0; i > $scope.groups.length; i++) {
if ($scope.groups[i].name === 'Users - Service Activation Required') { // This Group name will be updated
$scope.forInstructorsOnly = true;
return;
}
}
$scope.forInstructorsOnly = false;
});
}]);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at the following location:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<frame-page
app-title="Learning Analytics for Instructors"
page-title="Learning Analytics for Instructors"
white-background="true">
<div ng-controller="LearningAnalyticsController as learningAnalyticsCtrl" class="portlet-details-page">
<md-content class="learningAnalytics__content md-uwMadison-theme">
<div data-role='content'>
<h2>Tools</h2>
<ul data-role='listview'>
<li>Learner Engagement Analytics Dashboard (LEAD)
<ul style="padding-left:1.2em" data-role='listview'>
<!-- Leaving for test purpose only -->
<li ng-if="forInstructorsOnly">this is for instructors only</li>
<li ng-if="!forInstructorsOnly">this is for everybody</li>
<li><a href="" target="_blank" rel="noopener noreferer">Current semester (S21)</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Fall 2020</a></li>
</ul>
</li>
<li><a href="" target="_blank" rel="noopener noreferer">Course Undergraduate Enrollment Snapshot</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Canvas New Analytics</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Canvas Context Cards</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Kaltura Analytics</a></li>
</ul>

<h2>Resources</h2>
<ul data-role='listview'>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics at UW-Madison</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics Guiding Principles</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Pedagogical Guide for Learning Analytics</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">LEAD KnowledgeBase Overview and Support</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics KnowledgeBase</a></li>
</ul>

<h2>Events</h2>
<ul data-role='listview'>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics Community of Practice</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics Speaker Series</a></li>
<li><a href="" target="_blank" rel="noopener noreferer">Learning Analytics Events</a></li>
</ul>
</div>
</md-content>
</div>
</frame-page>
24 changes: 24 additions & 0 deletions web/src/main/webapp/my-app/learningAnalytics/route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

define(['require'], function(require) {
return {
templateUrl: require.toUrl('./partials/learningAnalytics.html'),
};
});
42 changes: 42 additions & 0 deletions web/src/main/webapp/my-app/learningAnalytics/services.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
'use strict';

define(['angular', 'jquery'], function(angular, $) {

return angular.module('my-app.learningAnalytics.services', [])

.factory('learningAnalyticsService',
['portalGroupService',
function(portalGroupService) {

var getGroups = function(groups) {
return portalGroupService.getGroups()
.then(function(groups) {
return {
groups: groups,
}
});
}
return {
getGroups: getGroups,
}
}
])
});
8 changes: 7 additions & 1 deletion web/src/main/webapp/my-app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ define([
'angular',
'require',
'./marketplace/routes',
'./learningAnalytics/route',
'./layout/list/route',
'portal/messages/routes',
'portal/settings/routes',
Expand Down Expand Up @@ -49,7 +50,9 @@ define([
'./search/controllers',
'./search/directives',
'./search/services',
], function(angular, require, marketplaceRoutes, listRoute, messagesRoutes,
'./learningAnalytics/controllers',
'./learningAnalytics/services',
], function(angular, require, marketplaceRoutes, learningAnalyticsRoute, listRoute, messagesRoutes,
portalSettingsRoutes, aboutRoute, helpRoutes, layoutRoute, staticRoutes,
widgetRoutes, searchRoutes) {
return angular.module('my-app', [
Expand All @@ -63,6 +66,8 @@ define([
'my-app.marketplace.controllers',
'my-app.marketplace.directives',
'my-app.marketplace.services',
'my-app.learningAnalytics.controllers',
'my-app.learningAnalytics.services',
'my-app.menu.controllers',
'my-app.rating.components',
'my-app.rating.controllers',
Expand Down Expand Up @@ -96,6 +101,7 @@ define([
.when('/about', aboutRoute)
.when('/session-info', helpRoutes.sessionInfo)
.when('/widget-creator', widgetRoutes.widgetCreator)
.when('/learningAnalytics', learningAnalyticsRoute)
.otherwise(layoutRoute);
}]);
});

0 comments on commit ef64812

Please sign in to comment.