Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c750a4
commit 0f8a22f
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
lib/generators/web_app_theme/theme/templates/layout_admin.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title><%= options.app_name %></title> | ||
<%%= stylesheet_link_tag "web-app-theme/base", "web-app-theme/themes/<%= options.theme %>/style", "web-app-theme/override", :cache => true %> | ||
<%%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
<div id="header"> | ||
<h1><a href="/"><%= options.app_name %></a></h1> | ||
<div id="user-navigation"> | ||
<ul class="wat-cf"> | ||
<li><a href="#"><%%= t("web-app-theme.profile", :default => "Profile") %></a></li> | ||
<li><a href="#"><%%= t("web-app-theme.settings", :default => "Settings") %></a></li> | ||
<li><a href="/logout" class="logout"><%%= t("web-app-theme.logout", :default => "Logout") %></a></li> | ||
</ul> | ||
</div> | ||
<div id="main-navigation"> | ||
<ul class="wat-cf"></ul> | ||
</div> | ||
</div> | ||
<div id="wrapper" class="wat-cf"> | ||
<div class="flash"> | ||
<%% flash.each do |type, message| -%> | ||
<div class="message <%%= type %>"> | ||
<p><%%= message %></p> | ||
</div> | ||
<%% end -%> | ||
</div> | ||
<div id="main"> | ||
<%%= yield %> | ||
<div id="footer"> | ||
<div class="block"> | ||
<p>Copyright © <%%= Time.now.year %> <%= options.app_name %>.</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="sidebar"> | ||
<%%= yield :sidebar %> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
15 changes: 15 additions & 0 deletions
15
lib/generators/web_app_theme/theme/templates/layout_sign.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title><%= options.app_name %></title> | ||
<%%= stylesheet_link_tag "web-app-theme/base", "web-app-theme/themes/<%= options.theme %>/style", "web-app-theme/override", :cache => true %> | ||
<%%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
<div id="box"> | ||
<%%= yield %> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |