-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #476 Modified the statistics method
- Loading branch information
Mahdi
authored and
Mahdi
committed
May 11, 2014
1 parent
c691505
commit 134139c
Showing
6 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
<%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %> | ||
<%= column_chart | ||
[ | ||
[ "Solved ones", @solved ], | ||
[ "Wrong attempts", @failed ], | ||
[ "Uncompleted ones", @incomplete] | ||
], | ||
library: {bar: {groupWidth: "10%"}}, | ||
colors: ["lightblue"] | ||
%> | ||
<%= column_chart [["Solved ones", @solved], | ||
["Wrong attempts", @failed], | ||
["Incomplete attempts", @incomplete]], | ||
library: {bar: {groupWidth: "10%"}}, | ||
colors: ["lightblue"]%> | ||
|
||
<form action="/students/solved_problems" class="button_to" method="get"><div> | ||
<input class="btn btn-success" style="margin-left: 150px; margin-right:auto; margin-top: 60px" type="submit" value="Solved Ones" /></div></form> | ||
<form action="/students/failed_problems" class="button_to" method="get"><div> | ||
<input class="btn btn-success" style="margin-left: 350px; margin-right:auto; margin-top: -63px" type="submit" value="Failed Ones" /></div></form> | ||
<form action="/students/incomplete_problems" class="button_to" method="get"> | ||
<div><input class="btn btn-success" style="margin-left: 550px; margin-right:auto; margin-top: -110px" type="submit" value="Uncompleted Ones" /></div></form> | ||
<div><input class="btn btn-success" style="margin-left: 550px; margin-right:auto; margin-top: -110px" type="submit" value="Uncompleted Ones" /></div></form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<h4>Choose a course :- </h4><br> | ||
<% @courses_list.each do |crs| %> | ||
<li> <%= link_to (Course.find_by_id(crs.course_id).name), students_get_performance_path(:student_id => crs.student_id, :course_id => crs.course_id) %></li><br> | ||
<% end %> | ||
|
||
<%= debug(@courses_list) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters