Files @ 0d4dfe2122fe
Branch filter:

Location: kallithea/kallithea/templates/admin/notifications/notifications_data.html

Mads Kiilerich
style: use span for notifications

Based on Bootstrap work by Dominik Ruf.

%if c.notifications:
<%
unread = lambda n:{False:'unread'}.get(n)
%>

<div class="notification-list notification-table">
%for notification in c.notifications:
  <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}">
    <div class="notification-header">
      ${h.gravatar_div(notification.notification.created_by_user.email, size=24)}
      <span class="desc ${unread(notification.read)}">
        <a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a>
      </span>
      <span class="delete-notifications">
        <span id="${notification.notification.notification_id}" class="delete-notification"><i class="icon-minus-circled" style="color: #b94a48; padding: 2px;"></i></span>
      </span>
      %if not notification.read:
      <span class="read-notifications">
        <span id="${notification.notification.notification_id}" class="read-notification"><i class="icon-ok" style="color: #4CBB17; padding: 2px;"></i></span>
      </span>
      %endif
    </div>
    <div class="notification-subject"></div>
  </div>
%endfor
</div>

<ul class="pagination">
    ${c.notifications.pager(controller='admin/notifications', **request.GET.mixed())}
</ul>

%else:
    <div class="table">${_('No notifications here yet')}</div>
%endif