Archived
first release
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<div id="head">
|
||||
<%= link_to(root_path) do %>
|
||||
<div id="logo"></div>
|
||||
<% end %>
|
||||
<div id="userinfo">
|
||||
<% if !current_user.nil? %>
|
||||
<%= link_to image_tag(Tools.avatar_url(current_user.id, 32), :class => "avatar"), current_user %>
|
||||
<%= link_to image_tag("logout.png"), logout_path %>
|
||||
<% else %>
|
||||
<%= link_to "Log in", login_path, :action => "new" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,14 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Site</title>
|
||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<title>Redstoner</title>
|
||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= favicon_link_tag "favicon.ico" %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<%= render "/layouts/head" %>
|
||||
<%= "<div id='alert'>#{alert}</div>".html_safe if alert %>
|
||||
<%= "<div id='notice'>#{notice}</div>".html_safe if notice %>
|
||||
<div id="main-content">
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user