Blob of app/views/users/show.html.erb (raw blob data)

1 <% @page_title = h(@user.login) -%>
2
3 <% unless @events.empty? -%>
4 <h2>Activities<%= feed_icon @atom_auto_discovery_url %></h2>
5 <%= render :partial => "events/events", :locals => { :events => @events } -%>
6 <% end -%>
7
8 <% content_for :sidebar do -%>
9 <h1>
10 <%=h @user.login -%>
11 <small><%= @user.fullname.blank? ? "" : "(#{h(@user.fullname)})" -%></small>
12 </h1>
13
14 <div style="float: right;"><%= link_to(gravatar(@user.email, { :size => 64 }), :action => "show") %></div>
15 <ul>
16 <li><strong>Email:</strong> <%= encoded_mail_to(@user.email) -%></li>
17 <% if @user.url %>
18 <li><strong>Url:</strong> <a href="<%=h @user.url -%>"><%=h @user.url -%></a></li>
19 <% end -%>
20 <li><strong>Member for</strong> about <%= time_ago_in_words(@user.created_at) -%></li>
21 <li><strong><%= @commits_last_week -%></strong> commits so far this week.</li>
22 </ul>
23
24
25 <% unless @projects.blank? -%>
26 <h4>Projects:</h4>
27 <ul>
28 <% @projects.each do |project| -%>
29 <li><%= link_to h(project.slug), project -%></li>
30 <% end -%>
31 </ul>
32 <% end -%>
33
34 <% unless @repositories.blank? -%>
35 <h4>Repository clones</h4>
36 <ul>
37 <% @repositories.each do |repo| -%>
38 <li><%= link_to h("#{repo.project.slug}/#{repo.name}"), [repo.project, repo] -%></li>
39 <% end -%>
40 </ul>
41 <% end -%>
42 <% end -%>
43
44 <% if current_user && (current_user == @user) -%>
45 <% content_for :submenu do -%>
46 <li><%= link_to "Edit your account", edit_account_url -%>
47 <% end -%>
48 <% end -%>