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

_snippet.html.haml « snippets « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9689c9c4d38a9a532a908f5df58190cde909a238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%li
  %h4.snippet-title
    = link_to reliable_snippet_path(snippet) do
      = truncate(snippet.title, length: 60)
      - if snippet.private?
        %span.label.label-success
          %i.icon-lock
          private
    %span.cgray.monospace.tiny.pull-right
      = snippet.file_name

  %small.pull-right.cgray
    - if snippet.project_id?
      = link_to snippet.project.name_with_namespace, project_path(snippet.project)

  .snippet-info
    = "##{snippet.id}"
    %span
      by
      = link_to user_snippets_path(snippet.author) do
        = image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
        = snippet.author_name
      %span.light #{time_ago_in_words(snippet.created_at)} ago