版本库单个文件历史记录修改
This commit is contained in:
parent
b5f035d286
commit
c27faf862f
|
@ -477,6 +477,9 @@ update
|
||||||
end
|
end
|
||||||
|
|
||||||
def entry
|
def entry
|
||||||
|
# 顶部导航
|
||||||
|
@project_menu_type = 5
|
||||||
|
|
||||||
entry_and_raw(false)
|
entry_and_raw(false)
|
||||||
@content = @repository.cat(@path, @rev)
|
@content = @repository.cat(@path, @rev)
|
||||||
@changesets_latest_coimmit = @g.commit(@project.gpid, @entry.try(:lastrev))
|
@changesets_latest_coimmit = @g.commit(@project.gpid, @entry.try(:lastrev))
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="fl"><h2 class="project_h2_repository">
|
||||||
|
<div class="git_usr_title">
|
||||||
|
<%=link_to @project.owner, user_path(@project.owner), :class => "repository-title-dec" %> / <%= link_to @project.name, project_path(@project), :class => "repository-title-dec" %>
|
||||||
|
</div></h2>
|
||||||
|
</div>
|
|
@ -1,26 +1,26 @@
|
||||||
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
||||||
<div class="wrap-big">
|
<div class="wrap-big">
|
||||||
<div class="project_r_h">
|
<div class="project_r_h">
|
||||||
<div class="fl"><h2 class="project_h2_repository"><%= render :partial => 'breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %></h2></div>
|
<%= render :partial => "top" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="repository_con " style="line-height:1.9;">
|
<div class="repository_con " style="line-height:1.9;">
|
||||||
<%= render :partial => 'navigation' %>
|
<%= render :partial => 'navigation' %>
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<%= render :partial => 'link_to_functions' %>
|
|
||||||
|
|
||||||
<%= render_properties(@properties) %>
|
|
||||||
|
|
||||||
<div class="mt10">
|
|
||||||
<%= render(:partial => 'revisions', :locals => {:project => @project, :path => @path , :revisions => @commits, :entry => @entry , :commits_pages => @commits_pages , :commits_count => @commits_count}) unless @commits.empty? %>
|
|
||||||
</div>
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<% content_for :header_tags do %>
|
<%#= render :partial => 'link_to_functions' %>
|
||||||
<%= stylesheet_link_tag "scm" %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% html_title(l(:label_change_plural)) -%>
|
<%= render_properties(@properties) %>
|
||||||
|
|
||||||
|
<div class="mt10">
|
||||||
|
<%= render(:partial => 'revisions', :locals => {:project => @project, :path => @path , :revisions => @commits, :entry => @entry , :commits_pages => @commits_pages , :commits_count => @commits_count}) unless @commits.empty? %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<% content_for :header_tags do %>
|
||||||
|
<%= stylesheet_link_tag "scm" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% html_title(l(:label_change_plural)) -%>
|
||||||
</div>
|
</div>
|
|
@ -1,11 +1,7 @@
|
||||||
<%#= call_hook(:view_repositories_show_contextual, {:repository => @repository, :project => @project}) %>
|
<%#= call_hook(:view_repositories_show_contextual, {:repository => @repository, :project => @project}) %>
|
||||||
<div class="wrap-big">
|
<div class="wrap-big">
|
||||||
<div class="project_r_h">
|
<div class="project_r_h">
|
||||||
<div class="fl"><h2 class="project_h2_repository">
|
<%= render :partial => "top" %>
|
||||||
<div class="git_usr_title">
|
|
||||||
<%=link_to @project.owner, user_path(@project.owner), :class => "repository-title-dec" %> / <%= link_to @project.name, project_path(@project), :class => "repository-title-dec" %>
|
|
||||||
</div></h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="repository_con" style="line-height:1.9;">
|
<div class="repository_con" style="line-height:1.9;">
|
||||||
<% if @entries.nil? %>
|
<% if @entries.nil? %>
|
||||||
|
|
Loading…
Reference in New Issue