<% # encoding: utf-8 %>

<div class="o-links">
	<div class="o-links-content">
		<ul>

			<% @web_link_datas.each do |wlcg| %>
			
			<li>
				<h3 class="o-links-category"><%= wlcg["title"] rescue nil%></h3>
				<div class="o-links-list">
					<ul>

						<% wlcg["web_links"].each do |post| %>
						<% if !post["title"].blank? %>
						<li>
							<%= link_to post["title"], post["url"], {:target => '_blank', :title => post["title"], :class=>"o-links-title"} %>
							<% if !post["is_hot"].blank? %><span class="o-links-hot"><%= t('hot')%></span><% end %>
							<div class="o-links-description"><%= post["context"] %></div>
						</li>
						<% end %>
						<% end %>

					</ul>
				</div>
			</li>

			<% end %>

		</ul>
	</div>
</div>	

<%#= paginate @web_links, :param_name => :page_main, :params => {:inner => false}%>

<%= stylesheet_link_tag "web_resource/links" %>
