This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

_blob.html.haml 1.14 KB
Newer Older
1
.nav-block
2
3
4
5
  .tree-ref-holder
    = render 'shared/ref_switcher', destination: 'blob', path: @path

  %ul.breadcrumb.repo-breadcrumb
6
    %li
7
8
9
10
11
12
13
14
15
16
17
      = link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
        = @project.path
    - tree_breadcrumbs(@tree, 6) do |title, path|
      %li
        - if path
          - if path.end_with?(@path)
            = link_to namespace_project_blob_path(@project.namespace, @project, path) do
              %strong
                = truncate(title, length: 40)
          - else
            = link_to truncate(title, length: 40), namespace_project_tree_path(@project.namespace, @project, path)
18
        - else
19
          = link_to title, '#'
20

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21
%ul.blob-commit-info.hidden-xs
22
  - blob_commit = @repository.last_commit_for_path(@commit.id, blob.path)
Lin Jen-Shin's avatar
Lin Jen-Shin committed
23
  = render blob_commit, project: @project, ref: @ref
24

25
%div#blob-content-holder.blob-content-holder
26
  %article.file-holder
27
    .file-title
28
      = blob_icon blob.mode, blob.name
29
      %strong
30
        = blob.name
31
      %small
32
        = number_to_human_size(blob_size(blob))
33
34
      .file-actions.hidden-xs
        = render "actions"
35
    = render blob, blob: blob