Commit 28e26a977cf3354fb34795c36ef02e6719d8039c
- Diff rendering mode:
- inline
- side by side
app/views/repositories/_infobox.html.erb
(10 / 21)
|   | |||
| 1 | 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> | ||
| 2 | <li><strong>Project:</strong> <%= link_to h(@repository.project.title), @repository.project -%></li> | ||
| 3 | <li><strong>Owner:</strong> <%= link_to h(@repository.user.login), user_path(@repository.user) -%></li> | ||
| 4 | <% if @repository.parent -%> | ||
| 5 | <li><strong>Clone of:</strong> | ||
| 6 | <%= link_to h(@repository.parent.gitdir), project_repository_path(@project, @repository.parent) -%> | ||
| 7 | <% end -%> | ||
| 8 | <li><strong>Created:</strong> <%= @repository.created_at.to_s(:short) -%></li> | ||
| 20 | 9 | <% if logged_in? && current_user.can_write_to?(@repository) -%> | |
| 21 | 10 | <li> | |
| 22 | <strong>Push url:</strong> <code><%=h @repository.push_url -%></code> | ||
| 11 | <strong>URL:</strong> <code><%=h @repository.push_url -%></code> | ||
| 23 | 12 | <small><%= link_to_function "More info…", "$('detailed_push_info').toggle()" -%></small> | |
| 24 | 13 | <div id="detailed_push_info" class="info_hint" style="display:none"> | |
| 25 | You can run "<code>git push <%= @repository.push_url %></code>", or | ||
| 14 | You can run "<code>git push <%= @repository.push_url %></code>", or | ||
| 26 | 15 | you can setup a remote by doing the following: | |
| 27 | 16 | <pre> | |
| 28 | 17 | git remote add origin <%= @repository.push_url %> | |
| 29 | 18 | # to push the master branch to the origin remote we added above: | |
| 30 | git push origin master | ||
| 19 | git push origin master | ||
| 31 | 20 | # after that you can just do: | |
| 32 | 21 | git push | |
| 33 | 22 | </pre> |
Comments
Add a new comment:
Login or create an account to post a comment
Add your comment
Please log in to comment

