Project

General

Profile

« Previous | Next » 

Revision 18118f5a

Added by Ohad Levy almost 12 years ago

  • ID 18118f5abf0372dd9606356dd93c465115b9ecdc

remove unneded hidden links in the more tab

View differences:

app/helpers/home_helper.rb
#prevent adjacent dividers
last_item = nil
choices = choices.map! do |item|
choices = choices.map do |item|
if item == [:divider]
if last_item
last_item = nil
app/views/home/_settings.html.erb
<% if item == [:divider] %>
<%= content_tag(:li, "", :class=>"divider") %>
<% else %>
<%= content_tag(:li,link_to( link_to(item[0], {:controller => item[1], :action => :index}))) %>
<%= content_tag(:li, link_to(item[0], {:controller => item[1], :action => :index})) %>
<% end -%>
<% end -%>
</ul>

Also available in: Unified diff