parent
147cdf3018
commit
1157dcaa06
@ -1,32 +1,12 @@
|
|||||||
<%= link_to @repository.identifier.present? ? h(@repository.identifier) : 'root',
|
<div class="git_usr_title">
|
||||||
|
<span><%= link_to @repository.identifier.present? ? h(@repository.identifier) : 'root',
|
||||||
{:action => 'show', :id => @project,
|
{:action => 'show', :id => @project,
|
||||||
:repository_id => @repository.identifier_param,
|
:repository_id => @repository.identifier_param,
|
||||||
:path => nil, :rev => @rev },
|
:path => nil, :rev => @rev }
|
||||||
:class=>"fl c_blue f14 fb" %>
|
|
||||||
<%
|
|
||||||
dirs = path.split('/')
|
|
||||||
if 'file' == kind
|
|
||||||
filename = dirs.pop
|
|
||||||
end
|
|
||||||
link_path = ''
|
|
||||||
dirs.each do |dir|
|
|
||||||
next if dir.blank?
|
|
||||||
link_path << '/' unless link_path.empty?
|
|
||||||
link_path << "#{dir}"
|
|
||||||
%>
|
%>
|
||||||
/ <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
|
/
|
||||||
:path => to_path_param(link_path), :rev => @rev %>
|
<%=link_to repository_creater(@repository).show_name, user_path(repository_creater(@repository)) %>
|
||||||
<% end %>
|
</span>
|
||||||
<% if filename %>
|
</div>
|
||||||
/ <%= link_to h(filename),
|
|
||||||
:action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
|
|
||||||
:path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
|
|
||||||
<% end %>
|
|
||||||
<%
|
|
||||||
# @rev is revsion or Git and Mercurial branch or tag.
|
|
||||||
# For Mercurial *tip*, @rev and @changeset are nil.
|
|
||||||
rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
|
|
||||||
%>
|
|
||||||
<p class="fl f14 fb c_grey02"><%= "@ #{h rev_text}" unless rev_text.blank? %></p>
|
|
||||||
|
|
||||||
<% html_title(with_leading_slash(path)) -%>
|
<% html_title(with_leading_slash(path)) -%>
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
<div class="overall-summary overall-summary-bottomless">
|
||||||
|
|
||||||
|
<div class="stats-switcher-viewport js-stats-switcher-viewport">
|
||||||
|
<div class="stats-switcher-wrapper">
|
||||||
|
<ul class="numbers-summary">
|
||||||
|
<li class="commits">
|
||||||
|
<a data-pjax="" href="/redmine/redmine/commits/0.6-stable">
|
||||||
|
<span class="octicon octicon-history"></span>
|
||||||
|
<span class="num text-emphasized">
|
||||||
|
<%=link_to @changesets.count, {:action => 'changes', :path => to_path_param(@path), :id => @project, :repository_id => @repository.identifier_param, :rev => @rev}, :class => "num text-emphasized" %>
|
||||||
|
</span>
|
||||||
|
commits
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class="octicon image-type"></span>
|
||||||
|
<span class="num text-emphasized">
|
||||||
|
<%= @repository.branches.count %>
|
||||||
|
</span>
|
||||||
|
branches
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class="octicon octicon-organization"></span>
|
||||||
|
<span class="num text-emphasized">
|
||||||
|
<%=link_to @repository.committers.count, committers_repository_path(@repository) %>
|
||||||
|
</span>
|
||||||
|
contributors
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,56 @@
|
|||||||
|
.git_usr_title{
|
||||||
|
margin: 0px;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #444;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
vertical-align: top;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.overall-summary{
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border: 1px solid #DDD;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
.overall-summary .overall-summary-bottomless{
|
||||||
|
margin-bottom: 0px;
|
||||||
|
border-bottom: 0px none;
|
||||||
|
border-radius: 3px 3px 0px 0px;
|
||||||
|
}
|
||||||
|
.stats-switcher-viewport{
|
||||||
|
height: 38px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.stats-switcher-viewport .stats-switcher-wrapper{
|
||||||
|
position: relative;
|
||||||
|
top: 0px;
|
||||||
|
transition: top 0.25s ease-in-out 0s;
|
||||||
|
}
|
||||||
|
.numbers-summary{
|
||||||
|
display: table;
|
||||||
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
.numbers-summary li{
|
||||||
|
display: table-cell;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.numbers-summary .octicon {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.text-emphasized {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.octicon .octicon-history {
|
||||||
|
font: 16px/1 octicons;
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
text-rendering: auto;
|
||||||
|
-moz-user-select: none;
|
||||||
|
}
|
Loading…
Reference in new issue