Blob of app/views/repositories/_infobox.html.erb (raw blob data)

1 <ul class="infobox">
2 <li>
3 <strong>Public clone url:</strong> <code><%=h @repository.clone_url -%></code>
4 <small><%= link_to_function "More info…", "$('detailed_clone_info').toggle()" -%></small>
5 <div id="detailed_clone_info" class="info_hint" style="display:none">
6 You can clone this repository with the following command:<br />
7 <code>git clone <%= @repository.clone_url -%></code>
8 </div>
9 </li>
10 <li>
11 <strong>HTTP clone url:</strong> <code><%=h @repository.http_clone_url -%></code>
12 <small><%= link_to_function "More info…", "$('detailed_http_clone_info').toggle()" -%></small>
13 <div id="detailed_http_clone_info" class="info_hint" style="display:none">
14 You can clone this repository with the following command:<br />
15 <code>git clone <%= @repository.http_clone_url -%></code><br />
16 <small>(note that cloning over HTTP is slightly slower, but useful
17 if you're behind a firewall)</small>
18 </div>
19 </li>
20 <% if logged_in? && current_user.can_write_to?(@repository) -%>
21 <li>
22 <strong>Push url:</strong> <code><%=h @repository.push_url -%></code>
23 <small><%= link_to_function "More info…", "$('detailed_push_info').toggle()" -%></small>
24 <div id="detailed_push_info" class="info_hint" style="display:none">
25 You can run "<code>git push <%= @repository.push_url %></code>", or
26 you can setup a remote by doing the following:
27 <pre>
28 git remote add origin <%= @repository.push_url %>
29 # to push the master branch to the origin remote we added above:
30 git push origin master
31 # after that you can just do:
32 git push
33 </pre>
34 </div>
35 </li>
36 <% end -%>
37 </ul>