20 lines
858 B
HTML
20 lines
858 B
HTML
-----
|
|
-----
|
|
<% language, languages, blog, article = setItemConf %>
|
|
<%
|
|
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
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title>Redirect to the right page.</title>
|
|
<meta http-equiv="refresh" content="0;url=<%= targetUrl %>">
|
|
<style> body { font: sans-serif; color: #333333; font-size: 18px; position: absolute; text-align: center; font-weight: bold; top: 50%; left: 50%; width: 460px; height: 100px; margin-left: -230px; margin-top: -50px; line-height: 2em; } a,a:hover,a:visited,a:active { color: #C53; } </style>
|
|
</head>
|
|
<body>
|
|
<p>You should be redirected to</p>
|
|
<div><a href="<%= targetUrl %>"><%= targetUrl %></a></div>
|
|
</body>
|
|
</HTML>
|