<%= link_to "", root_path, id: "logo" %>
    <% con = params[:controller] %>
  • <%= link_to "Home", home_statics_path, class: ("active" if con == "statics" && params[:action] == "home") %>
  • <%= link_to blogposts_path, class: ("active" if con == "blogposts" || con == "comments") do %> News <% if last_post = Blogpost.last %>
    <%= ago last_post.created_at %>
    <% end %> <% end %>
  • <%= link_to "Info", info_index_path, class: ("active" if con == "info") %>
  • <%= link_to "Forums", forums_path, class: ("active" if con == "forums" || con == "forumgroups" || con == "forumthreads" || con == "threadreplies") %>
  • <%= link_to "Users", users_path, class: ("active" if con == "users") %>
  • <%= link_to "Donate", donate_statics_path, class: ("active" if con == "statics" && params[:action] == "donate") %>
"> <% if current_user %> <%= link_to current_user.name, current_user %>
<%= link_to "Logout", logout_path, method: :delete %>
<%= link_to current_user.avatar(32), current_user %> <% else %> <%= link_to "Log in", login_path(return_path: request.env['PATH_INFO']), action: "new" %> | <%= link_to "Sign up", signup_path %> <% end %>