Permalink
Browse files

added style for a users own messages

  • Loading branch information...
1 parent af47b5e commit 8cee08fea48e978fc3bf4ac2305eca343f1855b3 @MichaelEvans MichaelEvans committed May 8, 2012
View
@@ -3,6 +3,9 @@ source 'https://rubygems.org'
# Core gems
gem 'rails', '3.2.2'
+group :development do
+ gem 'sqlite3'
+end
# Database adapters
gem 'pg', '0.12.2'
# Uncomment this is you want to use sqlite locally
View
@@ -158,6 +158,7 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
thin (1.3.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
@@ -197,5 +198,6 @@ DEPENDENCIES
rails (= 3.2.2)
remotipart
sass-rails (~> 3.2.3)
+ sqlite3
thin
uglifier (>= 1.0.3)
@@ -16,6 +16,9 @@ class Kandan.Views.ShowActivity extends Backbone.View
@compiledTemplate = Kandan.Helpers.Activities.buildFromMessageTemplate activity
$(@el).data("activity-id", activity.id)
+ if activity.action == "message" && activity.user_id == Kandan.Helpers.Users.currentUser().id
+ $(@el).addClass("current_user")
+
if activity.id == undefined
$(@el).attr("id", "activity-c#{activity.cid}")
else
@@ -56,3 +56,5 @@
height: 30px
+.current_user
+ background-color: #F0F0F0
View
@@ -0,0 +1,14 @@
+# Postgres settings
+# #################
+# development:
+# adapter: postgresql
+# host: localhost
+# database: kandan_development
+# pool: 5
+# timeout: 5000
+
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000

0 comments on commit 8cee08f

Please sign in to comment.