gitlab-org--gitlab-foss/app/models/blob_viewer
2017-05-18 16:19:22 -05:00
..
auxiliary.rb
balsamiq.rb
base.rb
binary_stl.rb
cartfile.rb
changelog.rb
client_side.rb
composer_json.rb
contributing.rb
dependency_manager.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
download.rb
empty.rb
gemfile.rb
gemspec.rb
gitlab_ci_yml.rb
godeps_json.rb
image.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
license.rb
markup.rb Render plain README using Markup viewer so it is displayed below tree 2017-05-18 16:19:22 -05:00
notebook.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
package_json.rb
pdf.rb
podfile.rb
podspec.rb
podspec_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
readme.rb
requirements_txt.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
rich.rb
route_map.rb Allow blob viewer to support multiple filetypes 2017-05-13 11:46:10 -05:00
server_side.rb
simple.rb
sketch.rb
static.rb
svg.rb
text.rb
text_stl.rb
video.rb
yarn_lock.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00

module BlobViewer
  class Readme < Base
    include Auxiliary
    include Static

    self.partial_name = 'readme'
    self.file_types = %i(readme)
    self.binary = false

    def visible_to?(current_user)
      can?(current_user, :read_wiki, project)
    end
  end
end