diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index f2716c3ea..bc0ff18be 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -5,32 +5,33 @@
<%= render :partial => 'navigation' %>
-
+
+ <% if @entries.nil? && authorize_for('repositories', 'browse') %> +
+ 该版本库还没有上传代码! +
+ <% end %> <% if @repository.type.to_s=="Repository::Gitlab" %> 版本库地址:<%= @repos_url %> <% else %> 版本库地址:<%= h @repository.url %> <% end %> + + +
-<%# 各类信息入口 %> -<% 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) %> - -

点击查看如何提交代码

-
- <% content_for :header_tags do %> <%= stylesheet_link_tag "scm" %> <% end %> diff --git a/public/stylesheets/repository.css b/public/stylesheets/repository.css index 7745af1e5..0fe1541d2 100644 --- a/public/stylesheets/repository.css +++ b/public/stylesheets/repository.css @@ -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; } \ No newline at end of file