版本库一些细节调整

This commit is contained in:
huang 2016-10-28 16:53:02 +08:00
parent 05f576a06e
commit df47c09fa4
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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") %>
<span class="fl"><div class="fb fontGrey3 mr5 fl hidden maxwidth150"><%=link_to user_commit_rep(@changesets_latest_coimmit.author_email), user_path(user_commit_rep(@changesets_latest_coimmit.author_email)) %></div>
<div class="fl">提交于<%= time_tag(@changesets_latest_coimmit.created_at) %></div>
<div class="fl">提交于 <%= time_tag(@changesets_latest_coimmit.created_at) %></div>
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
</span>
<% else %>

View File

@ -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;