From df47c09fa4bebbfb05f865b1f78ae876886ce511 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 28 Oct 2016 16:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/repositories_controller.rb | 3 +++ app/views/repositories/show.html.erb | 2 +- public/stylesheets/repository.css | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 1548e90b7..75f562b8b 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -428,6 +428,9 @@ update end def changes + # 顶部导航 + @project_menu_type = 5 + @entry = @repository.entry(@path, @rev) (show_error_not_found; return) unless @entry g = Gitlab.client diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index f7f0f8f81..716139a5f 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -54,7 +54,7 @@ <% if !user_commit_rep(@changesets_latest_coimmit.author_email).nil? %> <%= image_tag(url_to_avatar(user_commit_rep(@changesets_latest_coimmit.author_email)), :width => "25", :height => "25", :class => "fl portraitRadius mt2 ml4 mr5") %> -
提交于<%= time_tag(@changesets_latest_coimmit.created_at) %>:
+
提交于 <%= time_tag(@changesets_latest_coimmit.created_at) %> 前:
<%= @changesets_latest_coimmit.message %>
<% else %> diff --git a/public/stylesheets/repository.css b/public/stylesheets/repository.css index c16f251a4..1e66ae8c7 100644 --- a/public/stylesheets/repository.css +++ b/public/stylesheets/repository.css @@ -246,7 +246,7 @@ li.commit .commit-row-title { margin-bottom: 2px; } li.commit .commit-row-title .str-truncated { - max-width: 70%; + max-width: 82%; } .str-truncated { display: inline-block;