Skip to content

Commit

Permalink
SUBMENU_ICONS_DISPLAY option was removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
stasosovskyi committed Mar 13, 2017
1 parent 1c0edf7 commit c926750
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions arctic/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_context_data(self, **kwargs):
context['page_title'] = self.get_page_title()
context['page_description'] = self.get_page_description()
context['menu'] = menu(user=self.request.user, request=self.request)
context['SUBMENU_ICONS_DISPLAY'] = self.get_submenu_icons_display()
context['urls'] = self.get_urls()
context['breadcrumbs'] = self.get_breadcrumbs()
context['tabs'] = self.get_tabs()
Expand Down Expand Up @@ -172,9 +171,6 @@ def get_login_url(self):
def get_logout_url(self):
return reverse(getattr(settings, 'LOGOUT_URL', 'logout'))

def get_submenu_icons_display(self):
return getattr(settings, 'SUBMENU_ICONS_DISPLAY', False)


class TemplateView(View, base.TemplateView):
pass
Expand Down
4 changes: 1 addition & 3 deletions arctic/templates/arctic/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{% for sub_key, sub_value in value.submenu.items %}
<li id="menu-{{ sub_value.url|slugify }}">
<a {% if sub_value.active %}class="active" {% endif %} href="{% url sub_value.url %}">
{% if SUBMENU_ICONS_DISPLAY %}
<i class="fa {{ sub_value.icon|default_if_none:'' }}"></i>
{% endif %}
<i class="fa {{ sub_value.icon|default_if_none:'' }}"></i>
{% trans sub_key %}
</a>
</li>
Expand Down

0 comments on commit c926750

Please sign in to comment.