|
|
|
@ -3,28 +3,54 @@
|
|
|
|
|
<div class="fl"><h2 class="project_h2_repository"><%= render :partial => 'breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %></h2></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="repository_con" style="line-height:1.9;">
|
|
|
|
|
<%= render :partial => 'navigation' %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class=" repository-url light-well">
|
|
|
|
|
<% if @entries.nil? && authorize_for('repositories', 'browse') %>
|
|
|
|
|
<div class="page-title">
|
|
|
|
|
该版本库还没有上传代码!
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @repository.type.to_s=="Repository::Gitlab" %>
|
|
|
|
|
版本库地址:<%= @repos_url %>
|
|
|
|
|
<% else %>
|
|
|
|
|
版本库地址:<%= h @repository.url %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<div class="fb"><a href="http://<%=Setting.host_name %>/forums/1/memos/1232" class=" c_blue ">点击查看如何提交代码</a></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<% if @entries.nil? %>
|
|
|
|
|
<%# 未提交代码提示 %>
|
|
|
|
|
<div class=" repository-url light-well">
|
|
|
|
|
<% if @entries.nil? && authorize_for('repositories', 'browse') %>
|
|
|
|
|
<div class="page-title">
|
|
|
|
|
该版本库还没有上传代码!
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @repository.type.to_s=="Repository::Gitlab" %>
|
|
|
|
|
版本库地址:<%= @repos_url %>
|
|
|
|
|
<% else %>
|
|
|
|
|
版本库地址:<%= h @repository.url %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<div class="fb"><a href="http://<%=Setting.host_name %>/forums/1/memos/1232" class=" c_blue ">点击查看如何提交代码</a></div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= render :partial => 'navigation' %>
|
|
|
|
|
<div class="fl c_grey02 mt5 mr5">克隆网址:</div>
|
|
|
|
|
<textarea id="copy_rep_content" class="cloneUrl mt5 fl" type="input" placeholder="http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git">
|
|
|
|
|
<% if @repository.type.to_s=="Repository::Gitlab" %>
|
|
|
|
|
<%= @repos_url %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= h @repository.url %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</textarea>
|
|
|
|
|
<a href="javascript:void(0);" class="clone_btn mt5" onclick="jsCopy()"><span class="vl_copy"></span></a>
|
|
|
|
|
<div class="fl mt5 ml15"><a href="javascript:void(0);" class="vl_btn fb"><span class="vl_zip"></span>ZIP</a> </div>
|
|
|
|
|
<div class="fr mt5"><a href="javascript:void(0);" class="vl_btn fb"><span class="vl_fork"></span>Fork</a> <a href="javascript:void(0);" class="vl_btn_2 fb">109</a> </div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="recordBanner mt10">
|
|
|
|
|
<img src="images/newsPortrait.png" width="25" height="25" alt="头像" class="fl portraitRadius mt2 ml4 mr5" />
|
|
|
|
|
<span class="fl"><font class="fb fontGrey3 mr5"><%#= @user_chageset_recently.user %></font>提交于两天前:<%#= @user_chageset_recently.comments %></span>
|
|
|
|
|
<span class="fr mr5 "><font class="fb ml2 mr2 vl_branch mt2">
|
|
|
|
|
<%= @repository.branches.count %></font>个分支
|
|
|
|
|
</span>
|
|
|
|
|
<span class="fr mr5"><font class="fb ml2 mr2 vl_commit">
|
|
|
|
|
<%=link_to @changesets.count, {:action => 'changes', :path => to_path_param(@path), :id => @project, :repository_id => @repository.identifier_param, :rev => @rev} %></font>提交
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<!--contextual end-->
|
|
|
|
|
|
|
|
|
|
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
|
|
|
|
<%# 数据统计 %>
|
|
|
|
|
<%= render :partial => 'summary' %>
|
|
|
|
|
<%#= render :partial => 'summary' %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
<%= render :partial => 'dir_list' %>
|
|
|
|
|
<% end %>
|
|
|
|
|