From b45d140a74c4cd916ef5d9c53608da3c73cc4c51 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 23 Oct 2015 16:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=B8=8A=E4=BC=A0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=98=BE=E7=A4=BA=E9=A1=B5=E9=9D=A2=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=A4=B4top=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/show.html.erb | 23 ++++++++++++----------- public/stylesheets/repository.css | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) 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