remove encode lib, clean all encoded area.

This commit is contained in:
Saito 2012-11-09 01:41:07 +08:00
parent 96211b01a8
commit f1ac2a616b
10 changed files with 10 additions and 73 deletions

View file

@ -15,7 +15,7 @@
.file_title
%i.icon-file
%span.file_name
= @tree.name.force_encoding('utf-8')
= @tree.name
%small= number_to_human_size @tree.size
%span.options= render "tree/blob_actions"
.file_content.blame
@ -32,4 +32,4 @@
%td.lines
= preserve do
%pre
= Gitlab::Encode.utf8 lines.join("\n")
= lines.join("\n")

View file

@ -2,7 +2,7 @@
.file_title
%i.icon-file
%span.file_name
= blob.name.force_encoding('utf-8')
= blob.name
%small= number_to_human_size blob.size
%span.options= render "tree/blob_actions"
- if blob.text?

View file

@ -4,7 +4,7 @@
.file_title
%i.icon-file
%span.file_name
= "#{@tree.path.force_encoding('utf-8')} (#{@ref})"
= "#{@tree.path} (#{@ref})"
.file_content.code
#editor= @tree.data