Hide another raw link for huge blobs. Refs #263

This commit is contained in:
Pavel Chipiga 2012-07-31 22:24:27 +03:00
parent 8e91159b5b
commit 1269806aae
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@
- if @blob.render_as == :text && params[:action] != 'show'
= link_to "Normal", blob_path(@project, @treeish, @path)
\|
= link_to "Raw", raw_path(@project, @treeish, @path)
\|
- unless @blob.huge?
= link_to "Raw", raw_path(@project, @treeish, @path)
\|
- if @blob.render_as == :text && params[:action] != 'blame'
= link_to "Blame", blame_path(@project, @treeish, @path)
\|