Add last activity label to RFCs

This commit is contained in:
Maximilian Grundke
2017-08-13 14:33:12 +02:00
parent 38c6e29cbf
commit b2344cfd97
3 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ h1 = RequestForComment.model_name.human(count: 2)
i class="fa fa-comment" aria-hidden="true" title = t('request_for_comments.comments') align="center"
th = t('activerecord.attributes.request_for_comments.username')
th = t('activerecord.attributes.request_for_comments.requested_at')
th = t('activerecord.attributes.request_for_comments.last_update')
tbody
- @request_for_comments.each do |request_for_comment|
tr data-id=request_for_comment.id
@ -36,5 +37,7 @@ h1 = RequestForComment.model_name.human(count: 2)
td = request_for_comment.comments_count
td = request_for_comment.user.displayname
td = t('shared.time.before', time: distance_of_time_in_words_to_now(request_for_comment.created_at))
- last_comment = request_for_comment.comments.order('created_at DESC').first
td = t('shared.time.before', time: distance_of_time_in_words_to_now(last_comment.nil? ? request_for_comment.updated_at : last_comment.updated_at))
= render('shared/pagination', collection: @request_for_comments)

View File

@ -94,6 +94,7 @@ de:
requested_at: Angefragezeitpunkt
question: "Frage"
close: "Fenster schließen"
last_update: "Letzte Aktivität"
submission:
cause: Anlass
code: Code

View File

@ -115,6 +115,7 @@ en:
requested_at: Request Date
question: "Question"
close: Close window
last_update: "Last Update"
submission:
cause: Cause
code: Code