From e93062f3d8d2217a79bbc0232bf86c2f0a0786b6 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sun, 24 Feb 2013 01:14:16 +0800 Subject: [PATCH] add pagination for meetings list --- .../bbb/locale/zh_CN/LC_MESSAGES/django.mo | Bin 3603 -> 3659 bytes .../bbb/locale/zh_CN/LC_MESSAGES/django.po | 10 ++++++++-- bbb_django/bbb/templates/meetings.html | 6 ++++++ bbb_django/settings.py | 2 ++ requirements.txt | 1 + 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/bbb_django/bbb/locale/zh_CN/LC_MESSAGES/django.mo b/bbb_django/bbb/locale/zh_CN/LC_MESSAGES/django.mo index 9d0b44e6abe3c3c07fdd3b97e023d5556be63739..feea84aaa215e54a7de9e62e37e942827fafacf4 100644 GIT binary patch delta 1169 zcmXZbO-NKx6u|L2%~MBb##FMj(ZWyy6|8JBCuvg{LRPpCEh@nz6tWMsq`(2A60N}A zxG2F&szD+vC#BGYh#(4DMA0Ish0ds;v@s}g(f{Om%zeLm?#HhreiD0#BL;qxrwZ8Lh5bw5Dy?f^H?3h1magH{clhf{)BG)rtuUu63=4->zit3 z$wJ348&BXS?8IDrh~@YJGcc8`k~m*2#zf*WB&R9IRIEff$Z>72M}DS>7pY7OdRX6F z(vB`nBkn~x@dIri!hOUe8ZV(NNS)Dg)|N$YnvA+^C#Whza)I8 z13qiVPc^14X#b+>V3H(CMwy?%>j36yd#kp0;2PR{)O#o!8pS>MUhZE8c)TkKbJPNq z9r}^6rcA9+tF^ygZBox_f4h1GkO`0WMfy2PEtKFSu`Yn5bfr?!ETM=7EdQr1#R?W0za zW1D@$+UO{@pIAQcR$AqckxvOkzFJS6R&zspt9{v3ta|JS~o@)SwR<}fpj6t6rzZTh(755xaY9<{Lb?{@7H;cPKMl2?o+@X zG+Z%Sh&E#x(}s6F+_K? zvA)S@p%VkdXEnZvN#biL6MsN2&Y($Kjiwx~(1r_~I~(RXV7Jhl?&G=7OP|0K$~(=mOR)efIgcKjWsV;TP|e8Q#g z)rc}kuHEi?&t7Yn>$lf0rGn(5ZoS=9-N4gk+7?=bR!3V$YjXSSh_%xlvBQ>e-`YX{ z4zluxznvB<{IH*R+~JD$f~T@-SvcNxDt@~6WV|<Welcome to the Django BigBlueButton web conferencing server. If you are " "here to attend a webinar then you should have been issued a URL to log into " "the meeting.

" -msgstr "

欢迎使用BigBlueButton视频会议系统请登陆后继续使用

" +msgstr "

欢迎使用涛悦视频会议系统,请登陆后继续使用

" #: templates/join.html:5 templates/join.html.py:10 msgid "Join meeting" @@ -198,7 +198,7 @@ msgstr "结束会议" #: templates/meetings.html:20 msgid "Playback" -msgstr "会议录制" +msgstr "录制回放" #: templates/meetings.html:22 msgid "Ended" @@ -329,3 +329,9 @@ msgstr "会议管理" #~ msgid "info" #~ msgstr "其他信息" + +msgid "previous" +msgstr "上页" + +msgid "next" +msgstr "下页" diff --git a/bbb_django/bbb/templates/meetings.html b/bbb_django/bbb/templates/meetings.html index 69cc78f..142a6b6 100644 --- a/bbb_django/bbb/templates/meetings.html +++ b/bbb_django/bbb/templates/meetings.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load pagination_tags %} + {% load i18n %} @@ -8,6 +10,7 @@

{% trans "Meetings" %}

{% if meetings %}
    + {% autopaginate meetings 2 %} {% for meeting in meetings %}
  • @@ -40,8 +43,11 @@

    {% trans "Meetings" %}

  • {% endfor %} +
    + {% paginate %}
{% else %}

{% trans "There are no meetings at the moment." %}

{% endif %} {% endblock %} + diff --git a/bbb_django/settings.py b/bbb_django/settings.py index 54928cf..658973d 100644 --- a/bbb_django/settings.py +++ b/bbb_django/settings.py @@ -84,6 +84,7 @@ 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'pagination.middleware.PaginationMiddleware', ) AUTHENTICATION_BACKENDS = ( @@ -125,6 +126,7 @@ 'django.contrib.admin', 'bbb', 'south', + 'pagination', #'gunicorn', ) diff --git a/requirements.txt b/requirements.txt index 562dd4f..6ba8d42 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ flup South pytz icalendar +django-pagination