2011-05-02 10:09:43 +00:00
|
|
|
-----
|
|
|
|
-----
|
|
|
|
<%
|
|
|
|
language=@item_rep.path.sub(%r{#{@config[:webprefix]}/},'').sub(/\/.*$/,'')
|
|
|
|
number_of_char_for_resume=800
|
2011-05-02 14:23:59 +00:00
|
|
|
larts = articles.select { |a| a.reps[0].path =~ /\/#{language}\// }
|
|
|
|
if larts.length>0
|
2011-05-02 10:09:43 +00:00
|
|
|
%><%=
|
2011-05-02 14:23:59 +00:00
|
|
|
atom_feed( {
|
|
|
|
:articles => larts,
|
|
|
|
:content_proc =>lambda { |a|
|
|
|
|
repair_html(
|
|
|
|
excerptize(
|
|
|
|
a.compiled_content(:snapshot => :pre),
|
|
|
|
{:length => number_of_char_for_resume} ))
|
|
|
|
},
|
|
|
|
:limit => 40
|
|
|
|
})
|
|
|
|
%><%
|
|
|
|
end
|
2011-05-02 10:09:43 +00:00
|
|
|
%>
|