-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy path_trackers.html.haml
More file actions
30 lines (30 loc) · 1.03 KB
/
_trackers.html.haml
File metadata and controls
30 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%h2
Vos dernières entrées dans le suivi
- if @trackers.empty?
%p
Vous n’avez posté aucune entrée dans le suivi
- else
.table_container
%table#my_trackers
%tr
%th.left Catégorie
%th.left Sujet
%th.left Date
%th.left État
%th.number Note
%th.number <abbr title="Nombre de commentaires">Comm.</abbr>
%th.left Dernier commentaire
- @trackers.each do |node|
- tracker = node.content
- answer = node.latest_answer
%tr{class: tracker.state}
%td= tracker.category.title
%td= link_to tracker.title, tracker
%td.date= tracker.created_at.to_s(:posted)
%td= tracker.state_name
%td.number= node.score
%td.number
- if answer && !answer.read_by?(current_account)
= image_tag "/images/icones/comment.png", alt: "Nouveaux commentaires !", class: "thread-new-comments"
= node.comments.count
%td.date= answer ? answer.created_at.to_s(:posted) : " "