La liste des lug est une sidebar html5

This commit is contained in:
echarp 2014-07-07 22:32:26 +02:00
parent 9f425d9fe4
commit 4cec615f14
4 changed files with 12 additions and 8 deletions

View File

@ -111,8 +111,8 @@ main
line-height: 1.3em
p
margin: 0.95em 0
line-height: 1.3em
text-align: justify
line-height: 1.3em
&.label
text-align: center
span.label:after

View File

@ -28,6 +28,11 @@ header.calendar-header
&.year_selector
margin: 0
.events, .event
.city:after
content: ':'
margin-right: -1px
body.events.index table
width: 90%
margin-top: 3.5em
@ -96,9 +101,6 @@ body.events.index table
.event
font-size: smaller
line-height: 1.1em
strong:after
content: ':'
margin-right: -1px
a:link, a:visited
color: #111
font-weight: normal
@ -111,7 +113,7 @@ body.events.index table
font-size: smaller
text-align: right
#lug-list
sidebar#lug-list
float: right
width: 15em
border: 1px solid #96CFFF
@ -119,6 +121,7 @@ body.events.index table
padding: 5px
font-size: 0.7em
background-color: #D6ECFF
@include box-shadow(4px 4px 1em gray)
@include border-radius(10px)
h1
font-size: 1.22em

View File

@ -29,7 +29,7 @@
- events.select { |e| e.start_time.to_date <= date and date <= e.end_time.to_date }.sort_by { |e| e.city }.each do |event|
%li.event
= link_to event do
%strong= event.city.gsub '-', ' '
%strong.city= event.city.gsub '-', ' '
= event.title
- else
@ -42,7 +42,7 @@
- events.select { |e| e.start_time.to_date <= date and date <= e.end_time.to_date }.sort_by { |e| e.city }.each do |event|
%li.event
= link_to event do
%strong= event.city.gsub '-', ' '
%strong.city= event.city.gsub '-', ' '
= event.title
.formats

View File

@ -1,5 +1,5 @@
%h2
%em= @event.city + ':'
%em.city= @event.city
= @event.title
- if @event.persisted? && request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes' && controller.action_name != 'edit' && controller.action_name != 'cancel'
@ -17,6 +17,7 @@
%em.fa.fa-calendar
=t '.add_to_calendar'
- if user_signed_in?
%br/
= link_to edit_moderation_path @event do
%em.fa.fa-pencil
=t '.edit'