anchor.diff:  <!-- check when we know what happens with profile pages. where can user/admin go -->
   <%= link_to 'Bearbeiten', edit_profile_path(@profile), class: 'btn btn-default' %> 
   <!-- where should back button lead? -->
  -<%= link_to 'Zurück', profiles_path, class: 'btn btn-default' %> 
  +<%= link_to 'Zurück', root_path, class: 'btn btn-default' %> 
  
positive.code:     <%= @profile.bio %>
    </p>
  
    <p>
      <div class="box" style="background-color: #FF8080; height:auto;width: 600px; border-radius: 10px" >
        <% isWritten=false %>
        <% @profile.user.events.each do |eventCondition| %>
          <% if eventCondition.condition != nil%>
            <% @cSplit = eventCondition.condition.split('; ') %>
            <% @cSplit.each do |cSplitted| %>
              <% b = false %>
              <% @profile.user.events.each do |events| %>
  
negative.code:     </div>
    </p>
  
    <!-- Immediate suggestions -->
    <p>
      <div class="box" style="background-color:#8DE28D; height:auto;width: 600px; border-radius: 10px" >
        <% isWritten=false %>
        <!-- All conditions for all events -->
        <% @eventAll = Event.all %>
        <% @eventAll.each do |events| %>
          <!-- If the event is relevant to the user -->
          <% events.blocks.each do |eBlock| %>
            <% eBlock.courses.each do |eCourse| %>
              <% if @profile.user.course == eCourse %> 
                <% if !events.condition.blank? %>
                  <% @cSplit=events.condition.split('; ') %>
                  <% conditAll=true %>
                  <% @cSplit.each do|cSplitted| %>
                    <% found = false %>
                    <!-- Check if the user meets all conditions -->
                    <% @profile.user.events.each do |eventIdent| %>
                      <% if !found %>
                        <% if cSplitted.eql? eventIdent.identifier %>
                          <% found = true %>
                        <% end %>  
                      <% end %>
                    <% end %>
                    <% if !found %>
                      <% conditAll = false %>
                    <% end %>
                  <% end %>
                  <!-- If all conditions are met, show in profile -->
                  <!-- If the user has not already selected the event -->
                  <% if conditAll %>
                    <% if @profile.user.events.find_by_identifier(events.identifier) == nil %>
                      <div class="box" style="padding-left:5px; padding-bottom:2px" >
                        <% if !isWritten %>
                          <u><strong>
                            <%= "Sie erfüllen die Vorraussetzungen für folgende Veranstaltungen:" %> </br>
                          </u></strong>
                          <% isWritten=true %>
                        <% end %>
                        <%= link_to events.title,event_path(events) %> </br>
                      </div>
                    <% end %>
                  <% end %>
                <!-- If an event does not have conditions -->
                <% else %>
                  <% if @profile.user.events.find_by_identifier(events.identifier) == nil %>
                    <div class="box" style="padding-left:5px; padding-bottom:2px" >
                      <% if !isWritten %>
                        <u><strong>
                          <%= "Sie erfüllen die Vorraussetzungen für folgende Veranstaltungen:" %> </br>
                        </u></strong>
                        <% isWritten=true %>
                      <% end %>
                    <%= link_to events.title,event_path(events) %> </br>
                    </div>
                  <% end %>
                <% end %>
              <% end %>
            <% end %>
          <% end %>
  