BigW Consortium Gitlab

license.rb 321 Bytes
Newer Older
1 2 3
module BlobViewer
  class License < Base
    include Auxiliary
4
    include Static
5 6

    self.partial_name = 'license'
7
    self.file_types = %i(license)
8 9 10
    self.binary = false

    def license
11
      project.repository.license
12 13 14 15 16 17 18 19 20
    end

    def render_error
      return if license

      :unknown_license
    end
  end
end