From d5c4d7d2bd9f258379bbbed40459a7067f2899b1 Mon Sep 17 00:00:00 2001 From: Marc Florisson Date: Mon, 3 Sep 2012 17:12:24 +0200 Subject: make referentials#index looks like lines#index --- app/assets/stylesheets/referentials.css.scss | 28 +++++++++++++++++++++++++++- app/views/referentials/index.html.erb | 2 ++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/referentials.css.scss b/app/assets/stylesheets/referentials.css.scss index 2d916232f..53200bf56 100644 --- a/app/assets/stylesheets/referentials.css.scss +++ b/app/assets/stylesheets/referentials.css.scss @@ -1,7 +1,33 @@ // Place all the styles related to the referentials controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ +@import "common"; +#workspace.referentials.index +{ + .referentials:after { + @include after_div_for_object; + } + + .referentials { + margin-top: 20px; + } + + .referentials:after { + @include content_to_clear; + } + + .referential { + @include div_for_object; + + /* to create multi-column index */ + width: 350px; + float: left; + padding-right: 10px; + position: relative; + + } +} #workspace.referentials.show { .summary p label { @@ -62,4 +88,4 @@ ul.logos { display: inline; margin: 0 3px; } -} \ No newline at end of file +} diff --git a/app/views/referentials/index.html.erb b/app/views/referentials/index.html.erb index 528c7b13b..a9d990b11 100644 --- a/app/views/referentials/index.html.erb +++ b/app/views/referentials/index.html.erb @@ -1,6 +1,8 @@ <%= title_tag Referential.model_name.human.pluralize %> +
<%= render :partial => "referential", :collection => @referentials %> +
<% content_for :sidebar do %>