From 957bdd638bb68a20c6202c76247ecc41a499ce02 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 20 Aug 2014 02:13:31 -0300 Subject: [PATCH] fix lobby notes loading --- plugins/notification/controllers/notification_plugin_profile_controller.rb | 4 ++-- plugins/notification/views/notification_plugin_admin/index.html.erb | 24 ++++++++---------------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/plugins/notification/controllers/notification_plugin_profile_controller.rb b/plugins/notification/controllers/notification_plugin_profile_controller.rb index ca68bef..d43ab0e 100644 --- a/plugins/notification/controllers/notification_plugin_profile_controller.rb +++ b/plugins/notification/controllers/notification_plugin_profile_controller.rb @@ -1,8 +1,8 @@ class NotificationPluginProfileController < ProfileController - append_view_path File.join(File.dirname(__FILE__) + '/../../views') +# append_view_path File.join(File.dirname(__FILE__) + '/../../views') #FIXME make this test - needs_profile +# needs_profile protect 'see_loby_notes', :profile diff --git a/plugins/notification/views/notification_plugin_admin/index.html.erb b/plugins/notification/views/notification_plugin_admin/index.html.erb index 49124dd..6d2d6b4 100644 --- a/plugins/notification/views/notification_plugin_admin/index.html.erb +++ b/plugins/notification/views/notification_plugin_admin/index.html.erb @@ -1,20 +1,12 @@

<%= _('Notification settings')%>

-<% form_for(:settings) do |f| %> - -
-
- <%= labelled_form_field _('Noitification Categories'), f.text_field(:categories) %> - <%= button_to_remote_without_text(:add, _('Add New Category'), - :update => 'notification-config-fields', - :loading => '$("notification-config-fields").addClassName("loading")', - :complete => '$("notification-config-fields").removeClassName("loading")', - :url => { :action => 'create'}) - %> - - - <% button_bar do %> - <%= submit_button(:save, _('Save'), :cancel => {:action => 'create'}) %> - <% end %> + + + <% button_bar do %> + <%= button :back, _('Back to admin panel'), :controller => 'admin_panel', :action => 'index' %> + <% end %> -- libgit2 0.21.2