diff --git a/app/controllers/public/chat_controller.rb b/app/controllers/public/chat_controller.rb index 6187b6a..0536c42 100644 --- a/app/controllers/public/chat_controller.rb +++ b/app/controllers/public/chat_controller.rb @@ -28,15 +28,6 @@ class ChatController < PublicController end 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 - end - def update_presence_status if request.xhr? current_user.update_attributes({:chat_status_at => DateTime.now}.merge(params[:status] || {})) diff --git a/app/views/chat/auto_connect_busy.html.erb b/app/views/chat/auto_connect_busy.html.erb deleted file mode 100644 index 26feb96..0000000 --- a/app/views/chat/auto_connect_busy.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/app/views/chat/auto_connect_online.html.erb b/app/views/chat/auto_connect_online.html.erb deleted file mode 100644 index 16868be..0000000 --- a/app/views/chat/auto_connect_online.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/app/views/chat/index.html.erb b/app/views/chat/index.html.erb index b7c1769..aa70b00 100644 --- a/app/views/chat/index.html.erb +++ b/app/views/chat/index.html.erb @@ -16,6 +16,18 @@ var $update_presence_status_every = <%= User.expires_chat_status_every.minutes %>; + + <% presence = current_user.last_chat_status %> + +

<%= _("Online") % h(page_title) %> (0)

diff --git a/app/views/layouts/chat.html.erb b/app/views/layouts/chat.html.erb deleted file mode 100644 index fcae464..0000000 --- a/app/views/layouts/chat.html.erb +++ /dev/null @@ -1,64 +0,0 @@ - - - - <%= h page_title %> - - - - <%= noosfero_javascript %> - <%= javascript_include_tag 'prototype', 'jquery.scrollabletab', 'strophejs-1.0.1/strophe', 'jquery.emoticon', '../designs/icons/pidgin/emoticons.js', 'ba-linkify', 'jquery.ba-hashchange', 'jquery.sound', 'chat', :cache => 'cache/chat' %> - <%= noosfero_stylesheets %> - <%= stylesheet_link_tag icon_theme_stylesheet_path %> - <%= stylesheet_link_tag theme_stylesheet_path %> - <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %> - - - -
-

<%= _("%s - Friends online (%d)") % [h(page_title), 0] %>

-
-
- -
-
<%= user_status_menu('icon-menu-offline', _('Offline')) %>
- -
-
    - -
-
-
-
-
    - -
-
- -
- <%= yield %> - - diff --git a/public/stylesheets/chat.css b/public/stylesheets/chat.css index dedbc1e..dbdadd3 100644 --- a/public/stylesheets/chat.css +++ b/public/stylesheets/chat.css @@ -1,5 +1,6 @@ #chat { width: 250px; + display: none; } #buddy-list { -- libgit2 0.21.2