Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_readme.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5ef0aca54035a77f2e684506350124d77561b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- if readme = @repository.readme
  %article.readme-holder
    .pull-right
      - if can?(current_user, :push_code, @project)
        = link_to icon('pencil'), namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light edit-project-readme'
    .file-content.wiki
      = cache(readme_cache_key) do
        = render_readme(readme)
- else
  %h3.page-title
    This project does not have README yet
  - if can?(current_user, :push_code, @project)
    %p.slead
      A
      %code README
      file contains information about other files in a repository and is commonly
      distributed with computer software, forming part of its documentation.
      %br
      We recommend you to
      = link_to "add README", new_readme_path, class: 'underlined-link'
      file to the repository and GitLab will render it here instead of this message.