ensl.org/app/views/layouts/forums.html.erb
2014-04-05 02:07:59 +01:00

50 lines
1.7 KiB
Text

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fi" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="icon" type="image/png" href="/favicon.png" />
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
<title>ENSL</title>
</head>
<body>
<div id="indexContainer">
<div id="indexMain">
<div id="logo"></div>
<%= render :partial => "layouts/header" %>
<div id="indexForums">
<% if flash[:notice] %>
<div class="flashMsg">
<%= flash[:notice] %>
</div>
<% end %>
<% if flash[:error] %>
<div class="flashMsg flashError">
<%= flash[:error] %>
</div>
<% end %>
<%= yield %>
<div style="clear:both;"></div>
</div>
</div>
<div id="indexFooter">
<% if cuser and (g = cuser.gathers.active.ordered.first) %>
<%= link_to "You're in THIS gather", g %>
<% elsif (Gather::FULL - Gather.last.gatherers.count) == 12 %>
Be first to join the <%= link_to "Gather", Gather.last %>!
<% else %>
<%= link_to "Gather", Gather.last %> running, <%= Gather::FULL - Gather.last.gatherers.count %> more needed.
<% end %>
</div>
</div>
</body>
</html>