Skip to content

Commit

Permalink
Use the collapsible text partial for the request description
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Feb 18, 2019
1 parent 98b31fe commit d7bff1d
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -2,10 +2,10 @@
%p Request #{bs_request.number} (#{bs_request.state})

#description-text
- if bs_request.description.blank?
%i No description set
- if bs_request.description.present?
= render partial: 'webui/webui/collapsible_text', locals: { text: bs_request.description, threshold: 500 }
- else
= description_wrapper(toggle_sliced_text(bs_request.description))
%i No description set
- if can_add_reviews
%p
= link_to(add_reviewer_dialog_path(number: bs_request.number),
Expand Down

0 comments on commit d7bff1d

Please sign in to comment.