From 5aa5037d586069ec883e6f9a2d6d3fb264ef0059 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 18 Sep 2018 10:37:41 +0200 Subject: [PATCH] RSS link better presented --- app/assets/stylesheets/all.sass | 2 +- app/assets/stylesheets/list.sass | 4 +++- app/views/versions/index.haml | 12 ++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/all.sass b/app/assets/stylesheets/all.sass index e3b6676c..bef2842d 100644 --- a/app/assets/stylesheets/all.sass +++ b/app/assets/stylesheets/all.sass @@ -18,7 +18,7 @@ html padding: 0 background-color: transparent & > header, & > footer, - h2, nav, .region_filter, .orga_search, .formats, #banner + h2, nav, .region_filter, .orga_search, #banner display: none ul margin: 0 diff --git a/app/assets/stylesheets/list.sass b/app/assets/stylesheets/list.sass index 1653b243..37bc7032 100644 --- a/app/assets/stylesheets/list.sass +++ b/app/assets/stylesheets/list.sass @@ -3,7 +3,9 @@ white-space: nowrap table - margin: 1em auto + clear: both + margin-top: 1em + margin-bottom: 1em border-spacing: 2px th padding: 0.3em 0.6em diff --git a/app/views/versions/index.haml b/app/views/versions/index.haml index 9418cc32..2e2da5fc 100644 --- a/app/views/versions/index.haml +++ b/app/views/versions/index.haml @@ -1,7 +1,12 @@ %h2 - %em.fa.fa-exchange + %em.fa.fa-history = title t '.title' +.links + = link_to versions_path(format: :rss) do + %em.fa.fa-rss + = t '.feed' + %table.list.autopagerize_page_element %thead %th.event @@ -51,8 +56,3 @@ %tfoot %tr %th(colspan='6')= paginate @versions - -.formats - = link_to versions_path(format: :rss) do - %em.fa.fa-rss - = t '.feed'