69 lines
3.5 KiB
Plaintext
69 lines
3.5 KiB
Plaintext
<%= call_hook(:view_repositories_show_contextual, {:repository => @repository, :project => @project}) %>
|
||
<div class="project_r_h">
|
||
<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;">
|
||
<% 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="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"><%=@repository.type.to_s=="Repository::Gitlab" ? @repos_url.to_s.lstrip : @repository.url %></textarea>
|
||
<a href="javascript:void(0);" class="clone_btn mt5" onclick="jsCopy()"><span class="vl_copy" title="点击复制版本库地址"></span></a>
|
||
<div class="fl mt5 ml15"><a href="javascript:void(0);" class="vl_btn fb" onclick="zip()"><span class="vl_zip"></span>ZIP</a> </div>
|
||
<div class="fr mt5"><a href="javascript:void(0);" class="vl_btn fb" onclick="zip()"><span class="vl_fork"></span>Fork</a> <span href="javascript:void(0);" class="vl_btn_2 fb">0</span> </div>
|
||
<div class="cl"></div>
|
||
<div class="recordBanner mt10">
|
||
<% if @changesets && !@changesets.empty? %>
|
||
<%= image_tag(url_to_avatar(user_commit_rep(@changesets_latest_coimmit.author_email)), :width => "25", :height => "25", :class => "fl portraitRadius mt2 ml4 mr5") %>
|
||
<span class="fl"><div class="fb fontGrey3 mr5 fl"><%=link_to user_commit_rep(@changesets_latest_coimmit.author_email), user_path(user_commit_rep(@changesets_latest_coimmit.author_email)) %></div>
|
||
<div class="fl">提交于<%= time_tag(@changesets_latest_coimmit.created_at) %>:</div>
|
||
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
|
||
</span>
|
||
<% end %>
|
||
<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_all_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' %>
|
||
<%# end %>
|
||
<%= render :partial => 'dir_list' %>
|
||
<% end %>
|
||
<%= render_properties(@properties) %>
|
||
|
||
<!-- 代码修订 -->
|
||
<%= render_properties(@properties) %>
|
||
|
||
|
||
<a href="https://<%=Setting.host_name %>/forums/1/memos/1232" >如何提交代码</a>
|
||
|
||
<% content_for :header_tags do %>
|
||
<%= stylesheet_link_tag "scm" %>
|
||
<% end %>
|
||
|
||
<% html_title(l(:label_repository)) -%>
|