Q:

How do I add a Ruby IF statement on the same line as plain text in HAML?

I'm trying to add a simple IF statement on the same line as some text in HAML:
%h2 Information about 
    - project.participants.each do |participant|
      - if participant != current_user
        %h2=link_to participant.full_name, participant

But the webpage displays:
Information about
(person's name)
How can I get it to display "Information about (person's name)" all on one line?
Thanks!
EDIT: This is how I would do it in HTML:
Information about <% project.participants.each do |participant| %> <% if participant != current_user %> <%= link_to participant.full_name, participant %>.

It would all be on one line.

A:

How about something like:
- project.participants.each do |participant|
  - if participant != current_user
    %h2 
      %span
        Information about
      =link_to participant.full_name, participant

