Revision 443:350acce374a2 vendor/plugins/redmine_checkout/app
| vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml | ||
|---|---|---|
| 17 | 17 |
<div id="clipboard_button"><%= image_tag 'paste.png', :plugin => 'redmine_checkout' %></div> |
| 18 | 18 |
</div> |
| 19 | 19 |
<% end -%> |
| 20 |
<% if default_protocol %><p><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %></p><% end %> |
|
| 21 |
|
|
| 20 |
|
|
| 21 |
<p> |
|
| 22 |
<% if User.current.logged? %> |
|
| 23 |
<% if repository.is_external? %> |
|
| 24 |
<%=l :label_access_type_all, :type => l(:label_access_read_only) %> |
|
| 25 |
<% else %> |
|
| 26 |
<% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> |
|
| 27 |
<% end %> |
|
| 28 |
<% else %> |
|
| 29 |
|
|
| 30 |
<% end %> |
|
| 31 |
</p> |
|
| 32 |
|
|
| 22 | 33 |
<% javascript_tag do %> |
| 23 | 34 |
var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>});
|
| 24 | 35 |
var checkout_commands = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{escape_javascript(p.full_command(checkout_path))}'"}.join(', ') %>});
|
| ... | ... | |
| 26 | 37 |
<% end %> |
| 27 | 38 |
</div> |
| 28 | 39 |
<% end%> |
| 40 |
<% if repository.is_external? %> |
|
| 41 |
<div style="clear: left"> |
|
| 42 |
</div> |
|
| 43 |
<p class="topline" style="padding-top: 1em"><%= l(:text_repository_external, :location => repository.external_url) %></p> |
|
| 44 |
<% end %> |
|
| 29 | 45 |
</div> |
| 30 | 46 |
<div style="clear: left"></div> |
| 31 | 47 |
|
| ... | ... | |
| 33 | 49 |
<%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> |
| 34 | 50 |
<%= javascript_include_tag 'checkout', :plugin => 'redmine_checkout' %> |
| 35 | 51 |
<%= (javascript_include_tag 'ZeroClipboard', :plugin => 'redmine_checkout') if Setting.checkout_use_zero_clipboard? %> |
| 36 |
<% end %> |
|
| 52 |
<% end %> |
|
Also available in: Unified diff