socialforge/app/views/repositories/show.html.erb

40 lines
1.4 KiB
Plaintext
Raw Normal View History

<%= call_hook(:view_repositories_show_contextual, {:repository => @repository, :project => @project}) %>
2015-04-16 05:01:09 +08:00
<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>
2015-04-16 05:01:09 +08:00
</div>
<div class="repository_con" style="line-height:1.9;">
<%= render :partial => 'navigation' %>
2015-04-16 05:01:09 +08:00
<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>
</div>
2015-06-12 16:48:43 +08:00
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
<%# 数据统计 %>
<%= render :partial => 'summary' %>
<%# end %>
2015-06-12 16:48:43 +08:00
<%= render :partial => 'dir_list' %>
<% end %>
<%= render_properties(@properties) %>
<!-- 代码修订 -->
2013-08-01 10:33:49 +08:00
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
2013-08-01 10:33:49 +08:00
<% end %>
<% html_title(l(:label_repository)) -%>