From 6c5b5ba7d510c79faa56e2b82124d3d0c6126150 Mon Sep 17 00:00:00 2001 From: Muhammad Mamdouh Date: Wed, 14 May 2014 19:14:38 +0200 Subject: [PATCH] Issue #526 adding duration , removing letter e --- tutor/app/views/contests/index.html.erb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tutor/app/views/contests/index.html.erb b/tutor/app/views/contests/index.html.erb index a8f0a851..3a94e1cc 100644 --- a/tutor/app/views/contests/index.html.erb +++ b/tutor/app/views/contests/index.html.erb @@ -3,12 +3,15 @@ style="width:180px;display:inline"><%= flash[:notice] %> <% end %> +

Your Contests

+ - <% unless @contests.blank? %> + <% if @contests %> - - + + + <% @contests.each do |contest| %> @@ -24,6 +27,9 @@ + <% if current_lecturer || current_teaching_assistant %> - <% end %>e + <% end %> <% end %> <% else %>
Contestsstart datestart timeStart dateStart timeDuration Actions

<%= contest.start_time %>

+

<%= contest.end_time.to_i - contest.start_time.to_i / (60*60) %>

+

<%= link_to "Edit", "/edit/"+contest.id.to_s %>

@@ -34,7 +40,7 @@ :id => contest.id,:method => :get, class: "btn btn-success" %>