-
Notifications
You must be signed in to change notification settings - Fork 42
/
_account.html.erb
72 lines (63 loc) · 1.83 KB
/
_account.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<td class="commiter">
<div class="commiter-wrapper">
<ul class="portraits">
<% unless account.portraits.empty? %>
<%= render :partial => 'portrait', :collection => account.portraits %>
<% else %>
<li><div class="image-wrapper"><%= image_tag 'no_portrait.png' %></div></li>
<% end %>
</ul>
<div class="commiter-data">
<h2><%= account.username %></h2>
<% unless account.names.empty? %>
<h3>
<span>Other accounts:</span>
<%= account.names.map(&:value).join(', ') %>
</h3>
<% end %>
<div class="commiter-data-extra">
<% unless account.nicks.empty? %>
<dl class="nicknames">
<dt>Nicknames:</dt>
<dd><%= account.nicks.map(&:value).join(', ') %></dd>
</dl>
<% end %>
<% unless account.sites.empty? %>
<dl class="sites">
<dt>Sites:</dt>
<dd>
<ul>
<%= render :partial => 'site', :collection => account.sites %>
</ul>
</dd>
</dl>
<% end %>
<% unless account.services.empty? %>
<dl class="services">
<dt>Services:</dt>
<dd>
<ul class="services">
<%= render :partial => 'service', :collection => account.services %>
</ul>
</dd>
</dl>
<% end %>
<!-- FIXME: unsure how to link to ISBN. :-( -->
<!--
<% if account.books.length > 0 %>
<tr>
<td>Books:</td>
<td>
<ul>
<% account.books.each do |book| %>
<li><%= book.key %></li>
<% end %>
</ul>
</td>
</tr>
<% end %>
-->
</div>
</div>
</div>
</td>