diff options
| author | Marc Florisson | 2012-09-03 17:12:24 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-09-03 17:12:24 +0200 |
| commit | d5c4d7d2bd9f258379bbbed40459a7067f2899b1 (patch) | |
| tree | 042a2608333f591c5a660952dcf98e1fb6d30298 | |
| parent | 38651259586fe2f3f626a1b5ec6a4e6588f048af (diff) | |
| download | chouette-core-d5c4d7d2bd9f258379bbbed40459a7067f2899b1.tar.bz2 | |
make referentials#index looks like lines#index
| -rw-r--r-- | app/assets/stylesheets/referentials.css.scss | 28 | ||||
| -rw-r--r-- | app/views/referentials/index.html.erb | 2 |
2 files changed, 29 insertions, 1 deletions
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 %> +<div class="referentials"> <%= render :partial => "referential", :collection => @referentials %> +</div> <% content_for :sidebar do %> <ul class="actions"> |
