Updated widget titel and icons.
This commit is contained in:
parent
15ab01c9d1
commit
2bf992117c
@ -659,7 +659,7 @@ def register_tab(request):
|
||||
def get_widgets(request):
|
||||
return [
|
||||
Widget(
|
||||
name=_('Assignments'),
|
||||
name='assignments',
|
||||
template='assignment/widget.html',
|
||||
context={'assignments': Assignment.objects.all()},
|
||||
permission_required='assignment.can_manage_assignment')]
|
||||
|
@ -46,7 +46,8 @@
|
||||
{% for name, widget in widgets.items %}
|
||||
{% if widget.default_column == 1 %}
|
||||
<div class="widget" id="widget_{{ widget.get_name }}">
|
||||
<div class="widget-header"><i class="icon-star"></i>
|
||||
<div class="widget-header">
|
||||
<i class="{% if widget %}icon-{{widget.name}}{% else %}icon-star{% endif %}"></i>
|
||||
<h3>{% trans widget.get_title %}</h3>
|
||||
</div>
|
||||
<div class="widget-content">
|
||||
|
@ -401,7 +401,7 @@ def get_widgets(request):
|
||||
context.update(csrf(request))
|
||||
widgets.append(Widget(
|
||||
name='overlays',
|
||||
display_name=_('Manage Overlays'),
|
||||
display_name=_('Overlays'),
|
||||
template='projector/overlay_widget.html',
|
||||
permission_required='projector.can_manage_projector',
|
||||
default_column=2,
|
||||
@ -414,7 +414,7 @@ def get_widgets(request):
|
||||
'welcomepage_is_active': not bool(config["presentation"])}
|
||||
widgets.append(Widget(
|
||||
name='custom_slide',
|
||||
display_name=_('Custom Slide'),
|
||||
display_name=_('Custom Slides'),
|
||||
template='projector/custom_slide_widget.html',
|
||||
context=context,
|
||||
permission_required='projector.can_manage_projector',
|
||||
|
@ -209,13 +209,13 @@ form .required label:after {
|
||||
.icon-agenda {
|
||||
background-position: -264px 0;
|
||||
}
|
||||
.icon-application {
|
||||
.icon-application, .icon-applications {
|
||||
background-position: -24px -24px;
|
||||
}
|
||||
.icon-assignment {
|
||||
.icon-assignment, .icon-assignments {
|
||||
background-position: -144px -72px;
|
||||
}
|
||||
.icon-participant {
|
||||
.icon-participant, .icon-participants {
|
||||
background-position: -168px 0;
|
||||
}
|
||||
.icon-config {
|
||||
|
Loading…
Reference in New Issue
Block a user