%{message}
+diff --git a/app/controllers/public/chat_controller.rb b/app/controllers/public/chat_controller.rb index 46a82fc..6187b6a 100644 --- a/app/controllers/public/chat_controller.rb +++ b/app/controllers/public/chat_controller.rb @@ -29,12 +29,12 @@ class ChatController < PublicController end def index - presence = current_user.last_chat_status - if presence.blank? or presence == 'chat' - render :action => 'auto_connect_online' - else - render :action => 'auto_connect_busy' - end + #presence = current_user.last_chat_status + #if presence.blank? or presence == 'chat' + # render :action => 'auto_connect_online' + #else + # render :action => 'auto_connect_busy' + #end end def update_presence_status diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index e2db756..364df0a 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -28,6 +28,7 @@ module LayoutHelper 'lightbox', 'colorbox', 'inputosaurus', + 'chat', pngfix_stylesheet_path, ] + tokeninput_stylesheets plugins_stylesheets = @plugins.select(&:stylesheet?).map { |plugin| plugin.class.public_path('style.css') } diff --git a/app/views/chat/index.html.erb b/app/views/chat/index.html.erb new file mode 100644 index 0000000..b7c1769 --- /dev/null +++ b/app/views/chat/index.html.erb @@ -0,0 +1,70 @@ + <%= javascript_include_tag 'strophejs-1.0.1/strophe', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', 'perfect-scrollbar.min.js', 'perfect-scrollbar.with-mousewheel.min.js', :cache => 'cache/chat' %> + <%= stylesheet_link_tag 'perfect-scrollbar.min.css' %> + + <% extend ChatHelper %> + + + +