Commit 28e26a977cf3354fb34795c36ef02e6719d8039c

removed public urls from infobox
app/views/repositories/_infobox.html.erb
(10 / 21)
  
11<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>
209 <% if logged_in? && current_user.can_write_to?(@repository) -%>
2110 <li>
22 <strong>Push url:</strong> <code><%=h @repository.push_url -%></code>
11 <strong>URL:</strong> <code><%=h @repository.push_url -%></code>
2312 <small><%= link_to_function "More info…", "$('detailed_push_info').toggle()" -%></small>
2413 <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
2615 you can setup a remote by doing the following:
2716<pre>
2817git remote add origin <%= @repository.push_url %>
2918# to push the master branch to the origin remote we added above:
30git push origin master
19git push origin master
3120# after that you can just do:
3221git push
3322</pre>

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment