gitlab-org--gitlab-foss/app/models/blob_viewer
2017-05-18 16:19:22 -05:00
..
auxiliary.rb Add auxiliary viewer for README 2017-05-17 13:33:39 -05:00
balsamiq.rb
base.rb Add auxiliary blob viewer for CHANGELOG 2017-05-17 18:00:13 +00:00
binary_stl.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
cartfile.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
changelog.rb
client_side.rb Rename BlobViewer max_size to overridable_max_size and absolute_max_size to max_size 2017-05-15 10:03:34 -05:00
composer_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
contributing.rb
dependency_manager.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
download.rb Specify explicitly whether a blob viewer should be loaded asynchronously 2017-05-13 11:46:10 -05:00
empty.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
gemfile.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
gemspec.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
gitlab_ci_yml.rb Allow blob viewer to support multiple filetypes 2017-05-13 11:46:10 -05:00
godeps_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
image.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
license.rb Add auxiliary blob viewer for CHANGELOG 2017-05-17 18:00:13 +00:00
markup.rb
notebook.rb
package_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
pdf.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
podfile.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
podspec.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
podspec_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
readme.rb Add auxiliary viewer for README 2017-05-17 13:33:39 -05:00
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 Rename BlobViewer max_size to overridable_max_size and absolute_max_size to max_size 2017-05-15 10:03:34 -05:00
simple.rb Add simple blob viewers 2017-04-27 12:23:26 -05:00
sketch.rb
static.rb Specify explicitly whether a blob viewer should be loaded asynchronously 2017-05-13 11:46:10 -05:00
svg.rb Set BlobViewer::Base.binary instead of .text 2017-04-27 12:23:26 -05:00
text.rb
text_stl.rb
video.rb
yarn_lock.rb

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