<%= t 'layouts.intro_header' %>
diff --git a/app/views/message/_message_count.html.erb b/app/views/message/_message_count.html.erb
index 9b5edd26c..3a995c171 100644
--- a/app/views/message/_message_count.html.erb
+++ b/app/views/message/_message_count.html.erb
@@ -1,8 +1,8 @@
<%= t "message.inbox.messages",
- :new_messages => t("message.inbox.new_messages",
- :count => @user.new_messages.size),
- :old_messages => t("message.inbox.old_messages",
- :count => @user.messages.size - @user.new_messages.size)
+ :new_messages => t("message.inbox.new_messages",
+ :count => current_user.new_messages.size),
+ :old_messages => t("message.inbox.old_messages",
+ :count => current_user.messages.size - current_user.new_messages.size)
%>
-
+
diff --git a/app/views/message/inbox.html.erb b/app/views/message/inbox.html.erb
index 4a898c085..919a3e402 100644
--- a/app/views/message/inbox.html.erb
+++ b/app/views/message/inbox.html.erb
@@ -1,10 +1,10 @@
<% content_for :heading do %>
-
<%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), outbox_path(@user.display_name) %>
+
<%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), outbox_path(current_user.display_name) %>
<% end %>
<%= render :partial => "message_count" %>
-<% if @user.messages.size > 0 %>
+<% if current_user.messages.size > 0 %>
@@ -16,9 +16,9 @@
- <%= render :partial => "message_summary", :collection => @user.messages %>
+ <%= render :partial => "message_summary", :collection => current_user.messages %>
<% else %>
-
<%= raw(t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name)) %>
+
<%= raw(t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => current_user.display_name)) %>
<% end %>
diff --git a/app/views/message/new.html.erb b/app/views/message/new.html.erb
index f7c26aea1..b2534e47b 100644
--- a/app/views/message/new.html.erb
+++ b/app/views/message/new.html.erb
@@ -16,7 +16,7 @@
<%= submit_tag t('message.new.send_button') %>
- <%= link_to t('message.new.back_to_inbox'), { :controller => 'message', :action => 'inbox', :display_name => @user.display_name }, :class => 'deemphasize button' %>
+ <%= link_to t('message.new.back_to_inbox'), { :controller => 'message', :action => 'inbox', :display_name => current_user.display_name }, :class => 'deemphasize button' %>
<% end %>
diff --git a/app/views/message/outbox.html.erb b/app/views/message/outbox.html.erb
index ebf04c9fb..288c235eb 100644
--- a/app/views/message/outbox.html.erb
+++ b/app/views/message/outbox.html.erb
@@ -1,10 +1,10 @@
<% content_for :heading do %>
- <%= raw(t'message.outbox.no_sent_messages', :people_mapping_nearby_link => link_to(t('message.outbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name)) %>
+ <%= raw(t'message.outbox.no_sent_messages', :people_mapping_nearby_link => link_to(t('message.outbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => current_user.display_name)) %>
<% end %>
diff --git a/app/views/message/read.html.erb b/app/views/message/read.html.erb
index 8e175ef67..6621c3e8e 100644
--- a/app/views/message/read.html.erb
+++ b/app/views/message/read.html.erb
@@ -1,4 +1,4 @@
-<% if @user == @message.recipient %>
+<% if current_user == @message.recipient %>
<% content_for :heading do %>