Update better redirection message.

This commit is contained in:
Yann Esposito (Yogsototh) 2012-03-30 18:15:43 +02:00
parent 81a9390441
commit d8185b7be8

View file

@ -6,6 +6,7 @@ last_article = @items.select do |a|
a.reps[0].path =~ /\/#{language}\// && a[:kind] == 'article'
end.sort { |x,y| y[:created_at] <=> x[:created_at] }[0]
targetUrl = last_article.path
targetTitle = last_article[:title]
%>
<html>
<head>
@ -15,6 +16,6 @@ targetUrl = last_article.path
</head>
<body>
<p>You should be redirected to</p>
<div><a href="<%= targetUrl %>"><%= targetUrl %></a></div>
<div><a href="<%= targetUrl %>"><%= targetTitle %></a></div>
</body>
</HTML>