debian-mirror-gitlab/app/models/blob_viewer/changelog.rb

17 lines
286 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
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