2014-06-07 08:46:58 -04:00
|
|
|
module BlobHelper
|
|
|
|
def highlightjs_class(blob_name)
|
2014-10-21 03:59:03 -04:00
|
|
|
if no_highlight_files.include?(blob_name.downcase)
|
|
|
|
'no-highlight'
|
2014-06-07 08:46:58 -04:00
|
|
|
else
|
2014-10-21 03:59:03 -04:00
|
|
|
blob_name.downcase
|
2014-06-07 08:46:58 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def no_highlight_files
|
|
|
|
%w(credits changelog copying copyright license authors)
|
|
|
|
end
|
|
|
|
end
|