widget link fixed on homepage

This commit is contained in:
Harry Bomrah 2013-09-17 17:26:59 +08:00 committed by Manson Wang
parent eb8495bcbd
commit 1b5f6a79c7
2 changed files with 7 additions and 5 deletions

View File

@ -8,11 +8,13 @@
<div class="o-links-list">
<ul>
<% web_links.page(params[:page_main]).per(@page_num).each do |web_link| %>
<% if !web_link.title.empty? %>
<li>
<%= link_to web_link.title, web_link.url, {:target => '_blank', :title => web_link.title, :class=>"o-links-title"} %>
<div class="o-links-description"><%= web_link.context %></div>
</li>
<% end %>
<% end %>
</ul>
</div>
</li>