forked from External/greenlight
		
	add links to personal room and root
This commit is contained in:
		@@ -11,4 +11,8 @@ class User < ApplicationRecord
 | 
				
			|||||||
  def self.twitter_username(auth_hash)
 | 
					  def self.twitter_username(auth_hash)
 | 
				
			||||||
    auth_hash['info']['nickname']
 | 
					    auth_hash['info']['nickname']
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def room_url
 | 
				
			||||||
 | 
					    "/rooms/#{username}"
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,21 +36,21 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div id="landing_page_footer_oauth_append">
 | 
					      <div id="landing_page_footer_oauth_append">
 | 
				
			||||||
        <p>You can have a personal URL (with recordings) by signing in below</p>
 | 
					 | 
				
			||||||
      </div>
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  </div>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        <% if current_user.nil? %>
 | 
					        <% if current_user.nil? %>
 | 
				
			||||||
 | 
					        <p>You can have a personal URL (with recordings) by signing in below</p>
 | 
				
			||||||
        <ul>
 | 
					        <ul>
 | 
				
			||||||
          <li><%= link_to 'Twitter', '/auth/twitter' %></li>
 | 
					          <li><%= link_to 'Twitter', '/auth/twitter' %></li>
 | 
				
			||||||
          <li><%= link_to 'Google', '/auth/google' %></li>
 | 
					          <li><%= link_to 'Google', '/auth/google' %></li>
 | 
				
			||||||
        </ul>
 | 
					        </ul>
 | 
				
			||||||
        <% else %>
 | 
					        <% else %>
 | 
				
			||||||
          <div>Hello <%= current_user.name %></div>
 | 
					          <div>Hello <%= current_user.name %></div>
 | 
				
			||||||
<%= link_to 'Logout', '/logout' %>
 | 
					          <div><%= link_to 'Personal Room', current_user.room_url %></div>
 | 
				
			||||||
 | 
					          <div><%= link_to 'Logout', '/logout' %></div>
 | 
				
			||||||
        <% end %>
 | 
					        <% end %>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@
 | 
				
			|||||||
    <!-- Header -->
 | 
					    <!-- Header -->
 | 
				
			||||||
    <div class='navbar'>
 | 
					    <div class='navbar'>
 | 
				
			||||||
      <div class='container'>
 | 
					      <div class='container'>
 | 
				
			||||||
        <%= 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 %>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user