initial checkin of full application
This commit is contained in:
12
app/views/layouts/_header.html.erb
Normal file
12
app/views/layouts/_header.html.erb
Normal file
@ -0,0 +1,12 @@
|
||||
<div id="options">
|
||||
<% if current_user %>
|
||||
<span class="action"> <%= link_to t(:signout), logout_path %></span>
|
||||
<% else %>
|
||||
<span class="action">
|
||||
<%= link_to t(:signup), new_user_path %>
|
||||
</span>
|
||||
<span class="action"> <%= link_to t(:signin), login_path %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div id="logo"><%= link_to t(:application_name), root_path %></div>
|
9
app/views/layouts/_menu.html.erb
Normal file
9
app/views/layouts/_menu.html.erb
Normal file
@ -0,0 +1,9 @@
|
||||
<% if @menu_type != 'nomenu' %>
|
||||
<div id="menu" class="round">
|
||||
<div<%= " class='selected'" if @menu == 'home' %>><%= link_to t(:home), root_path %></div>
|
||||
<% if current_user %>
|
||||
<div<%= " class='selected'" if @menu == 'account' %>><%= link_to t(:myaccount), account_path %></div>
|
||||
<div<%= " class='selected'" if @menu == 'channels' %>><%= link_to t(:channels), channels_path %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
17
app/views/layouts/application.html.erb
Normal file
17
app/views/layouts/application.html.erb
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= @title.nil? ? (@menu.nil? ? t(:application_name) : @menu.capitalize + ' - ' + t(:application_name)) : @title + ' - ' + t(:application_name) %></title>
|
||||
<%= stylesheet_link_tag :all %>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
|
||||
<%= csrf_meta_tag %>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<div id="header"><div class="fixedwidth"><%= render 'layouts/header' %></div></div>
|
||||
<div id="menuwrap" class="fixedwidth"><%= render 'layouts/menu' %></div>
|
||||
<div id="content" class="fixedwidth"><%= yield %></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user