|
|
|
@ -3,30 +3,36 @@
|
|
|
|
|
<div class="contextual" style="padding-right: 10px;">
|
|
|
|
|
<%= render :partial => 'navigation' %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %>
|
|
|
|
|
<% ip = RepositoriesHelper::REPO_IP_ADDRESS %><!--Added by young For formatting project's path-->
|
|
|
|
|
<h3>
|
|
|
|
|
<%= render :partial => 'breadcrumbs',
|
|
|
|
|
:locals => { :path => @path, :kind => 'dir', :revision => @rev } %>
|
|
|
|
|
<div style="font-size:11px;">
|
|
|
|
|
<%if @repository.type.to_s=="Repository::Git"%>
|
|
|
|
|
<td>http://<%= @repository.login.to_s %>_<%= @repository.identifier.to_s%>@<%= ip %><%=h @repository.url.slice(project_path_cut, @repository.url.length) %></td><!--Modified by tanxianbo-->
|
|
|
|
|
<%= @repos_url%>
|
|
|
|
|
<%else %>
|
|
|
|
|
<td><%=h @repository.url %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% if @repositories.size > 1 %>
|
|
|
|
|
<% if @repositories.size >1 %>
|
|
|
|
|
<p style=" word-wrap: break-word; word-break: break-all">
|
|
|
|
|
(<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo|
|
|
|
|
|
link_to h(repo.name),
|
|
|
|
|
{:controller => 'repositories', :action => 'show',
|
|
|
|
|
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
|
|
|
|
|
:class => 'repository' + (repo == @repository ? ' selected' : '')
|
|
|
|
|
}.join(' | ').html_safe %>)</p>
|
|
|
|
|
}.join(' | ').html_safe %>)</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
<% if @repository.branches.empty?%>
|
|
|
|
|
<h3>进入到需要建立版本库文件夹,打开命令行执行如下</h3>
|
|
|
|
|
<div class="repos_explain">
|
|
|
|
|
<p>git init</p>
|
|
|
|
|
<p>git add *</p>
|
|
|
|
|
<p>git commit -m "first commit"</p>
|
|
|
|
|
<p>git remote add origin <%= @repos_url%></p>
|
|
|
|
|
<p>git push -u origin master</p>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
|
|
|
|
<%= render :partial => 'dir_list' %>
|
|
|
|
|
<% end %>
|
|
|
|
|