Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (57 sloc) 1.71 KB
<br/><p id="notice"><%= notice %></p>
<% if @user %>
<% content_for :stylers do -%>
<style>
body {
background: url(<%=@user.backgroundurl%>) 0px 0 no-repeat;
background-color: #<%=@user.backgroundcolor%>;
}
</style>
<% end %>
<% content_for :head do -%>
<link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/redmond/jquery-ui.css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="http://s.phono.com/releases/0.2/jquery.phono.js"></script>
<script type="text/javascript" src="/javascripts/callme.js"></script>
<% end %>
<center>
<script type="text/javascript">
$("#wrapper").append(
$("<div/>")
.css("width","450px")
.css("margin-left","auto")
.css("margin-right","auto")
.callme({
apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
buttonTextReady: "CLICK TO CALL",
username: "<%=@username%>",
slideOpen:false,
dialPad: false
})
)
</script>
</center>
<div id="pagecontent">
<div id="photobar">
<center>
<% if @user.photo %>
<!img src="<%= @user.photo %>" width="100" height="100" />
<% else %>
<%# gravatar_image_tag @user.email, :class => "gravatar" rescue ""%>
<% end %><br/>
<% if false #@current_user.id == @user.id %>
<span style="a:underline"><%= link_to 'Edit Profile', "/users/" + @current_user.username + "/edit" %> </span>
<% end %>
</center>
</div>
</div>
<br />
<p><center><%# will_paginate @activities, :page_links => false %></center></p>
<br />
<br/><br/>
<% else %>
<h1>User not found :(</h1>
<div id="pagecontent">
<!-- Invite <%=params[:user]%> -->
</div>
<% end %>
Something went wrong with that request. Please try again.