-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzTASKS
More file actions
147 lines (98 loc) · 3.68 KB
/
zTASKS
File metadata and controls
147 lines (98 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
if submit empty thing, give error message
using "[DN: message]", will need to remove later
Input file is in active_probs
define group join code
imbed pictures in description somehow
change desc to be able to use markdown or something...html at least
CRITICAL ISSUES:
Static grading is broken
when create problem but dont finish creating it breaks- done?
back buttons need to go back not go to problems
edit problemsets in admin menu needs to work
delete test data
implement due date
group codes for adding students
NOT CRITICAL ISSUES:
id instead of name for user - folder creation
auto capitalize stuff - DONE
pushing esc exits new problem?
text doesent disapear when scroll over the navbar - DONE
change created time to submitted - DONE
currently clicking on albert stops the smooth scrolling, I dont know what to do, it links to root_path btw
completion amount
edit models
users controler line 19: @best = Array.new(Problem.last.id) does not account for lack of problems
tootip is not useing jquery
leave jobs show
dont allow people not in problemset to access it
autehnticatin fail message page
things we REALLY dont have to do at all because its cool but not needed at all unlike the suff that makes it work and will get uni to submit more programs
make plus sign turn to an x when opened
-Avery Planned Features
Sherlock Plagarism Detection http://www2.warwick.ac.uk/fac/sci/dcs/research/ias/software/sherlock/
usefull code
<div id="may-remove"></div><!--runs coffeescript command -->
website for paper->computer
http://www.onlineocr.net/
Some "do I needs"
def _form ... end in prob cont
<!--put into groups
<h2>Best Problems</h2>
<div id="accordion">
<% c = 0 %>
<% @best.each do |b|%>
<%if b%>
<%if Problem.find(b.problem_id).points == b.points%>
<%color = "green"%>
<%else%>
<%color = "red"%>
<%end%>
<h3><%=Problem.find(b.problem_id).title%> points:
<span style="color: <%=color%>;"> <%= b.points%>/<%=Problem.find(b.problem_id).points%></span></h3>
<div>
<p>
Your best result was attempt <%= b.attempt%>, with <%= b.points%> points<br>
Submitted: <%= b.created_at %><br>
Output: <%= b.previous_output %>
<%c = c + b.points%>
</p>
</div>
<%end%>
<%end%>
</div>
<br>
You have <%= c %> points in total.
-->
<div class="leaderBoards">
<% ct = 1 %>
<div class='leader-board-column'>
<% @users.each do |u| %>
<p><%= ct%><sup><%=ct.ordinalize[/[snrt][tdh]/]%></sup> <%=u.name%>: <%= u.points ||0%></p><!-- points or 0 if its nil -->
<%= raw "</div>" if ct%4 ==0%>
<%= raw "<div class='leader-board-column'>" if ct%4 ==0%>
<% ct += 1%>
<% end %>
</div>
</div>
<div class="leader-board-separator">
</div>
problem destroy DO NOT ADD BACK
@problem.destroy
respond_to do |format|
format.html { redirect_to problems_url, notice: 'Problem was successfully destroyed.' }
format.json { head :no_content }
end
----old list jobs
<% @group.users.each do |u| %>
<div id=<%=u.id%> class="collaps">
<span class="open"><%=u.name%></span>
</div>
<div id="collapse-<%=u.id%>" class="probs" style="display: none; padding-left:10px">
<% u.jobs.each do |j|%>
<span class="entry"><%=Problem.find(j.problem_id).title %></span>
<span class="entry"><%=j.updated_at %></span>
<span class="entry"><%=j.points %></span>
<br>
<% end %>
</div>
<% end %>