56 lines
1.7 KiB
Plaintext

.home_header
%p
Professionnels ou particuliers, déposez vos annonces gratuitement partout dans le monde.
Il n'y a pas de publicité et seules certaines
options de mise en valeur sont payantes.
.add_annonce= link_to raw("<span style='font-size:22px;'>")+ic(:"pencil-square-o")+raw("</span>&nbsp;&nbsp;<span style='font-size:15px;display:inline-block;position:relative;top:-3px;'>")+t("create-ad")+raw("</span>"), new_public_annonce_path, :class => "btn btn-primary"
-@no_paginate = true
-@uniform = true
.center.search_results.padding
%h3 Sélection des dernières annonces
=render Annonce.valid_to_show.with_img.where(:annonce_cat_id => 17).where(:frontpage => true).order("list_head DESC, created_at DESC").limit(2).all
=render Annonce.valid_to_show.with_img.where(:annonce_cat_id => 5).where(:frontpage => true).order("list_head DESC, created_at DESC").limit(2).all
=render Annonce.valid_to_show.with_img.where(:frontpage => true).where("annonce_cat_id NOT IN (?)", [17,5,61]).order("list_head DESC, created_at DESC").limit(2).all
.clear
.first_cats
.center
%h3 Catégories à la une
=link_to search_public_annonces_path(:annonce_cat_id => 5) do
.icon=ic(:car)
Autos
=link_to search_public_annonces_path(:annonce_cat_id => 6) do
.icon=ic(:motorcycle)
Motos, scooter, quads
=link_to search_public_annonces_path(:annonce_cat_id => 17) do
.icon=ic(:home)
Habitations
=link_to search_public_annonces_path(:annonce_cat_id => 28) do
.icon=ic(:bed)
Locations saisonnières
.center{:style => "text-align:center;padding:2em;"}
=link_to search_public_annonces_path() do
Voir toutes les annonces >