_snippet.html.haml 562 字节
Newer Older
D
Dmitriy Zaporozhets 已提交
1
%li
2
  %h4.snippet-title
D
Dmitriy Zaporozhets 已提交
3
    = link_to reliable_snippet_path(snippet) do
4 5
      = truncate(snippet.title, length: 60)
    %span.cgray.monospace.tiny.pull-right
D
Dmitriy Zaporozhets 已提交
6 7 8 9 10 11 12 13 14
      = snippet.file_name

  %small.pull-right.cgray
    Expires:
    - if snippet.expires_at
      = snippet.expires_at.to_date.to_s(:short)
    - else
      Never

15
  .snippet-info
D
Dmitriy Zaporozhets 已提交
16
    = "##{snippet.id}"
17
    %span
D
Dmitriy Zaporozhets 已提交
18 19 20
      by
      = image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16"
      = snippet.author_name
21
      %span.light #{time_ago_in_words(snippet.created_at)} ago