| 1 |
<% title h(@user.fullname) %> |
| 2 |
|
| 3 |
<%= div_breadcrumb_open %> |
| 4 |
<%= breadcrumb_home %> |
| 5 |
<%= breadcrumb_title(h(@user.fullname)) %> |
| 6 |
<%= div_breadcrumb_close %> |
| 7 |
|
| 8 |
<%= div_rightcolumn_open %> |
| 9 |
<%= actionbox_basic %> |
| 10 |
<%= div_rightcolumn_close %> |
| 11 |
|
| 12 |
<%= div_content_open(STYLE_WITHRIGHTCOLUMN) %> |
| 13 |
|
| 14 |
<%= div_formattedtext_open %> |
| 15 |
|
| 16 |
<h1 class='pagetitle'> |
| 17 |
<%=h @user.login -%> |
| 18 |
<small><%= @user.fullname.blank? ? "" : "(#{h(@user.fullname)})" -%></small> |
| 19 |
</h1> |
| 20 |
|
| 21 |
<ul> |
| 22 |
<li><strong>Email:</strong> <%= encoded_mail_to(@user.email) -%></li> |
| 23 |
<li><strong>Url:</strong> <a href="<%=h @user.url -%>"><%=h @user.url -%></a></li> |
| 24 |
<li><strong>Member for</strong> <%= time_ago_in_words(@user.created_at) -%></li> |
| 25 |
</ul> |
| 26 |
|
| 27 |
<% unless @projects.blank? -%> |
| 28 |
<h2>Projects</h2> |
| 29 |
<ul class="project_list"> |
| 30 |
<% @projects.each do |project| -%> |
| 31 |
<li class="project_list_item"> |
| 32 |
<%= project.title -%> |
| 33 |
</li> |
| 34 |
<% end -%> |
| 35 |
</ul> |
| 36 |
<% end -%> |
| 37 |
|
| 38 |
<% unless @repositories.blank? -%> |
| 39 |
<h2>Repositories</h2> |
| 40 |
<ul> |
| 41 |
<% @repositories.each do |repos| -%> |
| 42 |
<li> |
| 43 |
<%= link_to h(repos.name), project_repository_url(repos.project, repos) -%> |
| 44 |
of <%= link_to h(repos.project.title), repos.project -%> |
| 45 |
</li> |
| 46 |
<% end -%> |
| 47 |
</ul> |
| 48 |
<% end -%> |
| 49 |
|
| 50 |
<% if current_user && (current_user == @user) -%> |
| 51 |
<% content_for :submenu do -%> |
| 52 |
<ul> |
| 53 |
<li><%= link_to "+ Edit your account", edit_account_url -%> |
| 54 |
</ul> |
| 55 |
<% end -%> |
| 56 |
<% end -%> |
| 57 |
|
| 58 |
<%= div_formattedtext_close %> |
| 59 |
|
| 60 |
<%= div_content_close %> |