Commit 956035860a8ade8975e2936a008646833c8a58bb

inline help texts for cloning & pushing urls

Commit diff

app/views/repositories/_infobox.html.erb

 
66 <%= link_to h(@repository.parent.gitdir), project_repository_path(@project, @repository.parent) -%>
77 <% end -%>
88 <li><strong>Created:</strong> <%= @repository.created_at.to_s(:short) -%></li>
9 <li><strong>Mirror url:</strong> <code><%=h @repository.clone_url -%></code></li>
9 <li>
10 <strong>Clone url:</strong> <code><%=h @repository.clone_url -%></code>
11 <small><%= link_to_function "More info…", "$('detailed_clone_info').toggle()" -%></small>
12 <div id="detailed_clone_info" class="info_hint" style="display:none">
13 You can clone this repository with the following command:
14 <% if logged_in? && current_user.can_write_to?(@repository) -%>
15 <code>git clone <%= @repository.push_url -%></code>
16 <% else -%>
17 <code>git clone <%= @repository.clone_url -%></code>
18 <% end -%>
19 </div>
20 </li>
1021 <% if logged_in? && current_user.can_write_to?(@repository) -%>
11 <li><strong>push url:</strong> <code><%=h @repository.push_url -%></code></li>
22 <li>
23 <strong>Push url:</strong> <code><%=h @repository.push_url -%></code>
24 <small><%= link_to_function "More info…", "$('detailed_push_info').toggle()" -%></small>
25 <div id="detailed_push_info" class="info_hint" style="display:none">
26You can run "<code>git push git@gitorious.org:tumbline/mainline.git</code>", or
27you can setup a remote by doing the following:
28<pre>
29git remote add origin <%= @repository.push_url %>
30# to push the master branch to the origin remote we added above:
31git push origin master
32# after that you can just do:
33git push
34</pre>
35 </div>
36 </li>
1237 <% end -%>
1338</ul>
toggle raw diff

app/views/repositories/show.html.erb

 
77<% render_if_ready(@repository) do -%>
88
99 <%= render :partial => "infobox" -%>
10
11 <p>You can clone this repository with the following command:</p>
12 <% if logged_in? && current_user.can_write_to?(@repository) -%>
13 <pre>git clone <%= @repository.push_url -%></pre>
14 <% else -%>
15 <pre>git clone <%= @repository.clone_url -%></pre>
16 <% end -%>
1710
1811 <ul class="tab_menu">
1912 <li class="selected">Recent commits</li>
toggle raw diff

public/stylesheets/base.css

 
598598 color: #666;
599599 font-size: 90%;
600600}
601.info_hint {
602 font-size: 95%;
603 color: #666;
604 margin-top: 5px;
605 margin-bottom: 5px;
606 padding-top: 5px;
607 padding-bottom: 5px;
608 border-top: 1px dotted #888;
609 border-bottom: 1px dotted #888;
610}
611
612.info_hint pre {
613 margin-bottom: 5px;
614}
601615
602616/* diff mode selector */
603617ul.mode_selector { float: right;}
toggle raw diff