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

_tree_item.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 255752839931058b53f91440a7fe4127157e7938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- file = params[:path] ? File.join(params[:path], content.name) : content.name
- content_commit = @repo.log(@branch, file, :max_count => 1).last
- return unless content_commit
%tr{ :class => "tree-item", :url => tree_file_project_path(@project, @commit.id, file) }
  %td.tree-item-file-name
    - if content.is_a?(Grit::Blob)
      = image_tag "txt.png"
    - else
      = image_tag "dir.png"
    = link_to truncate(content.name, :length => 40), tree_file_project_path(@project, @commit.id, file), :remote => :true
  %td
    = time_ago_in_words(content_commit.committed_date)
    ago
  %td
    = link_to truncate(content_commit.message, :length => 40), project_commit_path(@project, content_commit)