More article and with better presentation
This commit is contained in:
parent
ea605bc442
commit
409a6d82f5
3 changed files with 27 additions and 9 deletions
|
@ -5,7 +5,7 @@ menupriority: 2
|
||||||
noSubMenu: true
|
noSubMenu: true
|
||||||
-----
|
-----
|
||||||
<%
|
<%
|
||||||
number_of_articles=10
|
number_of_articles=20
|
||||||
number_of_char_for_resume=800
|
number_of_char_for_resume=800
|
||||||
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
||||||
last_articles = articles.select do |a|
|
last_articles = articles.select do |a|
|
||||||
|
@ -25,9 +25,15 @@ newcorps
|
||||||
|
|
||||||
<ul style="list-style-type: none; margin: 0;">
|
<ul style="list-style-type: none; margin: 0;">
|
||||||
<% last_articles.each do |a| %>
|
<% last_articles.each do |a| %>
|
||||||
<li style="line-height: 3em; margin: 0;">
|
<li style="line-height: 1em; margin: 0;">
|
||||||
<%= calendar_for(a[:created_at], language) %>
|
<%= calendar_for(a[:created_at], language) %>
|
||||||
<%= link_to(a[:title], a) %>
|
<%
|
||||||
|
linktext=%{<span class="sc">#{a[:title]}</span>}
|
||||||
|
if a[:subtitle]
|
||||||
|
linktext<<=%{ <br> <span class="small" style="margin-left: 5em"><span class="small"><em>#{a[:subtitle]}</em></span></span>}
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<%= link_to(linktext, a) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,7 +5,7 @@ menupriority: 2
|
||||||
noSubMenu: true
|
noSubMenu: true
|
||||||
-----
|
-----
|
||||||
<%
|
<%
|
||||||
number_of_articles=10
|
number_of_articles=20
|
||||||
number_of_char_for_resume=800
|
number_of_char_for_resume=800
|
||||||
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
||||||
last_articles = articles.select do |a|
|
last_articles = articles.select do |a|
|
||||||
|
@ -25,9 +25,15 @@ newcorps
|
||||||
|
|
||||||
<ul style="list-style-type: none; margin: 0;">
|
<ul style="list-style-type: none; margin: 0;">
|
||||||
<% last_articles.each do |a| %>
|
<% last_articles.each do |a| %>
|
||||||
<li style="line-height: 3em; margin: 0;">
|
<li style="line-height: 1em; margin: 0;">
|
||||||
<%= calendar_for(a[:created_at], language) %>
|
<%= calendar_for(a[:created_at], language) %>
|
||||||
<%= link_to(a[:title], a) %>
|
<%
|
||||||
|
linktext=%{<span class="sc">#{a[:title]}</span>}
|
||||||
|
if a[:subtitle]
|
||||||
|
linktext<<=%{ <br> <span class="small" style="margin-left: 5em"><span class="small"><em>#{a[:subtitle]}</em></span></span>}
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<%= link_to(linktext, a) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,7 +5,7 @@ menupriority: 2
|
||||||
noSubMenu: true
|
noSubMenu: true
|
||||||
-----
|
-----
|
||||||
<%
|
<%
|
||||||
number_of_articles=10
|
number_of_articles=20
|
||||||
number_of_char_for_resume=800
|
number_of_char_for_resume=800
|
||||||
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
||||||
last_articles = articles.select do |a|
|
last_articles = articles.select do |a|
|
||||||
|
@ -29,9 +29,15 @@ en: ## Last <%= number_of_articles %> articles
|
||||||
|
|
||||||
<ul style="list-style-type: none; margin: 0;">
|
<ul style="list-style-type: none; margin: 0;">
|
||||||
<% last_articles.each do |a| %>
|
<% last_articles.each do |a| %>
|
||||||
<li style="line-height: 3em; margin: 0;">
|
<li style="line-height: 1em; margin: 0;">
|
||||||
<%= calendar_for(a[:created_at], language) %>
|
<%= calendar_for(a[:created_at], language) %>
|
||||||
<%= link_to(a[:title], a) %>
|
<%
|
||||||
|
linktext=%{<span class="sc">#{a[:title]}</span>}
|
||||||
|
if a[:subtitle]
|
||||||
|
linktext<<=%{ <br> <span class="small" style="margin-left: 5em"><span class="small"><em>#{a[:subtitle]}</em></span></span>}
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<%= link_to(linktext, a) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue