Sidebar slightly reorganised, to contain links' list

This commit is contained in:
echarp 2018-10-01 14:30:27 +02:00
parent a372b962ab
commit 901de334ef
4 changed files with 48 additions and 57 deletions

View File

@ -104,26 +104,20 @@ main, body.mce-content-body
aside
float: right
width: 16em
border: 1px solid #96CFFF
margin: 0 1.2em
z-index: 10
padding: 5px
position: relative
font-size: smaller
box-shadow: 4px 4px 1em gray
margin-right: -4em
border-radius: 1em
background-color: #D6ECFF
h1
font-weight: normal
h2
border-bottom: 1px black solid
padding-bottom: 0.3em
h2
margin: 0
font-size: larger
a
padding: 0.5em 0
ul a
padding: 0.5em 1em 0.5em 0
display: block
fieldset

View File

@ -111,8 +111,5 @@
body
font-size: larger
aside#orga-list
width: auto
#advises
max-width: 60em

View File

@ -1,6 +1,6 @@
%aside#orga-list
- if @event.region.present? && @event.region.orgas.present?
%h1{ title: @event.region }
%h2
= link_to orgas_path region: @event.region do
%em.fa.fa-users
= t '.orga-list'
@ -14,14 +14,15 @@
= orga.name
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
%h1
%h2
%em.fa.fa-wrench
= t '.actions'
%h2
%ul.fa-ul
%li
= link_to event_path @event, protocol: :webcal, format: :ics do
%em.fa.fa-lg.fa-calendar
%em.fa.fa-li.fa-calendar
= t '.add_to_calendar'
%h2
%li
= link_to preview_events_path(event: { title: @event.title,
start_time: @event.start_time + 1.month,
end_time: @event.end_time + 1.month,
@ -34,14 +35,14 @@
url: @event.url,
tag_list: @event.tag_list.to_s }),
method: :post do
%em.fa.fa-copy
%em.fa.fa-li.fa-copy
= t '.copy'
- if user_signed_in?
%h2
%li
= link_to edit_moderation_path @event do
%em.fa.fa-lg.fa-edit
%em.fa.fa-li.fa-edit
= t '.edit'
%h2
%li
= link_to cancel_event_path @event, secret: @event.secret do
%em.fa.fa-lg.fa-thumbs-down
%em.fa.fa-li.fa-thumbs-down
= t '.cancel'

View File

@ -1,12 +1,11 @@
%aside
%h1
%h2
%em.fa.fa-link
= t '.links'
%ul.fa-ul
%li
= link_to orgas_path(q: params[:q], page: params[:page]),
class: :back do
= link_to orgas_path q: params[:q], page: params[:page] do
%em.fa.fa-li.fa-arrow-left
= Orga.model_name.human.pluralize
%li
@ -35,16 +34,16 @@
GeoJSON
- if @orga.secret.nil? || user_signed_in?
%h1
%h2
%em.fa.fa-wrench
= t '.actions'
%h2
%ul.fa-ul
%li
= link_to edit_orga_path @orga do
%em.fa.fa-lg.fa-edit
%em.fa.fa-li.fa-edit
= t '.edit'
- if user_signed_in?
%h2
%li
= link_to cancel_orga_path @orga do
%em.fa.fa-lg.fa-thumbs-down
%em.fa.fa-li.fa-thumbs-down
= t '.cancel'