parent
147cdf3018
commit
1157dcaa06
@ -1,32 +1,12 @@
|
|||||||
<%= link_to @repository.identifier.present? ? h(@repository.identifier) : 'root',
|
<div class="git_usr_title">
|
||||||
{:action => 'show', :id => @project,
|
<span><%= link_to @repository.identifier.present? ? h(@repository.identifier) : 'root',
|
||||||
:repository_id => @repository.identifier_param,
|
{:action => 'show', :id => @project,
|
||||||
:path => nil, :rev => @rev },
|
:repository_id => @repository.identifier_param,
|
||||||
:class=>"fl c_blue f14 fb" %>
|
:path => nil, :rev => @rev }
|
||||||
<%
|
%>
|
||||||
dirs = path.split('/')
|
/
|
||||||
if 'file' == kind
|
<%=link_to repository_creater(@repository).show_name, user_path(repository_creater(@repository)) %>
|
||||||
filename = dirs.pop
|
</span>
|
||||||
end
|
</div>
|
||||||
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 %>
|
|
||||||
<% end %>
|
|
||||||
<% if filename %>
|
|
||||||
/ <%= 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)) -%>
|
||||||
|
@ -1,34 +1,30 @@
|
|||||||
<% content_for :header_tags do %>
|
<% content_for :header_tags do %>
|
||||||
<%= javascript_include_tag 'repository_navigation' %>
|
<%= javascript_include_tag 'repository_navigation' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<a href="javascript:void(0);" class="pic_stats fl ml20 mt3"></a>
|
<!--<a href="javascript:void(0);" class="pic_stats fl ml20 mt3"></a>-->
|
||||||
<%= link_to l(:label_statistics),
|
<%#= link_to l(:label_statistics),
|
||||||
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
||||||
:class => 'mt3 c_blue fl' if @repository.supports_all_revisions? %>
|
:class => 'mt3 c_blue fl' if @repository.supports_all_revisions? %>
|
||||||
|
|
||||||
<%= form_tag({:action => controller.action_name,
|
<%= form_tag({:action => controller.action_name,
|
||||||
:id => @project,
|
:id => @project,
|
||||||
:repository_id => @repository.identifier_param,
|
:repository_id => @repository.identifier_param,
|
||||||
:path => to_path_param(@path),
|
:path => to_path_param(@path),
|
||||||
:rev => nil},
|
:rev => nil},
|
||||||
{:method => :get, :id => 'revision_selector', :class => "fl c_grey02 ml5"}) do -%>
|
{:method => :get, :id => 'revision_selector', :class => "fl c_grey02 ml5"}) do -%>
|
||||||
<!-- Branches Dropdown -->
|
<!-- Branches Dropdown -->
|
||||||
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
|
||||||
| <%= l(:label_branch) %>:
|
<%= l(:label_branch) %>:
|
||||||
<%= select_tag :branch,
|
<%= select_tag :branch, options_for_select([''] + @repository.branches, @rev), :id => 'branch' %>
|
||||||
options_for_select([''] + @repository.branches, @rev),
|
|
||||||
:id => 'branch' %>
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
|
||||||
| <%= l(:label_tag) %>:
|
| <%= l(:label_tag) %>:
|
||||||
<%= select_tag :tag,
|
<%= select_tag :tag, options_for_select([''] + @repository.tags, @rev), :id => 'tag' %>
|
||||||
options_for_select([''] + @repository.tags, @rev),
|
|
||||||
:id => 'tag' %>
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% if @repository.supports_all_revisions? %>
|
<%# if @repository.supports_all_revisions? %>
|
||||||
| <%= l(:label_revision) %>:
|
| <%#= l(:label_revision) %>:
|
||||||
<%= text_field_tag 'rev', @rev, :size => 8 %>
|
<%#= text_field_tag 'rev', @rev, :size => 8 %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
@ -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