titres actualités
This commit is contained in:
parent
a49b163724
commit
a89eda7779
@ -15,7 +15,7 @@ class Public::ArticlesController < ApplicationController
|
|||||||
@articles = @articles.page(params[:page]).per(12)
|
@articles = @articles.page(params[:page]).per(12)
|
||||||
|
|
||||||
|
|
||||||
@title = "Articles du blog"
|
@index_title = "Actualités du Pic Vert"
|
||||||
end
|
end
|
||||||
|
|
||||||
def feed
|
def feed
|
||||||
@ -62,7 +62,7 @@ class Public::ArticlesController < ApplicationController
|
|||||||
@articles = @category.articles.before(Date.today).recents
|
@articles = @category.articles.before(Date.today).recents
|
||||||
@articles = @articles.page(params[:page]).per(3)
|
@articles = @articles.page(params[:page]).per(3)
|
||||||
@title = "Articles du blog"
|
@title = "Articles du blog"
|
||||||
@index_title = 'Articles de la catégorie "'+@category.name+'"'
|
@index_title = 'Actualités de la catégorie "'+@category.name+'"'
|
||||||
render :action => :index
|
render :action => :index
|
||||||
|
|
||||||
end
|
end
|
||||||
@ -73,9 +73,9 @@ class Public::ArticlesController < ApplicationController
|
|||||||
@articles = @articles.page(params[:page]).per(12)
|
@articles = @articles.page(params[:page]).per(12)
|
||||||
@title = "Articles du blog"
|
@title = "Articles du blog"
|
||||||
if [4,8].include?(@month.month)
|
if [4,8].include?(@month.month)
|
||||||
@index_title = 'Articles du mois d\''+l(@month, :format => "%B %Y")+''
|
@index_title = 'Actualités du Pic Vert du mois d\''+l(@month, :format => "%B %Y")+''
|
||||||
else
|
else
|
||||||
@index_title = 'Articles du mois de '+l(@month, :format => "%B %Y")+''
|
@index_title = 'Actualités du Pic Vert du mois de '+l(@month, :format => "%B %Y")+''
|
||||||
end
|
end
|
||||||
|
|
||||||
render :action => :index
|
render :action => :index
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.archives.widget
|
.archives.widget
|
||||||
%h3 Archives du blog
|
.main_section_title Archives des actualités
|
||||||
|
|
||||||
-if Article.before(Date.today).recents.size > 0
|
-if Article.before(Date.today).recents.size > 0
|
||||||
%ul
|
%ul
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
%h1=@index_title
|
||||||
=render :partial => "index"
|
=render :partial => "index"
|
||||||
|
|
||||||
-content_for :sidebar do
|
-content_for :sidebar do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user