fix 500 on mobile notifications page
This commit is contained in:
parent
286dcef0f0
commit
34a0abe0c8
2 changed files with 16 additions and 2 deletions
|
|
@ -10,11 +10,11 @@
|
||||||
- notes.each do |note|
|
- notes.each do |note|
|
||||||
.stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"}
|
.stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"}
|
||||||
|
|
||||||
= person_image_link(note.actor)
|
= person_image_link(note.actors.last)
|
||||||
|
|
||||||
.content
|
.content
|
||||||
%span.from
|
%span.from
|
||||||
%b= note.actor.name
|
%b= notification_people_link(note)
|
||||||
= object_link(note)
|
= object_link(note)
|
||||||
.time= timeago(note.updated_at)
|
.time= timeago(note.updated_at)
|
||||||
|
|
||||||
|
|
|
||||||
14
db/schema.rb
14
db/schema.rb
|
|
@ -80,6 +80,19 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
|
||||||
|
|
||||||
add_index "data_points", ["statistic_id"], :name => "index_data_points_on_statistic_id"
|
add_index "data_points", ["statistic_id"], :name => "index_data_points_on_statistic_id"
|
||||||
|
|
||||||
|
create_table "histories", :force => true do |t|
|
||||||
|
t.string "message"
|
||||||
|
t.string "username"
|
||||||
|
t.integer "item"
|
||||||
|
t.string "table"
|
||||||
|
t.integer "month", :limit => 2
|
||||||
|
t.integer "year", :limit => 8
|
||||||
|
t.datetime "created_at"
|
||||||
|
t.datetime "updated_at"
|
||||||
|
end
|
||||||
|
|
||||||
|
add_index "histories", ["item", "table", "month", "year"], :name => "index_histories_on_item_and_table_and_month_and_year"
|
||||||
|
|
||||||
create_table "invitations", :force => true do |t|
|
create_table "invitations", :force => true do |t|
|
||||||
t.text "message"
|
t.text "message"
|
||||||
t.integer "sender_id", :null => false
|
t.integer "sender_id", :null => false
|
||||||
|
|
@ -459,6 +472,7 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
|
||||||
t.string "mongo_id"
|
t.string "mongo_id"
|
||||||
t.string "invitation_service"
|
t.string "invitation_service"
|
||||||
t.string "invitation_identifier"
|
t.string "invitation_identifier"
|
||||||
|
t.text "open_aspects"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], :name => "index_users_on_email"
|
add_index "users", ["email"], :name => "index_users_on_email"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue