Welcome to mirror list, hosted at ThFree Co, Russian Federation.

changelog.rb « blob_viewer « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7992fbf542c40dd7e7937b46cc8f0a39d52ac98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

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