view gpp/templates/messages/inbox_tab.html @ 481:9f888dbe61ce

Fixing #230; add a scrollbar to the PM popup dialog if necessary. This wasn't as easy as I thought. Had to wrap the PM text in a div with its styling (max-height and overflow). If I then resized the dialog, I'd get two scrollbars. So for now, made the dialog non-resizable.
author Brian Neal <bgneal@gmail.com>
date Fri, 07 Oct 2011 02:11:33 +0000
parents 76ba9478ebbd
children 7cec8d6f9581
line wrap: on
line source
{% load url from future %}
{% if messages %}
<ul class="user-messages">
   {% for msg in messages %}
      <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li>
   {% endfor %}
</ul>
{% endif %}
{% if msgs.object_list %}
   <form action="." onsubmit="return bulkMsgAction(this, 'delete');">
   <table class="messages">
   <tr>
      <th>From</th>
      <th>Subject</th>
      <th>Date</th>
      <th><input type="checkbox" onclick="tabMasterCheckClick(this, 'inbox_ids');" /></th>
   </tr>
   {% for msg in msgs.object_list %}
   <tr>
      <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}">
         {{ msg.sender.username }}</a></td>
      <td>
         <a href="#" onclick="msgShow(this, {{ msg.id }}); return false;"
            class="{% if msg.unread %}unread {% endif %}{% if msg.replied_to %}replied_to{% endif %}">{{ msg.subject }}</a>
         </td>
      <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td>
      <td><input type="checkbox" name="inbox_ids" value="{{ msg.id }}" /></td>
   </tr>
   {% endfor %}
   <tr><td colspan="4"><input type="submit" value="Delete Checked Messages" /></td></tr>
   </table>
   </form>
   {% include "messages/pagination.html" %}
   <ul>
      <li>Messages in <strong>bold</strong> are unread.</li>
      <li>Messages in <em>italics</em> have been replied to.</li>
   </ul>
{% else %}
   <p><em>Your Inbox is empty.</em></p>
{% endif %}