Skip to content

Commit

Permalink
Show the correct user in Pulse page
Browse files Browse the repository at this point in the history
The list of requests in the Pulse page was always showing the creator
instead of the user who performed the action (accept, revoke, etc.).

Now this is fixed and closes #8656
  • Loading branch information
saraycp committed Nov 26, 2019
1 parent a3afa81 commit 9b4ae3a
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -7,11 +7,15 @@
= link_to(request_show_path(request.number), title: request.description) do
= request.number
- if request.request_history_elements.any?
= request.request_history_elements.last.description.gsub('Request', '')
- history_element = request.request_history_elements.last
= history_element.description.gsub('Request', '')
by
= link_to(user_path(history_element.user)) do
= history_element.user
- else
was created
by
= link_to(user_path(request.creator)) do
= request.creator
by
= link_to(user_path(request.creator)) do
= request.creator
= fuzzy_time(request.updated_at)

0 comments on commit 9b4ae3a

Please sign in to comment.