-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show all results publicly #103
Conversation
Previously students results would only be shown on the public scoreboard if equal to or better than the median score.
Remove /usr/bin prefix from compile commands (#70) Since commit 32dcf29 (add Java support, 2014-12-25), the compilation commands are executed using bash instead of directly using isolate. They no longer need the first argument to be the full path to the compiler. Note that the interpreter commands are still executed directly using isolate and need to keep using the full path to the interpreter. Co-authored-by: Tom Levy <[email protected]>
- Add two boolean feilds to the database live_scoreboard: If true, show problem scores on the live scoreboard show_unofficial_competitors: Mark non highschool students on scoreboard - Add these to the contest edit form - Update the scoreboard page itself Also: - Removed the contest info tab because it seems useless - Set the default tab to scoreboard if logged out - No longer show Owner ID from contest information - Use "hours" so that the duration setting is more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo
@@ -27,8 +26,7 @@ | |||
<td><%= contest.name %></td> | |||
<td><%= contest.start_time.strftime("%b %d, %H:%M") unless contest.start_time.nil? %></td> | |||
<td><%= contest.end_time.strftime("%b %d, %H:%M") unless contest.end_time.nil? %></td> | |||
<td><%= contest.duration %></td> | |||
<td><%= contest.owner_id %></td> | |||
<td><%= contest.duration %> hours</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self reminder to correctly pluralise this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine actually, "1.0 hours" sounds more correct than "1.0 hour".
https://english.stackexchange.com/questions/44489/is-1-0-singular-or-plural
<% end %> | ||
</p> | ||
<% end %> | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
<p> | ||
<b> Problem set: </b> | ||
<%= link_to @contest.problem_set.name, @contest.problem_set %> | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
@@ -70,3 +70,6 @@ table.main_table > thead > tr > th { | |||
font-weight: bold; | |||
} | |||
|
|||
.unofficial > td { | |||
opacity: 0.4; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
def change | ||
add_column :contests, :show_unofficial_competitors, :boolean, :default => false | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
def change | ||
add_column :contests, :live_scoreboard, :boolean, :default => true | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
Previously students results would only be shown on the public
scoreboard if equal to or better than the median score. I don't see any point to this - we may as well show the preliminary results publicly so people can keep an eye on the scoreboard without logging in.
Obsoleted by #123