<%  ##TODO: Whoa... This is a lot of code for a view.
  lines = []

  name = observation.name
  # links to pages (internal & external) about name
  show_obs_name_links(name).each { |link| lines << link }

  # links to approved MO synonyms
  if (synonym_links = show_obs_approved_syn_links(name))
    lines << synonym_links
  end

  if name && !name.unknown? && !browser.bot?
    approved_synonyms, deprecated_synonyms = name.sort_synonyms

    lines << "#{:OBSERVATIONS.t} of:"

    # Observations of each synonym
    links = obss_by_syn_links(name)
    if links.present? && links.size > 0
      links.each { |link| lines << link }
    end

    # Observations of taxon (under any name)
    lines << taxon_observations(name)

    # Observations of other taxa where this taxon was proposed
    if (link = taxon_proposed(name))
      lines << link
    end

     # Observations of other taxa where this name was proposed
    if (link = name_proposed(name))
      lines << link
    end

   # List of species in the genus.
    #   List of species in Amanita Pers. (1433)
    if (genera_list = show_obs_genera(name)).present?
      lines << genera_list
    end
  end

  lines += list_descriptions(name) if name
%>
<div class="small">
  <% lines.each do |line| %>
    <p><%= line %></p>
  <% end %>
</div>

<%  ##TODO: Whoa... This is a lot of code for a view.
  lines = []

  name = observation.name
  # links to pages (internal & external) about name
  show_obs_name_links(name).each { |link| lines << link }

  # links to approved MO synonyms
  if (synonym_links = show_obs_approved_syn_links(name))
    lines << synonym_links
  end

  if !name.unknown? && !browser.bot?
    lines << "#{:OBSERVATIONS.t} of:"

    # Observations of each synonym
    links = obss_by_syn_links(name)
    if links.present? && links.size > 0
      links.each { |link| lines << link }
    end

    # Observations of taxon (under any name)
    lines << taxon_observations(name)

    # Observations of other taxa where this taxon was proposed
    if (link = taxon_proposed(name))
      lines << link
    end

     # Observations of other taxa where this name was proposed
    if (link = name_proposed(name))
      lines << link
    end

   # List of species in the genus.
    #   List of species in Amanita Pers. (1433)
    if (genera_list = show_obs_genera(name)).present?
      lines << genera_list
    end
  end

  lines += list_descriptions(name) if name
%>
<div class="small">
  <% lines.each do |line| %>
    <p><%= line %></p>
  <% end %>
</div>

Delete unneeded condition & variable
Delete unneeded condition & variable
