To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_checkout / app / views / redmine_checkout_hooks / _view_repositories_show_contextual.html.erb @ 1315:12556ba57d17
History | View | Annotate | Download (1.89 KB)
| 1 | 1315:12556ba57d17 | chris | |
|---|---|---|---|
| 2 | <% content_for :header_tags do %>
|
||
| 3 | <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %>
|
||
| 4 | <% end %>
|
||
| 5 | |||
| 6 | 16:020926a36823 | Chris | <div class="repository-info"> |
| 7 | <% if repository.checkout_description.present? %>
|
||
| 8 | <div class="wiki<%= ' bottomline' if protocols.present? %>"><%= textilizable repository.checkout_description %></div> |
||
| 9 | <% end %>
|
||
| 10 | <% if protocols.present? %>
|
||
| 11 | <div id="checkout_box"> |
||
| 12 | <ul id="checkout_protocols"> |
||
| 13 | <% protocols.each do |p| -%>
|
||
| 14 | <li>
|
||
| 15 | <a <%= 'class="selected"' if p == default_protocol %> id="checkout_protocol_<%= p.protocol.to_s.underscore %>" data-permission="<%= p.access_rw(User.current) %>" href="<%= URI.escape p.url(checkout_path) %>"><%=h p.protocol %></a> |
||
| 16 | </li>
|
||
| 17 | <% end -%>
|
||
| 18 | </ul>
|
||
| 19 | <%= text_field_tag :checkout_url, h(default_protocol.full_command(checkout_path)), :readonly => true %>
|
||
| 20 | 319:614862ec2481 | chris | |
| 21 | <p>
|
||
| 22 | <% if User.current.logged? %>
|
||
| 23 | 337:d67a7d67b159 | chris | <% if repository.is_external? %>
|
| 24 | 1310:c0eedaadb1f2 | chris | <%= (l :label_access_type_all, :type => l(:label_access_read_only)).html_safe %>
|
| 25 | 337:d67a7d67b159 | chris | <% else %>
|
| 26 | 1310:c0eedaadb1f2 | chris | <% if default_protocol %><%= (l :label_access_type, :type => l(default_protocol.access_label(User.current))).html_safe %><% end %> |
| 27 | 337:d67a7d67b159 | chris | <% end %>
|
| 28 | 320:5835a1beeb11 | chris | <% else %>
|
| 29 |
|
||
| 30 | 319:614862ec2481 | chris | <% end %>
|
| 31 | </p>
|
||
| 32 | |||
| 33 | 16:020926a36823 | Chris | <% javascript_tag do %>
|
| 34 | var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>});
|
||
| 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(', ') %>});
|
||
| 36 | <% end %>
|
||
| 37 | 1137:66b9ab6cf9d7 | chris | |
| 38 | 16:020926a36823 | Chris | </div>
|
| 39 | <% end%>
|
||
| 40 | 302:6508e99869a2 | chris | <% if repository.is_external? %>
|
| 41 | 319:614862ec2481 | chris | <div style="clear: left"> |
| 42 | </div>
|
||
| 43 | 1310:c0eedaadb1f2 | chris | <p class="topline" style="padding-top: 1em"><%= (l(:text_repository_external, :location => repository.external_url)).html_safe %></p> |
| 44 | 302:6508e99869a2 | chris | <% end %>
|
| 45 | 16:020926a36823 | Chris | </div>
|
| 46 | <div style="clear: left"></div> |