From 0fcd9d2a4abc7396d1abd60fbbbd1482307999aa Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 19 Jun 2013 17:04:32 +0200 Subject: [PATCH] Use gradients for slots with an event --- app/assets/stylesheets/osem.css | 17 +++++++++++++++++ app/views/schedule/index.html.erb | 18 +++++++++++------- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/osem.css b/app/assets/stylesheets/osem.css index 338157e3..f7cd13fa 100644 --- a/app/assets/stylesheets/osem.css +++ b/app/assets/stylesheets/osem.css @@ -151,4 +151,21 @@ div.dataTables_scrollBody tbody tr:first-child td { div.dataTables_scrollFoot table { border-top: none; +} + +.event { +background-image: linear-gradient(bottom, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); +background-image: -o-linear-gradient(bottom, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); +background-image: -moz-linear-gradient(bottom, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); +background-image: -webkit-linear-gradient(bottom, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); +background-image: -ms-linear-gradient(bottom, rgb(247,250,242) 24%, rgb(194,232,190) 97%, rgb(194,232,190) 100%); + +background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0.24, rgb(247,250,242)), + color-stop(0.97, rgb(194,232,190)), + color-stop(1, rgb(194,232,190)) +); } \ No newline at end of file diff --git a/app/views/schedule/index.html.erb b/app/views/schedule/index.html.erb index 5f8c240b..64808b9d 100644 --- a/app/views/schedule/index.html.erb +++ b/app/views/schedule/index.html.erb @@ -39,27 +39,31 @@ <% if !event.empty? %> <% span[room.id] = event[0].event_type.length / 15 %> - -

+ <%= image_tag event[0].submitter.gravatar_url, :class => "img-circle pull-right", :alt => event[0].submitter.public_name, :title => event[0].submitter.public_name%>
-

+ <%= event[0].title %>
- <%= event[0].subtitle %>
+ <% unless event[0].subtitle.empty? %> + <%= event[0].subtitle %>
+ <% end %> + + <%= event[0].submitter.public_name %> <% if event[0].track%> - in track +
<%= event[0].track.name %> <% end -%>
<% if span[room.id] > 2 %> - <%= truncate(event[0].abstract, :length => 80) %> + <% length = span[room.id] * 40 %> + <%= truncate(event[0].abstract, :length => length) %> <% end %> <% span[room.id] = span[room.id] + 1 %> <% end %> <% if span[room.id] == 1 %> - "> + <% end %> <% if span[room.id] > 1 %>