commit
bddf011f6e
@ -231,4 +231,4 @@ def get_widgets(request):
|
|||||||
context={
|
context={
|
||||||
'agenda': SLIDE['agenda'],
|
'agenda': SLIDE['agenda'],
|
||||||
'items': Item.objects.all()},
|
'items': Item.objects.all()},
|
||||||
permission_required='agenda.can_manage_agenda')]
|
permission_required='projector.can_manage_projector')]
|
||||||
|
@ -293,7 +293,7 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin):
|
|||||||
self.yesnoabstain = True
|
self.yesnoabstain = True
|
||||||
else:
|
else:
|
||||||
# candidates <= available posts -> yes/no/abstain
|
# candidates <= available posts -> yes/no/abstain
|
||||||
if self.assignment.assignment_candidats.filter(elected=False).count() <= (self.assignment.posts):
|
if len(self.assignment.candidates) <= (self.assignment.posts - len(self.assignment.elected)):
|
||||||
self.yesnoabstain = True
|
self.yesnoabstain = True
|
||||||
else:
|
else:
|
||||||
self.yesnoabstain = False
|
self.yesnoabstain = False
|
||||||
|
@ -678,4 +678,4 @@ def get_widgets(request):
|
|||||||
display_name=_('Elections'),
|
display_name=_('Elections'),
|
||||||
template='assignment/widget.html',
|
template='assignment/widget.html',
|
||||||
context={'assignments': Assignment.objects.all()},
|
context={'assignments': Assignment.objects.all()},
|
||||||
permission_required='assignment.can_manage_assignment')]
|
permission_required='projector.can_manage_projector')]
|
||||||
|
@ -928,4 +928,4 @@ def get_widgets(request):
|
|||||||
display_name=_('Motions'),
|
display_name=_('Motions'),
|
||||||
template='motion/widget.html',
|
template='motion/widget.html',
|
||||||
context={'motions': Motion.objects.all()},
|
context={'motions': Motion.objects.all()},
|
||||||
permission_required='motion.can_manage_motion')]
|
permission_required='projector.can_manage_projector')]
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
|
|
||||||
<h2>{% trans "Groups" %}</h2>
|
<h2>{% trans "Groups" %}</h2>
|
||||||
<p>
|
<p>
|
||||||
{% for group in shown_user.groups.all %}
|
{% if shown_user.groups.all %}
|
||||||
{{ group }},
|
{{ shown_user.groups.all|join:", " }}
|
||||||
{% empty %}
|
{% else %}
|
||||||
{% trans "The participant is not member of any group." %}
|
{% trans "The participant is not member of any group." %}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if shown_user.get_gender_display %}
|
{% if shown_user.get_gender_display %}
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
<div id='sidebar'>
|
<div id='sidebar'>
|
||||||
<div class='box'>
|
<div class='box'>
|
||||||
<p><strong>{% trans "Groups" %}</strong><br />
|
<p><strong>{% trans "Groups" %}</strong><br />
|
||||||
{% for group in shown_user.groups.all %}
|
{% if shown_user.groups.all %}
|
||||||
{{ group }},
|
{{ shown_user.groups.all|join:", " }}
|
||||||
{% empty %}
|
{% else %}
|
||||||
{% trans "The participant is not member of any group." %}
|
{% trans "The participant is not member of any group." %}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if shown_user.get_gender_display %}
|
{% if shown_user.get_gender_display %}
|
||||||
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
|
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls.defaults import patterns, url, include
|
from django.conf.urls.defaults import patterns, url, include
|
||||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||||
from django.core.urlresolvers import reverse_lazy
|
|
||||||
from django.shortcuts import redirect
|
from django.shortcuts import redirect
|
||||||
from django.utils.importlib import import_module
|
from django.utils.importlib import import_module
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ handler500 = 'openslides.utils.views.server_error'
|
|||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Redirect to dashboard URL
|
# Redirect to dashboard URL
|
||||||
url(r'^$', RedirectView.as_view(url=reverse_lazy('dashboard')), name='home',),
|
url(r'^$', RedirectView.as_view(url='dashboard'), name='home',),
|
||||||
|
|
||||||
(r'^agenda/', include('openslides.agenda.urls')),
|
(r'^agenda/', include('openslides.agenda.urls')),
|
||||||
(r'^motion/', include('openslides.motion.urls')),
|
(r'^motion/', include('openslides.motion.urls')),
|
||||||
|
Loading…
Reference in New Issue
Block a user