Rafał Pitoń 11 лет назад
Родитель
Сommit
9269c1ecc0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      docs/developers/user_sites.rst

+ 2 - 2
docs/developers/user_sites.rst

@@ -16,9 +16,9 @@ Each site is associated to instance of special object, :py:class:`misago.users.s
 
 
 .. function:: add_page(link, name, icon=None, after=None, before=None,
-                 	   visibility_condition=None)
+                 	   visibility_condition=None, badge=None)
 
-Adds page to site. ``after`` and ``before`` arguments should be value of other page ``link``. ``visibility_condition`` argument accepts callable that will be called with args passed to ``get_pages`` function on page render to resolve if link to page should be displayed.
+Adds page to site. ``after`` and ``before`` arguments should be value of other page ``link``. ``visibility_condition`` argument accepts callable that will be called with args passed to ``get_pages`` function on page render to resolve if link to page should be displayed. ``badge`` argument should be none or callable that will be called to get button badge, like number of posts on tab.
 
 
 .. function:: get_pages(link, request, profile=None)