Affichage de la sidebar des evts un peu plus travaillé

This commit is contained in:
echarp 2014-07-20 18:25:16 +02:00
parent 21976ed56b
commit 98e79698a0
2 changed files with 25 additions and 19 deletions

View File

@ -115,7 +115,7 @@ body.events.index table
sidebar#lug-list
float: right
width: 15em
width: 16em
border: 1px solid #96CFFF
margin: 0 1.2em
padding: 5px
@ -124,11 +124,15 @@ sidebar#lug-list
@include box-shadow(4px 4px 1em gray)
@include border-radius(10px)
h1
font-size: 1.22em
line-height: 1.1em
font-weight: normal
border-bottom: 1px black solid
padding-bottom: 4px
padding-bottom: 0.3em
h2
margin: 0
font-size: larger
a
padding: 0.5em 0
display: block
ul
text-align: left
line-height: 1.2em

View File

@ -4,6 +4,7 @@
- if @event.persisted? && request.format == 'text/html' && controller.controller_name == 'events' && controller.action_name == 'show'
%sidebar#lug-list
- if @event.related_region.lugs.present?
%h1=t '.lug-list'
- if @event.related_region
%ul
@ -13,17 +14,18 @@
(#{lug.department})
%h1=t '.actions'
= link_to event_path(@event, protocol: :webcal, format: :ics) do
%em.fa.fa-calendar
%h2
= link_to event_path @event, protocol: :webcal, format: :ics do
%em.fa.fa-lg.fa-calendar
=t '.add_to_calendar'
- if user_signed_in?
%br/
%h2
= link_to edit_moderation_path @event do
%em.fa.fa-pencil
%em.fa.fa-lg.fa-pencil
=t '.edit'
%br/
%h2
= link_to cancel_event_path @event, secret: @event.secret do
%em.fa.fa-thumbs-down
%em.fa.fa-lg.fa-thumbs-down
=t '.cancel'
%h3=t '.dateAndPlace'