没有上传代码显示页面

目录接头top修改
This commit is contained in:
huang 2015-10-23 16:20:32 +08:00
parent 7ab6c45262
commit b45d140a74
2 changed files with 27 additions and 11 deletions

View File

@ -5,32 +5,33 @@
<div class="repository_con" style="line-height:1.9;">
<%= render :partial => 'navigation' %>
<div class="cl"></div>
<div class=" repository-url">
<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>
<%# 各类信息入口 %>
<% if !@repository.nil? %>
<%= render :partial => 'summary' %>
<% end %>
<%# end %>
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
<%# 数据统计 %>
<%= render :partial => 'summary' %>
<%# end %>
<%= render :partial => 'dir_list' %>
<% end %>
<%= render_properties(@properties) %>
<!-- 代码修订 -->
<!-- added by bai -->
<p class="fb mt10"><a href="http://<%=Setting.host_name %>/forums/1/memos/1232" class=" c_blue ">点击查看如何提交代码</a></p>
<div class="cl"></div>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>

View File

@ -88,4 +88,19 @@
text-align: center;
font-size: 14px;
margin-bottom: 10px;
margin-top: 10px;
}
.center{
text-align: center;
}
.light-well {
background: #F9F9F9 none repeat scroll 0% 0%;
padding: 15px;
}
.page-title {
margin-top: 0px;
line-height: 1.5;
font-weight: bold;
margin-bottom: 5px;
font-size: 18px;
}