Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Se agregó el archivo de posts por fecha.
- Loading branch information
1 parent
96d5c3e
commit ccb6829
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- if params[:day].present? | ||
- title_part = "Archivo del #{params[:day]}/#{params[:month]}/#{params[:year]}" | ||
- elsif params[:month].present? | ||
- title_part = "Archivo del #{params[:month]}/#{params[:year]}" | ||
- else | ||
- title_part = "Archivo del año #{params[:year]}" | ||
|
||
- if params[:page].nil? | ||
- page_title(title_part) | ||
- else | ||
- page_title("#{title_part} <small>Página #{params[:page]}</small>") | ||
|
||
%h2.fancy-title!= html_page_title | ||
|
||
.posts | ||
= render @posts | ||
|
||
= paginate @posts, :window => 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters