for pull request #23: Removed "You have access to apps" code from welcome widget.
This commit is contained in:
parent
51a762b4c6
commit
d9fbfeff84
@ -4,10 +4,3 @@
|
||||
{% if welcometext %}
|
||||
<p>{{ welcometext|safe|linebreaks }}</p>
|
||||
{% endif %}
|
||||
|
||||
<p>{% trans "You have access to the following pages:" %}</p>
|
||||
<ul>
|
||||
{% for app in apps %}
|
||||
<li><a href="{{ app.url }}">{{ app.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -390,17 +390,7 @@ def get_widgets(request):
|
||||
widgets = []
|
||||
|
||||
# welcome widget
|
||||
apps = []
|
||||
for app in settings.INSTALLED_APPS:
|
||||
try:
|
||||
mod = import_module(app + '.views')
|
||||
tab = mod.register_tab(request)
|
||||
except (ImportError, AttributeError):
|
||||
continue
|
||||
if tab.permission:
|
||||
apps.append(tab)
|
||||
context = {
|
||||
'apps': apps,
|
||||
'welcometext': config['frontpage_welcometext']}
|
||||
widgets.append(Widget(
|
||||
name='welcome',
|
||||
|
Loading…
Reference in New Issue
Block a user