44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
<% # encoding: utf-8 %>
|
|
<% if @title %>
|
|
<h2 class="h2"><%= @title %></h2>
|
|
<% end %>
|
|
|
|
<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>
|
|
|
|
<div class="pull_right">
|
|
<% if !params[:category_id].blank? %>
|
|
<%= link_to t(:more_plus), panel_web_resource_front_end_web_links_path(:category_id => @part.category) %>
|
|
<% else %>
|
|
<%= link_to t(:more_plus), panel_web_resource_front_end_web_links_path %>
|
|
<% end %>
|
|
</div>
|