chatter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +4 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +36 -0
  5. data/Rakefile +29 -0
  6. data/chatter.gemspec +57 -0
  7. data/config/routes.rb +18 -0
  8. data/lib/chatter/engine.rb +11 -0
  9. data/lib/chatter/version.rb +4 -0
  10. data/lib/chatter.rb +19 -0
  11. data/lib/rails/generators/chatter/install_generator.rb +64 -0
  12. data/lib/rails/generators/chatter/templates/add_name_to_users.rb +8 -0
  13. data/lib/rails/generators/chatter/templates/add_status_to_users.rb +7 -0
  14. data/lib/rails/generators/chatter/templates/add_username_to_users.rb +6 -0
  15. data/lib/rails/generators/chatter/templates/builder.js +136 -0
  16. data/lib/rails/generators/chatter/templates/chat.rb +24 -0
  17. data/lib/rails/generators/chatter/templates/chats.css.less +151 -0
  18. data/lib/rails/generators/chatter/templates/chats.js +504 -0
  19. data/lib/rails/generators/chatter/templates/chats_controller.rb +125 -0
  20. data/lib/rails/generators/chatter/templates/controls.js +963 -0
  21. data/lib/rails/generators/chatter/templates/create_chats.rb +16 -0
  22. data/lib/rails/generators/chatter/templates/css_browser_selector.js +8 -0
  23. data/lib/rails/generators/chatter/templates/dragdrop.js +973 -0
  24. data/lib/rails/generators/chatter/templates/effects.js +1128 -0
  25. data/lib/rails/generators/chatter/templates/jquery.js +19 -0
  26. data/lib/rails/generators/chatter/templates/ol_chatter_image.png +0 -0
  27. data/lib/rails/generators/chatter/templates/ol_chatter_status.png +0 -0
  28. data/lib/rails/generators/chatter/templates/samplea.html.erb +24 -0
  29. data/lib/rails/generators/chatter/templates/screen.css.less +12 -0
  30. metadata +124 -0
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/log/*.log
6
+ test/dummy/tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ # CURRENT FILE :: Gemfile
2
+ source "http://rubygems.org"
3
+ # Specify any dependencies in the gemspec
4
+ gemspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,36 @@
1
+ = TeamPage
2
+
3
+ This project rocks and uses MIT-LICENSE.
4
+
5
+ A simple Rails 3 engine gem that adds a chat functionality to any Rails 3 application.
6
+ Send chat messages to online users within your application like any gmail/facebook chat.
7
+ It assumes that you are using devise gem and user model as devise model for login.
8
+
9
+ Steps:
10
+
11
+ 1) Use rails g devise:install
12
+
13
+ 2) Use rake db:create
14
+
15
+ 3) Use rails g devise user
16
+
17
+ 4) Use rails g chatter:install
18
+
19
+ 5) Use rake db:migrate
20
+
21
+ 6) Add following to your application controller:
22
+ def after_sign_out_path_for(resource)
23
+ @user = User.find(:first, :conditions => ["email= '#{current_user.email}'"])
24
+ @user.update_attribute(:status, "offline")
25
+ return root_url
26
+ end
27
+
28
+ 7) Edit devise.rb file according to your need.
29
+
30
+ 8) Run rails s
31
+
32
+ 9) Login with one user and the other
33
+
34
+ 10) Hit url: http://localhost:3000/chats/samplea
35
+
36
+ 10)Start chat
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ # encoding: UTF-8
2
+ require 'rubygems'
3
+ begin
4
+ require 'bundler/setup'
5
+ rescue LoadError
6
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
+ end
8
+
9
+ require 'rake'
10
+ require 'rake/rdoctask'
11
+
12
+ require 'rake/testtask'
13
+
14
+ Rake::TestTask.new(:test) do |t|
15
+ t.libs << 'lib'
16
+ t.libs << 'test'
17
+ t.pattern = 'test/**/*_test.rb'
18
+ t.verbose = false
19
+ end
20
+
21
+ task :default => :test
22
+
23
+ Rake::RDocTask.new(:rdoc) do |rdoc|
24
+ rdoc.rdoc_dir = 'rdoc'
25
+ rdoc.title = 'Chatter'
26
+ rdoc.options << '--line-numbers' << '--inline-source'
27
+ rdoc.rdoc_files.include('README.rdoc')
28
+ rdoc.rdoc_files.include('lib/**/*.rb')
29
+ end
data/chatter.gemspec ADDED
@@ -0,0 +1,57 @@
1
+ # CURRENT FILE :: team_page.gemspec
2
+ require File.expand_path("../lib/chatter/version", __FILE__)
3
+
4
+ # Provide a simple gemspec so that you can easily use your
5
+ # Enginex project in your Rails apps through Git.
6
+ Gem::Specification.new do |s|
7
+ s.name = "chatter"
8
+ s.version = Chatter::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = [ "Saurabh Jain" ]
11
+ s.email = [ "123saurabhjain@gmail.com" ]
12
+ s.homepage = "https://github.com/saurabhjainfaber/ruby-jquery-chat"
13
+ s.description = "Adds a chat functionality to any Rails 3 application. Send chat messages to online users within your application like any gmail/facebook chat. It assumes that you are using devise gem and user model as devise model for login."
14
+ s.summary = "chatter-#{s.version}"
15
+
16
+ s.rubyforge_project = "chatter"
17
+ s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
18
+
19
+ s.add_dependency "activesupport" , ">= 3.0.7"
20
+ s.add_dependency "rails" , ">= 3.0.7"
21
+ s.add_dependency "devise" , '2.1'
22
+
23
+ s.files = [
24
+ ".gitignore",
25
+ "Gemfile",
26
+ "MIT-LICENSE",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "chatter.gemspec",
30
+ "config/routes.rb",
31
+ "lib/chatter.rb",
32
+ "lib/chatter/engine.rb",
33
+ "lib/chatter/version.rb",
34
+ "lib/rails/generators/chatter/templates/chat.rb",
35
+ "lib/rails/generators/chatter/templates/ol_chatter_image.png",
36
+ "lib/rails/generators/chatter/templates/ol_chatter_status.png",
37
+ "lib/rails/generators/chatter/templates/samplea.html.erb",
38
+ "lib/rails/generators/chatter/templates/chats_controller.rb",
39
+ "lib/rails/generators/chatter/templates/create_chats.rb",
40
+ "lib/rails/generators/chatter/templates/add_status_to_users.rb",
41
+ "lib/rails/generators/chatter/templates/add_username_to_users.rb",
42
+ "lib/rails/generators/chatter/templates/add_name_to_users.rb",
43
+ "lib/rails/generators/chatter/templates/chats.css.less",
44
+ "lib/rails/generators/chatter/templates/screen.css.less",
45
+ "lib/rails/generators/chatter/templates/jquery.js",
46
+ "lib/rails/generators/chatter/templates/chats.js",
47
+ "lib/rails/generators/chatter/templates/builder.js",
48
+ "lib/rails/generators/chatter/templates/controls.js",
49
+ "lib/rails/generators/chatter/templates/css_browser_selector.js",
50
+ "lib/rails/generators/chatter/templates/dragdrop.js",
51
+ "lib/rails/generators/chatter/templates/effects.js",
52
+
53
+ "lib/rails/generators/chatter/install_generator.rb"
54
+ ]
55
+
56
+ s.require_path = 'lib'
57
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,18 @@
1
+ # CURRENT FILE :: config/routes.rb
2
+ Rails.application.routes.draw do
3
+
4
+ # chat system
5
+ resources :chats do
6
+ collection do
7
+ get :samplea
8
+ get :start_chat_session
9
+ post :send_chat
10
+ get :chat_heartbeat
11
+ post :close_chat
12
+ end
13
+
14
+
15
+ end
16
+
17
+
18
+ end
@@ -0,0 +1,11 @@
1
+ # CURRENT FILE :: lib/team_page/engine.rb
2
+ module Chatter
3
+
4
+ class Engine < Rails::Engine
5
+
6
+
7
+
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,4 @@
1
+ # CURRENT FILE :: lib/team_page/version.rb
2
+ module Chatter
3
+ VERSION = "0.0.1"
4
+ end
data/lib/chatter.rb ADDED
@@ -0,0 +1,19 @@
1
+ # CURRENT FILE :: lib/team_page.rb
2
+ # Requires
3
+ require "active_support/dependencies"
4
+
5
+ module Chatter
6
+
7
+ # Our host application root path
8
+ # We set this when the engine is initialized
9
+ mattr_accessor :app_root
10
+
11
+ # Yield self on setup for nice config blocks
12
+ def self.setup
13
+ yield self
14
+ end
15
+
16
+ end
17
+
18
+ # Require our engine
19
+ require "chatter/engine"
@@ -0,0 +1,64 @@
1
+ # CURRENT FILE :: lib/generators/team_page/team_page_generator.rb
2
+ # Requires
3
+
4
+
5
+ module Chatter
6
+ module Generators
7
+ class InstallGenerator < Rails::Generators::Base
8
+
9
+
10
+ include Rails::Generators::Migration
11
+ def self.source_root
12
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
13
+ end
14
+
15
+ def self.next_migration_number(dirname)
16
+ next_migration_number = current_migration_number(dirname) + 1
17
+
18
+ if ActiveRecord::Base.timestamped_migrations
19
+ [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
20
+ else
21
+ "%.3d" % next_migration_number
22
+
23
+
24
+ end
25
+ end
26
+
27
+ def generate_layout
28
+
29
+ copy_file "chat.rb", "app/models/chat.rb"
30
+
31
+ copy_file "chats_controller.rb", "app/controllers/chats_controller.rb"
32
+
33
+ copy_file "chats.css.less", "app/assets/stylesheets/chats.css.less"
34
+ copy_file "screen.css.less", "app/assets/stylesheets/screen.css.less"
35
+
36
+ copy_file "samplea.html.erb", "app/views/chats/samplea.html.erb"
37
+
38
+ copy_file "jquery.js", "app/assets/javascripts/jquery.js"
39
+ copy_file "builder.js", "app/assets/javascripts/builder.js"
40
+ copy_file "chats.js", "app/assets/javascripts/chats.js"
41
+ copy_file "controls.js", "app/assets/javascripts/controls.js"
42
+ copy_file "css_browser_selector.js", "app/assets/javascripts/css_browser_selector.js"
43
+ copy_file "dragdrop.js", "app/assets/javascripts/dragdrop.js"
44
+ copy_file "effects.js", "app/assets/javascripts/effects.js"
45
+
46
+ copy_file "ol_chatter_image.png", "app/assets/images/ol_chatter_image.png"
47
+ copy_file "ol_chatter_status.png", "app/assets/images/ol_chatter_status.png"
48
+
49
+
50
+ end
51
+
52
+
53
+
54
+ def create_migration_file
55
+ migration_template 'create_chats.rb', 'db/migrate/create_chats.rb'
56
+ migration_template 'add_status_to_users.rb', 'db/migrate/add_status_to_users.rb'
57
+ migration_template 'add_username_to_users.rb', 'db/migrate/add_username_to_users.rb'
58
+ migration_template 'add_name_to_users.rb', 'db/migrate/add_name_to_users.rb'
59
+ end
60
+
61
+
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,8 @@
1
+ class AddNameToUsers< ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :first_name, :string
4
+ add_column :users, :last_name, :string
5
+ end
6
+
7
+
8
+ end
@@ -0,0 +1,7 @@
1
+ class AddStatusToUsers< ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :status, :string
4
+ end
5
+
6
+
7
+ end
@@ -0,0 +1,6 @@
1
+ class AddUsernameToUsers < ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :username, :string
4
+
5
+ end
6
+ end
@@ -0,0 +1,136 @@
1
+ // script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
2
+
3
+ // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
4
+ //
5
+ // script.aculo.us is freely distributable under the terms of an MIT-style license.
6
+ // For details, see the script.aculo.us web site: http://script.aculo.us/
7
+
8
+ var Builder = {
9
+ NODEMAP: {
10
+ AREA: 'map',
11
+ CAPTION: 'table',
12
+ COL: 'table',
13
+ COLGROUP: 'table',
14
+ LEGEND: 'fieldset',
15
+ OPTGROUP: 'select',
16
+ OPTION: 'select',
17
+ PARAM: 'object',
18
+ TBODY: 'table',
19
+ TD: 'table',
20
+ TFOOT: 'table',
21
+ TH: 'table',
22
+ THEAD: 'table',
23
+ TR: 'table'
24
+ },
25
+ // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
26
+ // due to a Firefox bug
27
+ node: function(elementName) {
28
+ elementName = elementName.toUpperCase();
29
+
30
+ // try innerHTML approach
31
+ var parentTag = this.NODEMAP[elementName] || 'div';
32
+ var parentElement = document.createElement(parentTag);
33
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
34
+ parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
35
+ } catch(e) {}
36
+ var element = parentElement.firstChild || null;
37
+
38
+ // see if browser added wrapping tags
39
+ if(element && (element.tagName.toUpperCase() != elementName))
40
+ element = element.getElementsByTagName(elementName)[0];
41
+
42
+ // fallback to createElement approach
43
+ if(!element) element = document.createElement(elementName);
44
+
45
+ // abort if nothing could be created
46
+ if(!element) return;
47
+
48
+ // attributes (or text)
49
+ if(arguments[1])
50
+ if(this._isStringOrNumber(arguments[1]) ||
51
+ (arguments[1] instanceof Array) ||
52
+ arguments[1].tagName) {
53
+ this._children(element, arguments[1]);
54
+ } else {
55
+ var attrs = this._attributes(arguments[1]);
56
+ if(attrs.length) {
57
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
58
+ parentElement.innerHTML = "<" +elementName + " " +
59
+ attrs + "></" + elementName + ">";
60
+ } catch(e) {}
61
+ element = parentElement.firstChild || null;
62
+ // workaround firefox 1.0.X bug
63
+ if(!element) {
64
+ element = document.createElement(elementName);
65
+ for(attr in arguments[1])
66
+ element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
67
+ }
68
+ if(element.tagName.toUpperCase() != elementName)
69
+ element = parentElement.getElementsByTagName(elementName)[0];
70
+ }
71
+ }
72
+
73
+ // text, or array of children
74
+ if(arguments[2])
75
+ this._children(element, arguments[2]);
76
+
77
+ return $(element);
78
+ },
79
+ _text: function(text) {
80
+ return document.createTextNode(text);
81
+ },
82
+
83
+ ATTR_MAP: {
84
+ 'className': 'class',
85
+ 'htmlFor': 'for'
86
+ },
87
+
88
+ _attributes: function(attributes) {
89
+ var attrs = [];
90
+ for(attribute in attributes)
91
+ attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
92
+ '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'&quot;') + '"');
93
+ return attrs.join(" ");
94
+ },
95
+ _children: function(element, children) {
96
+ if(children.tagName) {
97
+ element.appendChild(children);
98
+ return;
99
+ }
100
+ if(typeof children=='object') { // array can hold nodes and text
101
+ children.flatten().each( function(e) {
102
+ if(typeof e=='object')
103
+ element.appendChild(e);
104
+ else
105
+ if(Builder._isStringOrNumber(e))
106
+ element.appendChild(Builder._text(e));
107
+ });
108
+ } else
109
+ if(Builder._isStringOrNumber(children))
110
+ element.appendChild(Builder._text(children));
111
+ },
112
+ _isStringOrNumber: function(param) {
113
+ return(typeof param=='string' || typeof param=='number');
114
+ },
115
+ build: function(html) {
116
+ var element = this.node('div');
117
+ $(element).update(html.strip());
118
+ return element.down();
119
+ },
120
+ dump: function(scope) {
121
+ if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope
122
+
123
+ var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
124
+ "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
125
+ "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
126
+ "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
127
+ "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
128
+ "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);
129
+
130
+ tags.each( function(tag){
131
+ scope[tag] = function() {
132
+ return Builder.node.apply(Builder, [tag].concat($A(arguments)));
133
+ };
134
+ });
135
+ }
136
+ };
@@ -0,0 +1,24 @@
1
+
2
+
3
+
4
+ class Chat < ActiveRecord::Base
5
+ belongs_to :user
6
+
7
+ validates :from, :to, :message, :presence => true
8
+
9
+ attr_accessible :from, :to, :message, :sent
10
+
11
+
12
+ def self.update_status(me)
13
+ if me.status != "online"
14
+ @user = User.find(:first, :conditions => ["email= '#{me.email}'"])
15
+
16
+ @user.update_attribute(:status, "online")
17
+ end
18
+ end
19
+
20
+
21
+ end
22
+
23
+
24
+
@@ -0,0 +1,151 @@
1
+ // Place all the styles related to the chats controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Less here: http://lesscss.org/
4
+ .chatboxmessagefrom {
5
+ margin-left:-1em;
6
+ font-weight: bold;
7
+ }
8
+ .chatboxhead {
9
+ background-color: #f99d39;
10
+ padding:7px;
11
+ color: #ffffff;
12
+ border-right:1px solid #f99d39;
13
+ border-left:1px solid #f99d39;
14
+ }
15
+ .chatboxmessage {
16
+ margin-left:1em;
17
+ }
18
+ .chatboxinput {
19
+ padding: 5px;
20
+ background-color: #ffffff;
21
+ border-left:1px solid #cccccc;
22
+ border-right:1px solid #cccccc;
23
+ border-bottom:1px solid #cccccc;
24
+ }
25
+ .chatboxblink {
26
+ background-color: #176689;
27
+ border-right:1px solid #176689;
28
+ border-left:1px solid #176689;
29
+ }
30
+ .chatbox {
31
+ position: fixed;
32
+ position:expression("absolute");
33
+ width: 225px;
34
+ display:none;
35
+ }
36
+ .chatboxoptions {
37
+ float: right;
38
+ a {
39
+ text-decoration: none;
40
+ color: white;
41
+ font-weight:bold;
42
+ font-family:Verdana,Arial,"Bitstream Vera Sans",sans-serif;
43
+ }
44
+ }
45
+ .chatboxtitle {
46
+ float: left;
47
+ }
48
+ .chatboxtextareaselected {
49
+ border: 2px solid #f99d39;
50
+ margin:0;
51
+ }
52
+ .chatboxtextarea {
53
+ width: 206px;
54
+ height:44px;
55
+ padding:3px 0pt 3px 3px;
56
+ border: 1px solid #eeeeee;
57
+ margin: 1px;
58
+ overflow:hidden;
59
+ }
60
+ .chatboxcontent {
61
+ font-family: arial,sans-serif;
62
+ font-size: 13px;
63
+ color: #333333;
64
+ height:200px;
65
+ width:209px;
66
+ overflow-y:auto;
67
+ overflow-x:auto;
68
+ padding:7px;
69
+ border-left:1px solid #cccccc;
70
+ border-right:1px solid #cccccc;
71
+ border-bottom:1px solid #eeeeee;
72
+ background-color: #ffffff;
73
+ line-height: 1.3em;
74
+ }
75
+ .chatboxinfo {
76
+ margin-left:-1em;
77
+ color:#666666;
78
+ }
79
+
80
+ .ie .uiScrollableAreaContent{
81
+ display:block;
82
+ position:absolute;
83
+ bottom:0px;
84
+ right:0px;
85
+ width:180px;
86
+ top:310px;
87
+ background:#eee;
88
+ border:1px solid #ddd;
89
+
90
+ }
91
+
92
+
93
+ .gecko .uiScrollableAreaContent{
94
+ display:block;
95
+ position:fixed;
96
+ bottom:0px;
97
+ right:0px;
98
+ width:180px;
99
+ top:310px;
100
+ background:#eee;
101
+ border:1px solid #ddd;
102
+
103
+ }
104
+
105
+ .chrome .uiScrollableAreaContent{
106
+ display:block;
107
+ position:fixed;
108
+ bottom:0px;
109
+ right:0px;
110
+ width:180px;
111
+ top:370px;
112
+ background:#eee;
113
+ border:1px solid #ddd;
114
+
115
+ }
116
+
117
+ .ChatOrderedList{
118
+ padding-top:8px;
119
+
120
+ }
121
+
122
+
123
+ li.item{ list-style-type: none;}
124
+
125
+ .item .pic{float:left;height:28px;margin-right:8px;width:28px;}
126
+
127
+ .item .icons{float:right;height:28px;line-height:24px;margin-left:4px}
128
+
129
+ .item .status{display:inline-block;height:10px;width:7px}
130
+
131
+ .item .icon{margin-right:4px;vertical-align:middle}
132
+
133
+ .ChatOrderedList .item, .ChatOrderedList .separator{float:left;width:100%}
134
+ .ChatOrderedList .item a{color:#333;display:block;padding:2px 8px 2px 10px;position:relative}
135
+ .ChatOrderedList .item a:hover, .ChatOrderedList .item a.selected{background-color:#e0e4ee;text-decoration:none}
136
+
137
+ ul.ChatOrderedList{
138
+ margin:0pt;
139
+ padding:0pt;
140
+ list-style-type:none;
141
+
142
+ }
143
+
144
+ .ChatOrderedList .item .name{
145
+ line-height:28px;
146
+ overflow:hidden;
147
+ text-overflow:ellipsis;
148
+ white-space:nowrap;
149
+ }
150
+
151
+