Commit b41fdcf947b173b601170fc00e6980195b2d1908

Authored by Alexis Koralewski
1 parent 0b53bf85
Exists in dev

fixing home redirection when clicking on the top left text

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/core/pyros_django/monitoring/views.py
... ... @@ -6,7 +6,11 @@ from common.models import AgentCmd
6 6  
7 7  
8 8 def index(request):
9   - return HttpResponse("Hello, world. You're at the polls index.")
  9 + if request.user.is_authenticated:
  10 + # return the initial view (the dashboard's one)
  11 + return render(request, 'dashboard/index.html', {'USER_LEVEL': request.user.user_level.priority, 'base_template' : "base.html"})
  12 + return render(request, 'dashboard/index.html', {'USER_LEVEL': 0, 'base_template' : "base_unlogged.html"})
  13 +
10 14  
11 15  
12 16 def weather_config(request):
... ...