Skip to content

Commit b35e0c5

Browse files
committed
change background color of N/A slots
1 parent 3907fe9 commit b35e0c5

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

app/views/schedule/grid.html.haml

+16-17
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,22 @@
2626
- rk_sessions.each_with_index do |rk_session, index|
2727
- next if index != 0 && rk_sessions[index - 1] == rk_session
2828
- count = rk_sessions.select {|ses| ses == rk_session }.count
29-
%td{:colspan => count}
30-
- if !rk_session || rk_session.empty?
31-
= '-'
32-
- else
33-
- (events = rk_session.events).each do |event|
34-
%h3
35-
- unless event.hide_link
36-
%a.tip{:href => event_path(:id => event._id)}
37-
= event.localize(I18n.locale, :title)
38-
- unless event.hide_link
39-
%img.fright{:alt => "Details", :src => "/2011/images/commonBtnDetails.png"}
40-
- else
29+
30+
- klass = (!rk_session || rk_session.empty?) ? "not-applicable" : "session"
31+
%td{:colspan => count, :class => klass}
32+
- (events = rk_session.events).each do |event|
33+
%h3
34+
- unless event.hide_link
35+
%a.tip{:href => event_path(:id => event._id)}
4136
= event.localize(I18n.locale, :title)
37+
- unless event.hide_link
38+
%img.fright{:alt => "Details", :src => "/2011/images/commonBtnDetails.png"}
39+
- else
40+
= event.localize(I18n.locale, :title)
4241

43-
- if abstract = event.localize(I18n.locale, :abstract)
44-
%span= abstract
45-
- if event.presenters
46-
- event.presenters.each do |presenter|
47-
%p= RubyKaigi2011::Localizer.value_for_locale(I18n.locale, presenter["name"])
42+
- if abstract = event.localize(I18n.locale, :abstract)
43+
%span= abstract
44+
- if event.presenters
45+
- event.presenters.each do |presenter|
46+
%p= RubyKaigi2011::Localizer.value_for_locale(I18n.locale, presenter["name"])
4847
!= render :partial => 'shared/2011/back_to_top'

public/2011/stylesheets/sass/pc.scss

+3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ h1 {
247247
.hours {
248248
white-space: nowrap;
249249
background-color: rgba(138, 135, 134, 0.3); }
250+
td.not-applicable {
251+
background-color: rgba(138, 135, 134, 0.3);
252+
}
250253
.hall {
251254
width: 400px; } } }
252255

0 commit comments

Comments
 (0)