| 1 |
<h1> |
| 2 |
Give a user commit rights to <%= h(@repository.name) -%> |
| 3 |
</h1> |
| 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 div.name { |
| 17 |
font-weight: bold |
| 18 |
font-size: 12px; |
| 19 |
line-height: 1.2em; |
| 20 |
} |
| 21 |
|
| 22 |
li.committer div.email { |
| 23 |
font-size: 10px; |
| 24 |
color:#888; |
| 25 |
} |
| 26 |
</style> |
| 27 |
<% form_for @committer, |
| 28 |
:url => {:controller => "committers", :action => "create"}, :method => :post do |f| -%> |
| 29 |
<p> |
| 30 |
<%= f.label :login, "Existing username <small>(search-as-you-type)</small>" -%><br /> |
| 31 |
<%= text_field_with_auto_complete :user, :login, {}, :skip_style => true, :select => :login -%> |
| 32 |
</p> |
| 33 |
<p> |
| 34 |
<%= f.submit "Add as committer" -%> or <%= link_to "cancel", [@repository.project, @repository] -%> |
| 35 |
</p> |
| 36 |
<% end -%> |
| 37 |
|
| 38 |
<% content_for :submenu do -%> |
| 39 |
<%= render :partial => "repositories/context_menu" -%> |
| 40 |
<% end -%> |