Skip to content

Commit

Permalink
Fixed showing activity and class in data.jade
Browse files Browse the repository at this point in the history
This removes the loading of activity and class controllers in developer
view
  • Loading branch information
Victorma committed Jun 26, 2017
1 parent 5353294 commit bad488e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/view/data.jade
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
h1
a(ng-if='isDeveloper()' href="#", editable-text="game.title" onaftersave="changeTitle()") Game {{ game.title }}
label(ng-if='!isDeveloper()') Game {{ game.title }} -
span(ng-controller='ClassCtrl' forclass='{{ selectedClass }}')
span(ng-if='!isDeveloper() && selectedClass' ng-controller='ClassCtrl' forclass='{{ selectedClass }}')
a(ng-if='isTeacher()' href="#", editable-text="class.name" onaftersave="changeName()") Class {{ class.name }}
label(ng-if='isStudent()') Class {{ class.name }}
.col-md-12(ng-controller='ActivityCtrl' lite='true' activity='{{ selectedActivity }}')
.col-md-12(ng-if='!isDeveloper() && selectedActivity' ng-controller='ActivityCtrl' lite='true' activity='{{ selectedActivity }}')
h3(ng-if='isTeacher()')
a(href="#", editable-text="activity.name" onaftersave="changeActivityName()") Activity {{ activity.name }}
h3(ng-if='isStudent()') Activity {{ activity.name }}
Expand Down

0 comments on commit bad488e

Please sign in to comment.