Commit 0802d0616acde3f01c92b46e4587135cba185491

Fixing issues with the autocompleter not working correctly when clicking on a users name.

Also added the gravatar image to the auto complete list

Commit diff

app/views/committers/auto_complete_for_user_login.js.erb

 
11<ul>
2 <% @users.each do |user| -%>
3 <li><span class="login"><%=h user.login -%></span>
4 <span class="email"><small>(<%=h user.email -%>)</small></span>
5 </li>
6 <% end -%>
2<% @users.each do |user| -%>
3<li class="committer">
4<div class="image"><%= gravatar user.email, :size => 32 -%></div>
5<div class="login"><%=h user.login -%></div>
6<div class="email"><span class="informal"><%=h user.email -%></span></div>
7</li>
8<% end -%>
79</ul>
toggle raw diff

app/views/committers/new.html.erb

 
11<h1>
22 Give a user commit rights to <%= h(@repository.name) -%>
33</h1>
4
4<style>
5 li.committer {
6 height: 32px;
7 }
8
9 li.committer div.image {
10 float: left;
11 width: 32px;
12 height: 32px;
13 margin-right: 8px;
14 }
15
16 li.committer image {
17 width: 32px;
18 height: 32px;
19 }
20
21 li.committer div.name {
22 font-weight: bold
23 font-size: 12px;
24 line-height: 1.2em;
25 }
26
27 li.committer div.email {
28 font-size: 10px;
29 color:#888;
30 }
31</style>
532<% form_for @committer,
633 :url => {:controller => "committers", :action => "create"}, :method => :post do |f| -%>
734 <p>
toggle raw diff