summaryrefslogtreecommitdiff
path: root/fossee_manim/templates
diff options
context:
space:
mode:
authorSharanya A2019-07-11 09:36:20 +0530
committerSharanya A2019-07-11 09:36:20 +0530
commit3d9449c79ba4437934e1fa226c5fc4c73dc7b790 (patch)
tree5c2fc6ba1dd11aee35080d269374c5907011d94a /fossee_manim/templates
parent8dd58d6521c59a8b228b594de83f4f9edf2942cc (diff)
downloadFOSSEE_animations-3d9449c79ba4437934e1fa226c5fc4c73dc7b790.tar.gz
FOSSEE_animations-3d9449c79ba4437934e1fa226c5fc4c73dc7b790.tar.bz2
FOSSEE_animations-3d9449c79ba4437934e1fa226c5fc4c73dc7b790.zip
Removed commented redundant code
Diffstat (limited to 'fossee_manim/templates')
-rw-r--r--fossee_manim/templates/fossee_manim/base.html58
1 files changed, 20 insertions, 38 deletions
diff --git a/fossee_manim/templates/fossee_manim/base.html b/fossee_manim/templates/fossee_manim/base.html
index 60c5982..0504fe9 100644
--- a/fossee_manim/templates/fossee_manim/base.html
+++ b/fossee_manim/templates/fossee_manim/base.html
@@ -26,7 +26,7 @@
<body>
{% block header %}
<nav class="navbar navbar-expand-lg navbar-light row bck_clr fixed-top" style="background-color:#222222; padding-top: 20px; padding-bottom: 20px;">
- <a class="navbar-brand" href="#">
+ <a class="navbar-brand" href="{% url 'index' %}">
<img src="{{ URL_ROOT }}/static/img/logo_main.png" width="150" height="33.75" alt="" style="margin-right: 50px; margin-left: 20px">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
@@ -43,51 +43,33 @@
<ul class="navbar-nav ml-md-auto">
<li class="nav-item dropdown">
+ {% if user.is_authenticated %}
+ <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="color:white"> {{user.first_name}}</a>
+ <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
+ {% if request.user.profile.position == 'contributor' %}
+ <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a>
+ {% else %}
+ <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a>
+ {% endif %}
+ <div class="dropdown-divider">
+ </div>
+ <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
+ <div class="dropdown-divider">
+ </div>
+ <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
+ </div>
+ {% else %}
<a class="nav-link dropdown-toggle" href="http://example.com" id="navbarDropdownMenuLink" data-toggle="dropdown" style="color:white">Login / Register</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'login' %}">Login</a>
- <div class="dropdown-divider">
+ <div class="dropdown-divider">
</div>
- <a class="dropdown-item" href="register">Register</a>
+ <a class="dropdown-item" href="{% url 'register' %}">Register</a>
</div>
+ {% endif %}
</li>
</ul>
</div>
- <!-- {% if user.is_authenticated %}
- <ul class="navbar-nav ml-auto mr-5">
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- {{user.first_name}}
- </a>
- {% if request.user.profile.position == 'contributor' %}
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{% url 'guidelines' %}">Guidelines</a>
- <a class="dropdown-item" href="{% url 'send_proposal' %}">Send Proposal</a>
- <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a>
- <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
- <a class="dropdown-item" href="{% url 'honorarium' %}">Honorarium</a>
- <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
- </div>
- {% else %}
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a>
- <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
- <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
- </div>
- {% endif %}scroll
- </li>
- </ul>
- {% else %}
- <ul class="navbar-nav ml-auto">
- <li class="nav-item">
- <a class="nav-link" href="{% url 'register' %}">Register</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="{% url 'login' %}">Login</a>
- </li>
- </ul>
- {% endif %}
- </div> -->
</nav>
<div class="jumbotron sticky-top" style="padding-top: 90px; padding-bottom: 0.2%; margin-bottom: 0px; color:#dddddd">
<div class="btn-group btn-group-lg" role="group">