colorscheme for code view

This commit is contained in:
Dmitriy Zaporozhets 2011-11-26 01:42:42 +02:00
parent 139a332293
commit 3aee553523
4 changed files with 80 additions and 3 deletions

View file

@ -3,7 +3,7 @@
%span
%d
= link_to tree_project_ref_path(@project, @ref, :path => nil), :remote => true do
= @project.name
= @project.code
- tree.breadcrumbs(2) do |link|
\/
= link

View file

@ -5,12 +5,14 @@
= name
= link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path] ), :class => "right", :target => "_blank"
= link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref ), :class => "right", :style => "margin-right:10px;"
= switch_colorscheme_link(:class => "right", :style => "margin-right:10px;color:orange")
%br/
- if file.text?
.view_file_content
- unless file.empty?
:erb
<%= raw file.colorize %>
%div{:class => cookies[:colorschema]}
:erb
<%= raw file.colorize %>
- else
%h3
%center Empty file