<commit_before><aside class="sideBar">

  <div class="sideBarbox contact">
    <%= link_to content_tag(:h3, @room_offer.graetzl.name, class: 'sideflag -L'), @room_offer.graetzl %>

    <div class="iconlist">

      <%= link_to @room_offer.user, class: 'user-wrp' do %>
        <%= avatar_for @room_offer.user %>
        <span class="name"><%= @room_offer.user.username %></span>
      <% end %>

      <% if @room_offer.address %>
        <div class="address icontxt">
          <%= icon_tag "map-location" %>
          <%= @room_offer.address.street %><br>
          <%= "#{@room_offer.address.zip} #{@room_offer.address.city}" %><br>
        </div>
      <% end %>

      <% if @room_offer.rented_area.present? %>
        <div class="rented-area icontxt">
          <%= icon_tag "resize-maximize" %>
          <%= "%g" % (@room_offer.rented_area) %> m² zu vermieten<br>
        </div>
      <% end %>

      <% if @room_offer.wants_collaboration? %>
        <div class="collaboration icontxt">
          <%= icon_tag "urgent-extra-notice-info-announcement" %>
          Auch an Kooperationen interessiert.
        </div>
      <% end %>

      <div class="created icontxt">
        <%= icon_tag "pencil" %>
        Erstellt / Aktualisiert:<br><%= I18n.localize(@room_offer.updated_at, format:'%d. %b %Y') %>
      </div>

      <% if user_signed_in? && current_user == @room_offer.user %>
        <div class="btn-group">
          <%= link_to 'Bearbeiten', edit_room_offer_path(@room_offer),
            class: 'btn-secondary -mint -small'  %>
        </div>
        <% if @room_offer.room_rental_price.present? %>
          <%= link_to 'Timetable', rental_timetable_room_offer_path(@room_offer),
            class: 'btn-secondary -mint -small'  %>
        <% end %>
        <div class="btn-group">
          <%= link_to "javascript:", data: { jq_dropdown: "#room-state-update-dropdown" }, class: "btn-secondary -mint -small -state-#{@room_offer.status}" do %>
            Status: <span><%= t("activerecord.attributes.room_offer.statuses.#{@room_offer.status}") %></span>
          <% end %>
        </div>
        <div id="room-state-update-dropdown" class="jq-dropdown jq-dropdown-tip jq-dropdown-relative jq-dropdown-anchor-right dropdown-container">
          <div class="jq-dropdown-panel">
            <%= link_to 'Aktiv', [:update_status, @room_offer, status: "enabled"], method: :patch %>
            <%= link_to 'Inaktiv', [:update_status, @room_offer, status: "disabled"], method: :patch %>
            <%= link_to 'Voll / Warteliste aktivieren', [:update_status, @room_offer, status: "occupied"], method: :patch %>
            <%= link_to 'Löschen', room_offer_path(@room_offer), data: { confirm: 'Bist du dir sicher?' }, method: :delete %><commit_msg>wording<commit_after><aside class="sideBar">

  <div class="sideBarbox contact">
    <%= link_to content_tag(:h3, @room_offer.graetzl.name, class: 'sideflag -L'), @room_offer.graetzl %>

    <div class="iconlist">

      <%= link_to @room_offer.user, class: 'user-wrp' do %>
        <%= avatar_for @room_offer.user %>
        <span class="name"><%= @room_offer.user.username %></span>
      <% end %>

      <% if @room_offer.address %>
        <div class="address icontxt">
          <%= icon_tag "map-location" %>
          <%= @room_offer.address.street %><br>
          <%= "#{@room_offer.address.zip} #{@room_offer.address.city}" %><br>
        </div>
      <% end %>

      <% if @room_offer.rented_area.present? %>
        <div class="rented-area icontxt">
          <%= icon_tag "resize-maximize" %>
          <%= "%g" % (@room_offer.rented_area) %> m² zu vermieten<br>
        </div>
      <% end %>

      <% if @room_offer.wants_collaboration? %>
        <div class="collaboration icontxt">
          <%= icon_tag "urgent-extra-notice-info-announcement" %>
          Auch an Kooperationen interessiert.
        </div>
      <% end %>

      <div class="created icontxt">
        <%= icon_tag "pencil" %>
        Erstellt / Aktualisiert:<br><%= I18n.localize(@room_offer.updated_at, format:'%d. %b %Y') %>
      </div>

      <% if user_signed_in? && current_user == @room_offer.user %>
        <div class="btn-group">
          <%= link_to 'Bearbeiten', edit_room_offer_path(@room_offer),
            class: 'btn-secondary -mint -small'  %>
        </div>
        <% if @room_offer.room_rental_price.present? %>
          <%= link_to 'Verfügbarkeitskalender', rental_timetable_room_offer_path(@room_offer),
            class: 'btn-secondary -mint -small'  %>
        <% end %>
        <div class="btn-group">
          <%= link_to "javascript:", data: { jq_dropdown: "#room-state-update-dropdown" }, class: "btn-secondary -mint -small -state-#{@room_offer.status}" do %>
            Status: <span><%= t("activerecord.attributes.room_offer.statuses.#{@room_offer.status}") %></span>
          <% end %>
        </div>
        <div id="room-state-update-dropdown" class="jq-dropdown jq-dropdown-tip jq-dropdown-relative jq-dropdown-anchor-right dropdown-container">
          <div class="jq-dropdown-panel">
            <%= link_to 'Aktiv', [:update_status, @room_offer, status: "enabled"], method: :patch %>
            <%= link_to 'Inaktiv', [:update_status, @room_offer, status: "disabled"], method: :patch %>
            <%= link_to 'Voll / Warteliste aktivieren', [:update_status, @room_offer, status: "occupied"], method: :patch %>
            <%= link_to 'Löschen', room_offer_path(@room_offer), data: { confirm: 'Bist du dir sicher?' }, method: :delete %>
{'fraction_non_alphanumeric': 0.17843597616037565, 'fraction_numerical': 0.001083619288423334, 'mean_word_length': 2.7545762711864406, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5991086', 'n_tokens_mistral': 2036, 'n_tokens_neox': 1836, 'n_words': 336}