app/views/layouts/mail_manager/application.html.erb in mail_manager-3.0.0 vs app/views/layouts/mail_manager/application.html.erb in mail_manager-3.2.0
- old
+ new
@@ -1,14 +1,42 @@
<!DOCTYPE html>
-<html>
+<html lang='en'>
<head>
- <title>MailManager</title>
+ <!-- iReach application.html.rb -->
+ <title><%= h(yield(:title) || "iReach Newsletter Manager") %></title>
<%= stylesheet_link_tag "mail_manager/application", :media => "all" %>
+ <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/le-frog/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" />
<%= javascript_include_tag "mail_manager/application" %>
<%= csrf_meta_tags %>
+ <%= content_for :head %>
</head>
<body>
-
-<%= yield %>
-
+<div id="top"><%= image_tag "mail_manager/iReach_logo.gif", width: "269", height:"85", style: "float: left;" %><%= image_tag "mail_manager/TopCenter.gif", width: "435", height: "85", style: "float: left;" %><%= image_tag "mail_manager/TopRight.gif", width: "62", height: "85", style: "float: right;" %> </div>
+<div style="background-color: #fff;">
+ <div id="menu">
+ <ul>
+ <li><span onClick="$('#mailings_submenu').toggle();return false">Mailings</span>
+ <ul id='mailings_submenu' <%= ' style="display:none"' unless request.path =~ %r|/mail_manager| %>>
+ <%= content_tag(:li, link_to('Contacts', mail_manager.contacts_path)) if can?(:manage, MailManager::Contact) %>
+ <%= content_tag(:li, link_to('Mailings', mail_manager.mailings_path)) if can?(:manage, MailManager::Mailing) %>
+ <%= content_tag(:li, link_to('Mailing Lists', mail_manager.mailing_lists_path)) if can?(:manage, MailManager::MailingList) %>
+ <%= content_tag(:li, link_to('Bounces', mail_manager.bounces_path)) if can?(:manage, MailManager::Bounce) %>
+ </ul>
+ </li>
+ </ul>
+ </div>
+<div id="page_content">
+ <% flash.each do |name, msg| -%>
+ <%= content_tag :div, msg, :id => "flash_#{name}" %>
+ <% end -%>
+
+ <% if show_title? -%>
+ <h1><%=h yield(:title) %></h1>
+ <% end -%>
+ <%= yield %>
+
+ <%= yield :page_navigation %>
+</div>
+</div>
+<%= image_tag "mail_manager/BottomRight.gif", width: "62", height: "85", style: "float: right;" %>
</body>
</html>