| 1 |
<h1><%=h @user.login -%></h1> |
| 2 |
|
| 3 |
<ul class="infobox"> |
| 4 |
<li><strong>Username:</strong> <%= h(@user.login) -%></li> |
| 5 |
<li><strong>Realname:</strong> <%= @user.fullname.blank? ? "N/A" : h(@user.fullname) -%></li> |
| 6 |
<li><strong>Email:</strong> <%= encoded_mail_to(@user.email) -%></li> |
| 7 |
<li><strong>Url:</strong> <a href="<%=h @user.url -%>"><%=h @user.url -%></a></li> |
| 8 |
<li><strong>Member for</strong> <%= time_ago_in_words(@user.created_at) -%></li> |
| 9 |
</ul> |
| 10 |
|
| 11 |
<h2>Repositories<small>, per project</small></h2> |
| 12 |
|
| 13 |
<ul> |
| 14 |
<% @repositories.group_by(&:project).each do |project, repositories| -%> |
| 15 |
|
| 16 |
<li> |
| 17 |
<strong><%= link_to h(project.title) , project_url(project) -%></strong> |
| 18 |
<ul> |
| 19 |
<% repositories.each do |repos| -%> |
| 20 |
<li><%= link_to h(repos.name), project_repository_url(repos.project, repos) -%></li> |
| 21 |
<% end -%> |
| 22 |
</ul> |
| 23 |
</li> |
| 24 |
<% end -%> |
| 25 |
<%= will_paginate(@repositories) -%> |
| 26 |
</ul> |
| 27 |
|
| 28 |
<% if current_user && (current_user == @user) -%> |
| 29 |
<% content_for :submenu do -%> |
| 30 |
<ul> |
| 31 |
<li><%= link_to "+ Edit your account", edit_account_url -%> |
| 32 |
</ul> |
| 33 |
<% end -%> |
| 34 |
<% end -%> |