Sha256: 1100e8e65b81c175c439291cd8f3677bd1fbe3b2b5a75f87e219e9a425bd234f

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

  <title><%= content_for?(:title) ? yield(:title) : "小神龙后台管理" %></title>
  <%= javascript_include_tag "eric_weixin/cms/base" %>
  <%= stylesheet_link_tag "eric_weixin/cms/base" %>
  <%= javascript_include_tag "vendor/modernizr" %>
  <%= csrf_meta_tags %>
</head>


<body>

<script>
    <% if @is_popup.blank? || @is_popup == true %>
    <% notice = get_notice_str %>
    <% unless notice.blank? %>
    $(document).ready(
            function () {
                $('#NoticeModal').foundation('reveal', 'open');
            }
    );
    <% end %>
    <% end %>
</script>


<div id="NoticeModal" class="reveal-modal" data-reveal>
  <div class="row">
    <%= notice %>
  </div>
  <a class="close-reveal-modal">&#215;</a>
</div>
<section role="main">
  <div class="row">
    <div class="small-11 columns">
      <br/>
      <div class="row right">
        <div class="small-12 columns">
          <%= '你好!    ' + begin current_employee.real_name rescue '' end%>
        </div>
      </div>
      <div class="row">
        <div class="small-12 columns">
          <% flash.each do |key, value| %>
              <div data-alert class="alert-box <%= key %> radius" id="alert-box-div">
                <%= value %>
                <a href="javascript:alert_box_close()" class="close" id="alert-box-div-close">&times;</a>
              </div>
          <% end %>
        </div>
      </div>
      <%= yield %>
    </div>
  </div>
</section>
</body>
</html>
<script language="javascript">
    function alert_box_close(){
        $("#alert-box-div").remove();
    }
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eric_weixin-0.1.1 app/views/layouts/eric_weixin/cms/base.html.erb
eric_weixin-0.1.0 app/views/layouts/eric_weixin/cms/base.html.erb