• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..11-Jan-2022-

audio.rbH A D11-Jan-2022229 139

auxiliary.rbH A D11-Jan-2022385 2115

balsamiq.rbH A D11-Jan-2022286 1511

base.rbH A D11-Jan-20222.5 KiB10264

binary_stl.rbH A D11-Jan-2022208 139

cargo_toml.rbH A D11-Jan-2022254 1812

cartfile.rbH A D11-Jan-2022272 1812

changelog.rbH A D11-Jan-2022317 1913

client_side.rbH A D11-Jan-2022246 1410

composer_json.rbH A D11-Jan-2022442 2618

contributing.rbH A D11-Jan-2022231 139

csv.rbH A D11-Jan-2022236 1410

dependency_manager.rbH A D11-Jan-2022836 5339

download.rbH A D11-Jan-2022180 128

empty.rbH A D11-Jan-2022155 117

gemfile.rbH A D11-Jan-2022264 1812

gemspec.rbH A D11-Jan-2022472 3021

gitlab_ci_yml.rbH A D11-Jan-2022650 2820

go_mod.rbH A D11-Jan-2022845 4433

godeps_json.rbH A D11-Jan-2022268 1812

image.rbH A D11-Jan-2022300 1511

license.rbH A D11-Jan-2022352 2316

markup.rbH A D11-Jan-2022487 2216

metrics_dashboard_yml.rbH A D11-Jan-20221.5 KiB5545

notebook.rbH A D11-Jan-2022288 1511

open_api.rbH A D11-Jan-2022246 1410

package_json.rbH A D11-Jan-2022982 5339

pdf.rbH A D11-Jan-2022270 1511

podfile.rbH A D11-Jan-2022257 1812

podspec.rbH A D11-Jan-2022475 3021

podspec_json.rbH A D11-Jan-2022213 128

readme.rbH A D11-Jan-2022449 2316

requirements_txt.rbH A D11-Jan-2022266 1812

rich.rbH A D11-Jan-2022238 1410

route_map.rbH A D11-Jan-2022633 3324

server_side.rbH A D11-Jan-2022749 2917

simple.rbH A D11-Jan-2022231 1410

sketch.rbH A D11-Jan-2022284 1511

static.rbH A D11-Jan-2022279 1711

svg.rbH A D11-Jan-2022274 1511

text.rbH A D11-Jan-2022249 1410

text_stl.rbH A D11-Jan-2022111 85

video.rbH A D11-Jan-2022229 139

yarn_lock.rbH A D11-Jan-2022253 1812

readme.rb

1# frozen_string_literal: true
2
3module BlobViewer
4  class Readme < Base
5    include Auxiliary
6    include Static
7
8    self.partial_name = 'readme'
9    self.file_types = %i(readme)
10    self.binary = false
11
12    def visible_to?(current_user)
13      can?(current_user, :read_wiki, project)
14    end
15
16    def render_error
17      return if project.has_external_wiki? || (project.wiki_enabled? && project.wiki.has_home_page?)
18
19      :no_wiki
20    end
21  end
22end
23