link widget for ntue updated

This commit is contained in:
Harry Bomrah 2013-09-17 18:06:20 +08:00 committed by saurabhbhatia
parent ce3842d3ad
commit afe6972dfa
1 changed files with 6 additions and 4 deletions

View File

@ -8,10 +8,12 @@
<div class="o-links-list">
<ul>
<% web_links.page(params[:page_main]).per(@page_num).each do |web_link| %>
<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>
<% 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>