diff --git a/app/views/request_for_comments/index.html.slim b/app/views/request_for_comments/index.html.slim index db16b562..51b3a01b 100644 --- a/app/views/request_for_comments/index.html.slim +++ b/app/views/request_for_comments/index.html.slim @@ -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) \ No newline at end of file diff --git a/config/locales/de.yml b/config/locales/de.yml index d0aef588..3e780d8f 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -94,6 +94,7 @@ de: requested_at: Angefragezeitpunkt question: "Frage" close: "Fenster schließen" + last_update: "Letzte Aktivität" submission: cause: Anlass code: Code diff --git a/config/locales/en.yml b/config/locales/en.yml index 9a334697..47e97c9d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -115,6 +115,7 @@ en: requested_at: Request Date question: "Question" close: Close window + last_update: "Last Update" submission: cause: Cause code: Code