# HG changeset patch # User Chris Cannam # Date 1353607833 0 # Node ID 0d837624e795a3ff332a32defe623456b0ba51d1 # Parent 997f6d7738f7c5d61140a95e4d592dbe2361af88 If the file is large, acknowledge that it might be too large rather than binary (could be a big text file) diff -r 997f6d7738f7 -r 0d837624e795 app/views/repositories/entry.html.erb --- a/app/views/repositories/entry.html.erb Thu Nov 22 18:04:17 2012 +0000 +++ b/app/views/repositories/entry.html.erb Thu Nov 22 18:10:33 2012 +0000 @@ -9,7 +9,11 @@

<%= render :partial => 'link_to_functions' %>

<% if @display_raw %> - <%= l(:text_binary_data) %> + <% if @content.size && @content.size > Setting.file_max_size_displayed.to_i.kilobyte %> + <%= l(:text_data_too_large) %> + <% else %> + <%= l(:text_binary_data) %> + <% end %> <% else %> <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> <% end %> diff -r 997f6d7738f7 -r 0d837624e795 config/locales/en.yml --- a/config/locales/en.yml Thu Nov 22 18:04:17 2012 +0000 +++ b/config/locales/en.yml Thu Nov 22 18:10:33 2012 +0000 @@ -1033,6 +1033,7 @@ text_has_welcome_page_info: Welcome page

You can replace the standard {{overview_link}} page for this project with your own welcome page.
This page will be editable using the project Wiki. text_has_welcome_page_wiki_disabled: Note: You must enable the Wiki module in the {{modules_link}} tab before you can create or edit this page. text_binary_data: Binary data + text_data_too_large: Binary data, or file too large to display default_role_manager: Manager default_role_developer: Developer