<% if account.nil? and parent.nil? %>
  • undefined
  • <% else %>
  • <% if account.nil? %> ... <% else %> <%= link_to content_tag(:span,account.popis), account_path(account) %> <% end %> <% accounts = if account.nil? parent.immediate_subaccounts else if account.owner? Account.all_owners else account.parents.first.immediate_subaccounts rescue nil end end accounts = accounts - [account] width = accounts.max{ |a| a.size} accounts.sort{|a1,a2| a1.seq<=>a2.seq}.each do |acct| %>
  • <% end %>