Commit 957bdd638bb68a20c6202c76247ecc41a499ce02

Authored by Leandro Santos
1 parent 2d0d234d

fix lobby notes loading

plugins/notification/controllers/notification_plugin_profile_controller.rb
1 1 class NotificationPluginProfileController < ProfileController
2   - append_view_path File.join(File.dirname(__FILE__) + '/../../views')
  2 +# append_view_path File.join(File.dirname(__FILE__) + '/../../views')
3 3  
4 4 #FIXME make this test
5   - needs_profile
  5 +# needs_profile
6 6  
7 7 protect 'see_loby_notes', :profile
8 8  
... ...
plugins/notification/views/notification_plugin_admin/index.html.erb
1 1 <h1><%= _('Notification settings')%></h1>
2 2  
3   -<% form_for(:settings) do |f| %>
4   -
5   - <div id="notification-config-fields">
6   - </div>
7   - <%= labelled_form_field _('Noitification Categories'), f.text_field(:categories) %>
8   - <%= button_to_remote_without_text(:add, _('Add New Category'),
9   - :update => 'notification-config-fields',
10   - :loading => '$("notification-config-fields").addClassName("loading")',
11   - :complete => '$("notification-config-fields").removeClassName("loading")',
12   - :url => { :action => 'create'})
13   - %>
14   -
15   -
16   - <% button_bar do %>
17   - <%= submit_button(:save, _('Save'), :cancel => {:action => 'create'}) %>
18   - <% end %>
  3 +<ul>
  4 +<% NotificationPlugin::CategoryNotification.all.map do |category| %>
  5 + <li><%= category.name %></li>
19 6 <% end %>
  7 +</ul>
  8 +
  9 + <% button_bar do %>
  10 + <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %>
  11 + <% end %>
20 12  
... ...