<commit_before><script type="text/x-handlebars" id="index">
  <div class="left-panel-wrapper" {{bind-attr class="isLeftMenuOpen"}}>
    <div class="left-panel">
      <div class="app-name">
        Mogo Chat
        <div class="logout">
          {{#link-to "logout"}}
            <img src="/static/assets/logout.png" alt="Logout" title="Logout"/>
          {{/link-to}}
        </div>
      </div>

      <div class="user-details">
        Hello {{#link-to "user.edit" currentUser class}}{{currentUser.firstName}}{{/link-to}} ~!
      </div>

      <div class="rooms">
        <div class="title">Rooms</div>
        <ul>
          {{#each room_user_state in controller}}
            <li {{bind-attr class="room_user_state.joined:joined"}}>
              <a {{action "join" this}}>{{room_user_state.room.name}}</a>
            </li>
          {{/each}}
        </ul>
      </div>

      {{#if currentUser.isAdmin}}
        <div class="navigation">
          <div class="title">Manage</div>
          <ul>
            <li>{{#link-to "rooms"}}Rooms{{/link-to}}</li>
            <li>{{#link-to "users"}}Users{{/link-to}}</li>
          </ul>
        </div>
      {{/if}}

    </div>
  </div>


  <div class="room-content" {{bind-attr class="isLeftMenuOpen:move-content-right isRightMenuOpen:move-content-left"}}>
    {{#unless activeState}}
      <div>
        [[#TODO This needs to be changed to a better message]]
        ACTIVE CHANNEL ID NOT SET: {{activeState}}
      </div>
    {{else}}
      <div class="room-info">
        <div class="left-menu-control" {{action "toggleLeftMenu"}}>
          <img src="/static/assets/navicon.png"/>
        </div>
        {{activeState.room.name}}
        <div class="right-menu-control" {{action "toggleRightMenu"}}>
          <img src="/static/assets/users.png"/>
        </div>
      </div>

      {{view App.RoomMessagesView}}

      {{view App.NewMessageView}}
    {{/unless}}
  </div>


  <div class="room-details-wrapper"  {{bind-attr class="isRightMenuOpen"}}>
    <div class="room-details">
      <div class="active-users">
        <div class="title">Users in room</div>

        <ul>
          {{#each user in activeState.room.users}}
            <li {{bind-attr style="user.borderStyle"}}>{{user.firstName}} {{user.lastName}}</li>
          {{/each}}
        </ul>
      </div>
    </div>
  </div>
</script>


<script type="text/x-handlebars" id="room-messages">
<div class="messages">
  {{#if activeState.room.isHistoryAvailable}}
    <div class="load-messages" {{action "loadHistory"}}>Load history...</div>
  {{/if}}
  {{#each message in activeState.room.messages}}
    <div class="message">
      <div class="content">
        <span class="user" {{bind-attr style="message.user.fontColor"}}>{{message.user.firstName}}</span>:
        {{message.body}}
      </div>
      <div class="timestamp"><span>{{readableTime message.createdAt}}</span></div>
    </div>
  {{/each}}
</div>
</script>


<script type="text/x-handlebars" id="new-message">
  <textarea placeholder="Message..."></textarea>
</script>

<script type="text/x-handlebars" id="settings">
  <div class="left-panel-wrapper">
    <div class="left-panel">
      <div class="app-name">
        Mogo Chat
        <div class="logout">
          {{#link-to "logout"}}
            <img src="/static/assets/logout.png" alt="Logout" title="Logout"/>
          {{/link-to}}
        </div>
      </div>

      <div class="user-details">
        Hello {{#link-to "user.edit" currentUser class}}{{currentUser.firstName}}{{/link-to}} ~!
      </div>

      <div class="back-to-chat">{{#link-to "index"}}Back to chat{{/link-to}}</div>

      {{#if currentUser.isAdmin}}
        <div class="navigation">
          <div class="title">Manage</div>
          <ul>
            <li>{{#link-to "rooms"}}Rooms{{/link-to}}</li>
            <li>{{#link-to "users"}}Users{{/link-to}}</li>
          </ul><commit_msg>Fix link-to for account settings<commit_after><script type="text/x-handlebars" id="index">
  <div class="left-panel-wrapper" {{bind-attr class="isLeftMenuOpen"}}>
    <div class="left-panel">
      <div class="app-name">
        Mogo Chat
        <div class="logout">
          {{#link-to "logout"}}
            <img src="/static/assets/logout.png" alt="Logout" title="Logout"/>
          {{/link-to}}
        </div>
      </div>

      <div class="user-details">
        Hello {{#link-to "user.edit" currentUser}}{{currentUser.firstName}}{{/link-to}} ~!
      </div>

      <div class="rooms">
        <div class="title">Rooms</div>
        <ul>
          {{#each room_user_state in controller}}
            <li {{bind-attr class="room_user_state.joined:joined"}}>
              <a {{action "join" this}}>{{room_user_state.room.name}}</a>
            </li>
          {{/each}}
        </ul>
      </div>

      {{#if currentUser.isAdmin}}
        <div class="navigation">
          <div class="title">Manage</div>
          <ul>
            <li>{{#link-to "rooms"}}Rooms{{/link-to}}</li>
            <li>{{#link-to "users"}}Users{{/link-to}}</li>
          </ul>
        </div>
      {{/if}}

    </div>
  </div>


  <div class="room-content" {{bind-attr class="isLeftMenuOpen:move-content-right isRightMenuOpen:move-content-left"}}>
    {{#unless activeState}}
      <div>
        [[#TODO This needs to be changed to a better message]]
        ACTIVE CHANNEL ID NOT SET: {{activeState}}
      </div>
    {{else}}
      <div class="room-info">
        <div class="left-menu-control" {{action "toggleLeftMenu"}}>
          <img src="/static/assets/navicon.png"/>
        </div>
        {{activeState.room.name}}
        <div class="right-menu-control" {{action "toggleRightMenu"}}>
          <img src="/static/assets/users.png"/>
        </div>
      </div>

      {{view App.RoomMessagesView}}

      {{view App.NewMessageView}}
    {{/unless}}
  </div>


  <div class="room-details-wrapper"  {{bind-attr class="isRightMenuOpen"}}>
    <div class="room-details">
      <div class="active-users">
        <div class="title">Users in room</div>

        <ul>
          {{#each user in activeState.room.users}}
            <li {{bind-attr style="user.borderStyle"}}>{{user.firstName}} {{user.lastName}}</li>
          {{/each}}
        </ul>
      </div>
    </div>
  </div>
</script>


<script type="text/x-handlebars" id="room-messages">
<div class="messages">
  {{#if activeState.room.isHistoryAvailable}}
    <div class="load-messages" {{action "loadHistory"}}>Load history...</div>
  {{/if}}
  {{#each message in activeState.room.messages}}
    <div class="message">
      <div class="content">
        <span class="user" {{bind-attr style="message.user.fontColor"}}>{{message.user.firstName}}</span>:
        {{message.body}}
      </div>
      <div class="timestamp"><span>{{readableTime message.createdAt}}</span></div>
    </div>
  {{/each}}
</div>
</script>


<script type="text/x-handlebars" id="new-message">
  <textarea placeholder="Message..."></textarea>
</script>

<script type="text/x-handlebars" id="settings">
  <div class="left-panel-wrapper">
    <div class="left-panel">
      <div class="app-name">
        Mogo Chat
        <div class="logout">
          {{#link-to "logout"}}
            <img src="/static/assets/logout.png" alt="Logout" title="Logout"/>
          {{/link-to}}
        </div>
      </div>

      <div class="user-details">
        Hello {{#link-to "user.edit" currentUser}}{{currentUser.firstName}}{{/link-to}} ~!
      </div>

      <div class="back-to-chat">{{#link-to "index"}}Back to chat{{/link-to}}</div>

      {{#if currentUser.isAdmin}}
        <div class="navigation">
          <div class="title">Manage</div>
          <ul>
            <li>{{#link-to "rooms"}}Rooms{{/link-to}}</li>
            <li>{{#link-to "users"}}Users{{/link-to}}</li>
          </ul>
{'fraction_non_alphanumeric': 0.2070157470234285, 'fraction_numerical': 0.0, 'mean_word_length': 2.4323374340949035, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 199, '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': '4485386', 'n_tokens_mistral': 2618, 'n_tokens_neox': 2541, 'n_words': 465}