_header.html.erb 646 Bytes
<div class="header">
	<div class="wrapper">
		<div class="logo">
			<a href="/" title="山东诺正检测有限公司">
				<img src="/images/logo.png" alt="诺正Logo">
			</a>
			<span style="font-size: 25px;">山东诺正检测有限公司</span>
		</div>
		<div class="nav">
			<ul class="menu">
				<li>
					<%= link_to '诺正首页', root_path, class: "#{'active' if request.path == '/'}" %>
				</li>
				<% Post::CATE.each do |key, val| %>
					<li>
						<%= link_to val[:name], {controller: :home, action: :show, chan: key}, class: "#{'active' if params[:chan].eql?(key)}" %>
					</li>
				<% end %>
			</ul>
		</div>
	</div>
</div>