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