Started inital migration to rails 3.2
This commit is contained in:
17
app/views/layouts/application.html.erb
Normal file → Executable file
17
app/views/layouts/application.html.erb
Normal file → Executable file
@@ -1,30 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
|
||||
<title><%= content_for?(:title) ? yield(:title) : "Horses" %></title>
|
||||
<%= stylesheet_link_tag "application", "forum-monster" %>
|
||||
<%= javascript_include_tag :defaults %>
|
||||
<%= csrf_meta_tag %>
|
||||
<%= yield(:head) %>
|
||||
</head>
|
||||
<body>
|
||||
<a href="https://github.com/gitt/forum_monster"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png" alt="Fork me on GitHub"></a>
|
||||
|
||||
<div class="container">
|
||||
<%= content_tag :div, "This is just a demo, the database is reset every 24 hours.", :class => "demo_notice" %>
|
||||
</div>
|
||||
|
||||
<div id="header">
|
||||
<div id="logo">
|
||||
<%= image_tag "rails.png" %>
|
||||
<h1>Forum Monster</h1>
|
||||
A Ruby on Rails Forum Gem
|
||||
<h1>Horses</h1>
|
||||
A forum about Horses
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="menu_wrapper">
|
||||
<ul>
|
||||
<li><%= link_to "Forum Index", root_path %></li>
|
||||
<% if user_signed_in? %>
|
||||
<li><%= link_to "User Control Panel", edit_user_registration_path %></li>
|
||||
<% if current_user.admin? %>
|
||||
<li><%= link_to "User Administration", users_path %></li>
|
||||
<% end %>
|
||||
<li><%= link_to "Logout", destroy_user_session_path, :method => :delete %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Login", new_user_session_path %></li>
|
||||
|
||||
Reference in New Issue
Block a user