diff --git a/app/models/user.rb b/app/models/user.rb
index 0941600e..487fdcbc 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -11,4 +11,8 @@ class User < ApplicationRecord
def self.twitter_username(auth_hash)
auth_hash['info']['nickname']
end
+
+ def room_url
+ "/rooms/#{username}"
+ end
end
diff --git a/app/views/landing/index.html.erb b/app/views/landing/index.html.erb
index 13bee6ad..fbd82246 100644
--- a/app/views/landing/index.html.erb
+++ b/app/views/landing/index.html.erb
@@ -36,21 +36,21 @@
+ <% if current_user.nil? %>
You can have a personal URL (with recordings) by signing in below
+
+ - <%= link_to 'Twitter', '/auth/twitter' %>
+ - <%= link_to 'Google', '/auth/google' %>
+
+ <% else %>
+
Hello <%= current_user.name %>
+
<%= link_to 'Personal Room', current_user.room_url %>
+
<%= link_to 'Logout', '/logout' %>
+ <% end %>
-
+
-
+
-
-<% if current_user.nil? %>
-
- - <%= link_to 'Twitter', '/auth/twitter' %>
- - <%= link_to 'Google', '/auth/google' %>
-
-<% else %>
-Hello <%= current_user.name %>
-<%= link_to 'Logout', '/logout' %>
-<% end %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index b6a5eddc..167c983b 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -16,10 +16,10 @@
- <%= image_tag "bbb-logo.png", :alt => "BigBlueButton Demo", :class => "center-block" %>
+ <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton Demo", :class => "center-block"), root_path %>
-
+
<%= yield %>