Merge lp:~wikxen/lenasys/fix into lp:lenasys

Proposed by Erik Wikström
Status: Merged
Merged at revision: 135
Proposed branch: lp:~wikxen/lenasys/fix
Merge into: lp:lenasys
Diff against target: 94 lines (+51/-12)
2 files modified
codeigniter/application/views/sidemenu.php (+28/-10)
codeigniter/js/sidemenu.js (+23/-2)
To merge this branch: bzr merge lp:~wikxen/lenasys/fix
Reviewer Review Type Date Requested Status
lenasysmaint Pending
Review via email: mp+166512@code.launchpad.net

Description of the change

Added copyright. Changed stats outlook

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'codeigniter/application/views/sidemenu.php'
2--- codeigniter/application/views/sidemenu.php 2013-05-30 08:46:52 +0000
3+++ codeigniter/application/views/sidemenu.php 2013-05-30 14:24:18 +0000
4@@ -1,3 +1,25 @@
5+<!--
6+The header should look something like this:
7+
8+Copyright (C) Högskolan i Skövde <his.se> 2013.
9+Copyright (C) Emma < ?? > 2013.
10+Copyright (C) Anders < ?? > 2013.
11+Copyright (C) Erik Wikström <b10eriwi@student.his.se> 2013.
12+
13+This file is part of LenaSYS
14+
15+This program is free software: you can redistribute it and/or modify
16+it under the terms of the GNU Lesser General Public License as published by
17+the Free Software Foundation, either version 3 of the License.
18+
19+This program is distributed in the hope that it will be useful,
20+but WITHOUT ANY WARRANTY; without even the implied warranty of
21+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+GNU Lesser General Public License for more details.
23+
24+You should have received a copy of the GNU Lesser General Public License
25+along with this program. If not, see <http://www.gnu.org/licenses/>.
26+-->
27
28 <!-- sidemenu.php -->
29 <div id="sidemenuWrapper">
30@@ -26,22 +48,18 @@
31 <div class="sidemenuContent">
32 <?php if ($userType == 'Teacher') { ?>
33 <p>System</p>
34- <p class="sidemenuContentInfo">Courses: <?php echo $stats['system']['courseAmount']; ?></p>
35- <p class="sidemenuContentInfo">Examples: <?php echo $stats['system']['exampleAmount']; ?></p>
36- <p class="sidemenuContentInfo">Quizzes: <?php echo $stats['system']['quizAmount']; ?></p>
37+ <p class="sidemenuContentInfo"><?php echo $stats['system']['courseAmount']; ?> courses</p>
38+ <p class="sidemenuContentInfo"><?php echo $stats['system']['exampleAmount']; ?> examples</p>
39+ <p class="sidemenuContentInfo"><?php echo $stats['system']['quizAmount']; ?> quizzes</p>
40 <br>
41 <?php } ?>
42 <p>Course</p>
43- <p class="sidemenuContentInfo">Examples: <?php echo $stats['course']['exampleAmount']; ?></p>
44- <p class="sidemenuContentInfo">Quizzes: <?php echo $stats['course']['quizAmount']; ?></p>
45+ <p class="sidemenuContentInfo"><?php echo $stats['course']['exampleAmount']; ?> examples</p>
46+ <p class="sidemenuContentInfo"><?php echo $stats['course']['quizAmount']; ?> quizzes</p>
47 <br>
48 <p>User</p>
49 <p class="sidemenuContentInfo"><?php echo $stats['user']['agentPlatform']; ?></p>
50- <p class="sidemenuContentInfo"><?php echo $stats['user']['agentType'].' '.$stats['user']['agentName'];
51- if ($stats['user']['agentType'] == 'Desktop') {
52- echo ' '.$stats['user']['agentVersion'];
53- }
54- ?></p>
55+ <p class="sidemenuContentInfo"><?php echo $stats['user']['agentType'].' '.$stats['user']['agentName']; ?></p>
56 <p id="resolution" class="sidemenuContentInfo">Screenresolution</p>
57 </div>
58 </div>
59
60=== modified file 'codeigniter/js/sidemenu.js'
61--- codeigniter/js/sidemenu.js 2013-05-29 10:55:55 +0000
62+++ codeigniter/js/sidemenu.js 2013-05-30 14:24:18 +0000
63@@ -1,7 +1,28 @@
64+/*
65+The header should look something like this:
66+
67+Copyright (C) Högskolan i Skövde <his.se> 2013.
68+Copyright (C) Erik Wikström <b10eriwi@student.his.se> 2013.
69+
70+This file is part of LenaSYS
71+
72+This program is free software: you can redistribute it and/or modify
73+it under the terms of the GNU Lesser General Public License as published by
74+the Free Software Foundation, either version 3 of the License.
75+
76+This program is distributed in the hope that it will be useful,
77+but WITHOUT ANY WARRANTY; without even the implied warranty of
78+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79+GNU Lesser General Public License for more details.
80+
81+You should have received a copy of the GNU Lesser General Public License
82+along with this program. If not, see <http://www.gnu.org/licenses/>.
83+*/
84+
85 /* Functions that run when the page loads */
86 $(document).ready(function() {
87- $('#resolution').html($(window).width() + ' x ' + $(window).height());
88+ $('#resolution').html($(window).width() + ' x ' + $(window).height() + ' px');
89 $(window).resize(function() {
90- $('#resolution').html($(window).width() + ' x ' + $(window).height());
91+ $('#resolution').html($(window).width() + ' x ' + $(window).height() + ' px');
92 });
93 });
94\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: