webgui/app/views/entry/index.html.erb in tournament-2.6.0 vs webgui/app/views/entry/index.html.erb in tournament-3.0.0
- old
+ new
@@ -9,8 +9,14 @@
<% @entries.each do |entry| %>
<li><%= link_to entry.name, :action => 'show', :id => entry.id %> <% if entry.completed %><span class="entryCompleted">COMPLETED</span><%else%><span class="entryPending">PENDING</span><%end%></li>
<% end %>
</ul>
<% end %>
+<% if @pool.accepting_entries? -%>
<p>
<%= link_to 'Create a new entry', :action => 'new', :id => @pool.id %>
</p>
+<% elsif !@pool.ready? -%>
+<i>This pool is not yet ready. The pool starts in <%= distance_of_time_in_words(@pool.starts_at, Time.now) %>. After it starts, you can make entries.</i>
+<% else -%>
+<i>This pool is not accepting any more entries.</i>
+<% end -%>