{% extends g.theme.master %}
{% import "forgechat:templates/chat/chat_lib.html" as clib %}

{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}}{% endblock %}

{% block header %}{{c.project.name}} / {{c.app.config.options.mount_label}}{% endblock %}

{% block content %}
  {{ clib.checkout_info(c.app) }}
  <h2>Log for {{day.strftime('%Y-%m-%d')}}</h2>
  <div class="grid-19">
    <a href="{{prev}}">Earlier</a>...
    <a href="{{next}}">Later</a>
  </div>
  <div style='clear:both'></div>
  <ul style='list-style:none'>
    {% for msg in messages %}
    <li id="{{msg._id}}">
      <div style='float:left'>
        <div style='float:left'>
          <div
            style='float:left;width:6em;overflow:hidden;font-weight:bold'>
            {{msg.timestamp_hour}}
          </div>
          <div style='margin-left:6.5em;width:6em;overflow:hidden'>
            {{msg.sender_short}}
          </div>
        </div>
        <div style='margin-left:13em'>{{g.markdown.convert(msg.text) | safe}}</div>
      </div>
      <div style='clear:both'></div>
    </li>
    {% endfor %}
  </ul>
{% endblock %}
