Fix module web_resource front_end display skip blank title

This commit is contained in:
Manson Wang 2013-09-25 19:17:58 +08:00
parent 1b5f6a79c7
commit 926102bf72
1 changed files with 6 additions and 4 deletions

View File

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