Browse Source

Fixed some styling issues

development
Godwin 8 years ago
parent
commit
2a5f03df2c
  1. 6
      app/assets/stylesheets/_application.scss
  2. 4
      app/views/conference_administration/_schedule.html.haml
  3. 1
      config/locales/en.yml

6
app/assets/stylesheets/_application.scss

@ -1779,6 +1779,11 @@ table.schedule {
tbody { tbody {
border: 0.1rem solid $light-gray; border: 0.1rem solid $light-gray;
th {
white-space: nowrap;
text-align: right;
}
} }
&.locations-1 td.workshop.filled { &.locations-1 td.workshop.filled {
@ -1804,6 +1809,7 @@ table.schedule {
&.locations-6 td.workshop.filled { &.locations-6 td.workshop.filled {
width: 16.66667%; width: 16.66667%;
} }
td { td {
text-align: center; text-align: center;
border: 0; border: 0;

4
app/views/conference_administration/_schedule.html.haml

@ -7,7 +7,7 @@
- add_inline_script :schedule if @entire_page - add_inline_script :schedule if @entire_page
#schedule-preview #schedule-preview
- @schedule.each do |day, data| - @schedule.each do |day, data|
%h4=date(day, :weekday) %h4=date(day, :weekday).html_safe
%table.schedule{class: [data[:locations].present? ? 'has-locations' : 'no-locations', "locations-#{data[:num_locations]}"]} %table.schedule{class: [data[:locations].present? ? 'has-locations' : 'no-locations', "locations-#{data[:num_locations]}"]}
- if data[:locations].present? && data[:locations].values.first != :add - if data[:locations].present? && data[:locations].values.first != :add
%thead %thead
@ -19,7 +19,7 @@
- data[:times].each do |time, time_data| - data[:times].each do |time, time_data|
%tr %tr
- rowspan = (time_data[:length] * 2).to_i - rowspan = (time_data[:length] * 2).to_i
%th=time(time) %th=time(time).html_safe
- if time_data[:type] == :workshop - if time_data[:type] == :workshop
- data[:locations].each do |id, location| - data[:locations].each do |id, location|
- if time_data[:item][:workshops][id].present? - if time_data[:item][:workshops][id].present?

1
config/locales/en.yml

@ -19,6 +19,7 @@ en:
default: "%a, %d %b %Y %H:%M" default: "%a, %d %b %Y %H:%M"
long: "%l%P, %B %e, %Y" long: "%l%P, %B %e, %Y"
short: "%l %M %P" short: "%l %M %P"
pm: pm
datetime: datetime:
distance_in_words: distance_in_words:
about_x_hours: about_x_hours:

Loading…
Cancel
Save