mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
14 lines
273 B
Ruby
14 lines
273 B
Ruby
module BlobHelper
|
|
def highlightjs_class(blob_name)
|
|
if no_highlight_files.include?(blob_name.downcase)
|
|
'no-highlight'
|
|
else
|
|
blob_name.downcase
|
|
end
|
|
end
|
|
|
|
def no_highlight_files
|
|
%w(credits changelog copying copyright license authors)
|
|
end
|
|
end
|