Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4beff312
authored
Aug 24, 2016
by
Fernando Martínez Santiago
Committed by
root
Aug 24, 2016
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bugs #534 and #539 fixed
parent
750f7bc3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
sails/src/api/controllers/ActionController.js
sails/src/api/controllers/StudentController.js
sails/src/assets/scripts/modules/student/controllers/session.js
sails/src/assets/scripts/modules/student/views/session.html
sails/src/api/controllers/ActionController.js
View file @
4beff312
...
@@ -12,7 +12,7 @@ module.exports = {
...
@@ -12,7 +12,7 @@ module.exports = {
* @param {request} req
* @param {request} req
* {
* {
* student: studentId,
* student: studentId,
* type: 'Add / Select / Delete / Show / Unshow /
Pause /
tryinit /
* type: 'Add / Select / Delete / Show / Unshow / tryinit /
* tryend / initsession / endsession / pausesession / resumesession',
* tryend / initsession / endsession / pausesession / resumesession',
* timestamp: 'Date()', (optional)
* timestamp: 'Date()', (optional)
* supervisor: supervisorId, (optional)
* supervisor: supervisorId, (optional)
...
...
sails/src/api/controllers/StudentController.js
View file @
4beff312
...
@@ -1074,7 +1074,7 @@ module.exports = {
...
@@ -1074,7 +1074,7 @@ module.exports = {
);
);
var
sup
=
null
;
var
sup
=
null
;
if
(
attributes
.
supervisor
)
sup
=
attributes
.
supervisor
;
if
(
attributes
.
id_sup
)
sup
=
attributes
.
id_sup
;
var
desc
=
null
;
var
desc
=
null
;
if
(
attributes
.
picto
)
desc
=
attributes
.
picto
;
// select, add and delete actions data
if
(
attributes
.
picto
)
desc
=
attributes
.
picto
;
// select, add and delete actions data
...
...
sails/src/assets/scripts/modules/student/controllers/session.js
View file @
4beff312
...
@@ -389,7 +389,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
...
@@ -389,7 +389,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
// as the last action, added $scope.apply() that lets angular know
// as the last action, added $scope.apply() that lets angular know
// what data has updated, and refresh what needs to be refreshed.
// what data has updated, and refresh what needs to be refreshed.
if
(
$scope
.
ws
&&
$scope
.
actual_try
.
actions
&&
$scope
.
paused
==
false
){
if
(
$scope
.
ws
&&
$scope
.
actual_try
.
actions
&&
!
data
.
attributes
.
id_sup
&&
$scope
.
paused
==
false
){
switch
(
data
.
action
){
switch
(
data
.
action
){
case
'Add'
:
case
'Add'
:
...
...
sails/src/assets/scripts/modules/student/views/session.html
View file @
4beff312
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
</timer>
</timer>
</div>
</div>
<div
class=
"try"
>
<div
class=
"try"
>
<div
class=
"pull-left"
ng-repeat=
"a in actual_try.actions track by $index"
>
<div
class=
"pull-left"
ng-repeat=
"a in actual_try.actions track by $index"
>
<div
class=
"picto"
popover=
"{{ a.attributes.picto.expression.text | translate }}"
popover-trigger=
"mouseenter"
>
<div
class=
"picto"
popover=
"{{ a.attributes.picto.expression.text | translate }}"
popover-trigger=
"mouseenter"
>
<img
ng-src=
"{{ a.attributes.picto.picto.uri }}"
/>
<img
ng-src=
"{{
a.attributes.picto.picto.uri }}"
/>
<div
class=
"action-type"
>
<div
class=
"action-type"
>
<span
ng-if=
"a.action == 'add'"
class=
"glyphicon glyphicon-plus color_green"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'add'"
class=
"glyphicon glyphicon-plus color_green"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Select'"
class=
"glyphicon glyphicon-hand-up color_blue"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Select'"
class=
"glyphicon glyphicon-hand-up color_blue"
aria-hidden=
"true"
></span>
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
<span
ng-if=
"a.action == 'tryend'"
class=
"glyphicon glyphicon-log-out"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'tryend'"
class=
"glyphicon glyphicon-log-out"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'pausesession'"
class=
"glyphicon glyphicon-pause"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'pausesession'"
class=
"glyphicon glyphicon-pause"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'resumesession'"
class=
"glyphicon glyphicon-play"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'resumesession'"
class=
"glyphicon glyphicon-play"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.attributes.id_sup"
class=
"glyphicon glyphicon-user color_blue"
aria-hidden=
"true"
></span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment