-
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
Changes from all commits
0e5d1bb
f3fdfab
fe28dc7
af301f9
e1384a5
6a1414a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,6 @@ table.main_table > thead > tr > th { | |
font-weight: bold; | ||
} | ||
|
||
.unofficial > td { | ||
opacity: 0.4; | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,7 @@ | |
<% end %> | ||
</ul> | ||
|
||
<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 commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
<th>Start time</th> | ||
<th>End time</th> | ||
<th>Duration</th> | ||
<th>User</th> | ||
<th>Score</th> | ||
<th></th> | ||
<% if policy(Contest).update? %> | ||
|
@@ -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 commentThe 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 commentThe 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". |
||
<td><%= contest.get_score(current_user.id) if user_signed_in? %></td> | ||
<td> | ||
<% if contest.is_running? && (policy(contest).start?) %> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,4 @@ | |
|
||
<p> | ||
<%= render 'form' %> | ||
</p> | ||
<% if false # COMMENTED %> | ||
<p> | ||
<b> Problems: </b> | ||
<% @problems.each do |problem| %> | ||
<%= link_to problem.name, problem_path(problem) %> | ||
(<%= link_to "remove", :controller => "problem_contest", :action => "remove", :method => "post", :problem_id => problem, :contest_id => @contest %>) | ||
<% end %> | ||
</p> | ||
<% end %> | ||
</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddLiveScoreboardField < ActiveRecord::Migration | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddOfficalCompetitors < ActiveRecord::Migration | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Newline |
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