Commit 2e7c86eb authored by Patrick's avatar Patrick

Display the group name on the navbar on small devices

parent 0ee9c266
......@@ -48,7 +48,7 @@
'API': {}
};
var my_app = undefined;
if( typeof angular != "undefined") {
if( typeof angular !== "undefined") {
my_app = angular.module('repanier', ['djng.forms']);
}
</script>
......@@ -61,6 +61,7 @@
<div class="navbar navbar-default navbar-fixed-top navbar-custom" role="navigation">
<div class="container-menu">
<div class="navbar-header">
<p class="navbar-text visible-xs-inline-block">{% repanier_group_name %}</p>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span>
......
......@@ -50,7 +50,7 @@
'API': {}
};
var my_app = undefined;
if( typeof angular != "undefined") {
if( typeof angular !== "undefined") {
my_app = angular.module('repanier', ['djng.forms']);
}
</script>
......@@ -63,6 +63,7 @@
<div class="navbar navbar-default navbar-fixed-top navbar-custom" role="navigation">
<div class="container-menu">
<div class="navbar-header">
<p class="navbar-text visible-xs-inline-block">{% repanier_group_name %}</p>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span>
......
......@@ -20,6 +20,12 @@ def repanier_home(*args, **kwargs):
return REPANIER_SETTINGS_HOME_SITE
@register.simple_tag(takes_context=False)
def repanier_group_name(*args, **kwargs):
from repanier.apps import REPANIER_SETTINGS_GROUP_NAME
return REPANIER_SETTINGS_GROUP_NAME
@register.simple_tag(takes_context=True)
def repanier_user(context, *args, **kwargs):
from repanier.apps import REPANIER_SETTINGS_INVOICE, REPANIER_SETTINGS_DISPLAY_WHO_IS_WHO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment