show.html.erb 712 B

1234567891011121314151617181920212223
  1. <% @bots.each do |bot| %>
  2. <bot nick="<%= bot.botnick %>" owner="<%= bot.owner %>">
  3. <% @channels.each do |c| %>
  4. <% if c.bot_id == bot.id then %>
  5. <ch name="<%= c.name %>" />
  6. <% end %>
  7. <% end %>
  8. </bot>
  9. <% end %>
  10. <% @freqs.each do |f| %>
  11. <frequency name="<%= f.name %>" prefix="<%= f.prefix %>" helpmsg="<%= f.helpmsg %>" desc="<%= f.description %>" delay="<%= f.delay %>">
  12. <% @bans.each do |b| %>
  13. <% if b.frequency_id == f.id then %>
  14. <ban hostmask="<%= b.hostmask %>" reason="<%= b.reason %>" valid_from="<%= b.valid_from %>" valid_to="<%= b.valid_to %>" />
  15. <% end %>
  16. <% end %>
  17. </frequency>
  18. <% end %>