Let everyone see all comments and polish request for comments overview
This commit is contained in:
@@ -12,11 +12,11 @@ h1 = RequestForComment.model_name.human(count: 2)
|
||||
- @request_for_comments.each do |request_for_comment|
|
||||
tr data-id=request_for_comment.id
|
||||
td = link_to(request_for_comment.exercise.title, request_for_comment)
|
||||
- if request_for_comment.has_attribute?(:question)
|
||||
td = request_for_comment.question
|
||||
- if request_for_comment.has_attribute?(:question) && request_for_comment.question
|
||||
td = truncate(request_for_comment.question, length: 200)
|
||||
- else
|
||||
td = '-'
|
||||
td = request_for_comment.user.displayname
|
||||
td = request_for_comment.requested_at
|
||||
td = t('shared.time.before', time: distance_of_time_in_words_to_now(request_for_comment.requested_at))
|
||||
|
||||
= render('shared/pagination', collection: @request_for_comments)
|
Reference in New Issue
Block a user