2018-08-03 03:15:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-17 14:00:13 -04:00
|
|
|
module BlobViewer
|
|
|
|
class Changelog < Base
|
|
|
|
include Auxiliary
|
|
|
|
include Static
|
|
|
|
|
|
|
|
self.partial_name = 'changelog'
|
|
|
|
self.file_types = %i(changelog)
|
|
|
|
self.binary = false
|
|
|
|
|
|
|
|
def render_error
|
|
|
|
return if project.repository.tag_count > 0
|
|
|
|
|
|
|
|
:no_tags
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|