gitlab-org--gitlab-foss/app/models/blob_viewer
2017-06-14 10:12:21 -05:00
..
auxiliary.rb Consistent diff and blob size limit names 2017-05-29 17:02:02 -05:00
balsamiq.rb Moved partial 2017-04-28 11:42:30 +01:00
base.rb Detect if file that appears to be text in the first 1024 bytes is actually binary afer loading all data 2017-06-08 12:49:03 -05:00
binary_stl.rb
cartfile.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
changelog.rb Add auxiliary blob viewer for CHANGELOG 2017-05-17 18:00:13 +00:00
client_side.rb Consistent diff and blob size limit names 2017-05-29 17:02:02 -05:00
composer_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
contributing.rb Add auxiliary viewer for CONTRIBUTING 2017-05-16 15:51:22 -05:00
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 Empty blob viewer isn’t binary-only 2017-06-07 14:31:05 -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
license.rb Add auxiliary blob viewer for CHANGELOG 2017-05-17 18:00:13 +00:00
markup.rb Render plain README using Markup viewer so it is displayed below tree 2017-05-18 16:19:22 -05:00
notebook.rb
package_json.rb Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
pdf.rb
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 Implement diff viewers 2017-06-14 10:12:21 -05:00
simple.rb
sketch.rb
static.rb Specify explicitly whether a blob viewer should be loaded asynchronously 2017-05-13 11:46:10 -05:00
svg.rb
text.rb Consistent diff and blob size limit names 2017-05-29 17:02:02 -05:00
text_stl.rb
video.rb Display video blobs in-line like images 2017-04-28 09:38:02 -05:00
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