修改版本库样式

dev_repository_hjq
huang 10 years ago
parent 8803942a02
commit 08fb04aff4

@ -1,30 +1,30 @@
<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
:action => 'show', :id => @project,
:repository_id => @repository.identifier_param,
:path => nil, :rev => @rev) %>
<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
:action => 'show', :id => @project,
:repository_id => @repository.identifier_param,
:path => nil, :rev => @rev) %>
<%
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}"
%>
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 %>
: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 %>
: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)
# @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)
%>
<%= "@ #{h rev_text}" unless rev_text.blank? %>

@ -1,34 +1,34 @@
<% content_for :header_tags do %>
<%= javascript_include_tag 'repository_navigation' %>
<%= javascript_include_tag 'repository_navigation' %>
<% end %>
<a href="javascript:void(0);" class="pic_stats fl ml10 mt5"></a>
<%= link_to l(:label_statistics),
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
:class => 'mt5 c_blue fl' if @repository.supports_all_revisions? %>
:class => 'icon icon-stats' if @repository.supports_all_revisions? %>
<%= form_tag({:action => controller.action_name,
:id => @project,
:repository_id => @repository.identifier_param,
:path => to_path_param(@path),
:rev => nil},
{:method => :get, :id => 'revision_selector'}) do -%>
<!-- Branches Dropdown -->
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
| <%= l(:label_branch) %>:
<%= select_tag :branch,
options_for_select([''] + @repository.branches, @rev),
:id => 'branch' %>
<% end -%>
:id => @project,
:repository_id => @repository.identifier_param,
:path => to_path_param(@path),
:rev => nil},
{:method => :get, :id => 'revision_selector'}) do -%>
<!-- Branches Dropdown -->
<% if !@repository.branches.nil? && @repository.branches.length > 0 -%>
| <%= l(:label_branch) %>:
<%= select_tag :branch,
options_for_select([''] + @repository.branches, @rev),
:id => 'branch' %>
<% end -%>
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
| <%= l(:label_tag) %>:
<%= select_tag :tag,
options_for_select([''] + @repository.tags, @rev),
:id => 'tag' %>
<% end -%>
<% if !@repository.tags.nil? && @repository.tags.length > 0 -%>
| <%= l(:label_tag) %>:
<%= select_tag :tag,
options_for_select([''] + @repository.tags, @rev),
:id => 'tag' %>
<% end -%>
<% if @repository.supports_all_revisions? %>
| <%= l(:label_revision) %>:
<%= text_field_tag 'rev', @rev, :size => 8 %>
<% end %>
<% if @repository.supports_all_revisions? %>
| <%= l(:label_revision) %>:
<%= text_field_tag 'rev', @rev, :size => 8 %>
<% end %>
<% end -%>

File diff suppressed because it is too large Load Diff

@ -481,12 +481,52 @@ p.percent {
}
/*版本库tab*/
.contextual {
float: right;
white-space: nowrap;
line-height: 1.4em;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
font-size: 0.9em;
}
/*div.repos_explain {*/
/*word-wrap: normal;*/
/*line-height: 8px;*/
/*font-size: 13px;*/
/*background-color: #F8F8F8;*/
/*border: 1px solid #DDD;*/
/*overflow: auto;*/
/*border-radius: 3px;*/
/*padding: 6px 10px;*/
/*font-family: Consolas,"Liberation Mono",Courier,monospace;*/
/*color: #333;*/
/*}*/
/*div.autoscroll {*/
/*overflow-x: visible;*/
/*padding: 1px;*/
/*margin-bottom: 1.2em;*/
/*}*/
/*div.revision-graph {*/
/*position: absolute;*/
/*min-width: 1px;*/
/*}*/
/*table.list {*/
/*border: medium none;*/
/*}*/
/*tr.entry {*/
/*border: 1px solid #F8F8F8;*/
/*}*/
/*tr.entry td {*/
/*white-space: nowrap;*/
/*}*/
/*tr.entry td.size {*/
/*text-align: right;*/
/*font-size: 90%;*/
/*}*/
/*table.list thead th {*/
/*border-width: medium medium 1px;*/
/*border-style: none none solid;*/
/*border-color: -moz-use-text-color -moz-use-text-color #999;*/
/*-moz-border-top-colors: none;*/
/*-moz-border-right-colors: none;*/
/*-moz-border-bottom-colors: none;*/
/*-moz-border-left-colors: none;*/
/*border-image: none;*/
/*font-size: 12px;*/
/*font-weight: 400;*/
/*padding: 0px 3px 3px;*/
/*text-transform: uppercase;*/
/*}*/

Loading…
Cancel
Save