mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Style links on repository entries as 2nd level tabs (like in settings) (#25999).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16649 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f65a30392a
commit
9ea27ba156
@ -1,13 +1,22 @@
|
|||||||
<% if @entry && @entry.kind == 'file' %>
|
<% if @entry && @entry.kind == 'file' %>
|
||||||
|
|
||||||
|
<%
|
||||||
|
tabs = []
|
||||||
|
tabs << { name: 'entry', label: :button_view,
|
||||||
|
url: {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
||||||
|
} if @repository.supports_cat?
|
||||||
|
|
||||||
|
tabs << { name: 'changes', label: :label_history,
|
||||||
|
url: {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
||||||
|
}
|
||||||
|
tabs << { name: 'annotate', label: :button_annotate,
|
||||||
|
url: {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
||||||
|
} if @repository.supports_annotate?
|
||||||
|
%>
|
||||||
|
|
||||||
|
<%= render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => action_name} %>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<% if @repository.supports_cat? %>
|
|
||||||
<%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
|
|
||||||
<% end %>
|
|
||||||
<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
|
|
||||||
<% if @repository.supports_annotate? %>
|
|
||||||
<%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
|
|
||||||
<% end %>
|
|
||||||
<%= link_to(l(:button_download),
|
<%= link_to(l(:button_download),
|
||||||
{:action => 'raw', :id => @project,
|
{:action => 'raw', :id => @project,
|
||||||
:repository_id => @repository.identifier_param,
|
:repository_id => @repository.identifier_param,
|
||||||
|
|||||||
@ -67,7 +67,7 @@ table.filecontent td.line-code pre {
|
|||||||
table.filecontent tr:target th.line-num { background-color:#E0E0E0; color: #777; }
|
table.filecontent tr:target th.line-num { background-color:#E0E0E0; color: #777; }
|
||||||
table.filecontent tr:target td.line-code { background-color:#DDEEFF; }
|
table.filecontent tr:target td.line-code { background-color:#DDEEFF; }
|
||||||
|
|
||||||
img.filecontent { max-width: 100%; margin-top: 1em;}
|
img.filecontent { max-width: 100%; }
|
||||||
|
|
||||||
/* 12 different colors for the annonate view */
|
/* 12 different colors for the annonate view */
|
||||||
table.annotate tr.bloc-0 {background: #FFFFBF;}
|
table.annotate tr.bloc-0 {background: #FFFFBF;}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user