colorscheme for code view
This commit is contained in:
parent
139a332293
commit
3aee553523
4 changed files with 80 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue