summaryrefslogtreecommitdiff
path: root/static/website/templates/navbar.html
blob: 89a65e020baa0d89a5122f12b1a875770db4d046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

{% load static %}
<!-- Navigation -->
{% block nav %}
    <nav id="site-nav" class="navbar navbar-fixed-top navbar-custom">
        <div class="container">
            <div class="navbar-header">

                <!-- logo -->
                <div class="site-branding">
                    <a class="logo" href="{{SITE_URL}}">
                        
                        <!-- logo image  -->
                        <!-- <img src="{% static 'website/bootstrap-css/assets/images/logo.png' %}" class="img-fluid" style="max-width: 10%;" alt="Logo"> -->

                        NCCPS 2018
                    </a>
                </div>

                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-items" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>

            </div><!-- /.navbar-header -->

            <div class="collapse navbar-collapse" id="navbar-items">
                <ul class="nav navbar-nav navbar-right">

                    <!-- navigation menu -->
                    <li class="active"><a data-scroll href="{{SITE_URL}}/#about">About</a></li>
                    <li><a data-scroll href="{{SITE_URL}}/#speakers">Speakers</a></li>
                    <li><a data-scroll href="{{SITE_URL}}/#workshops">Workshops</a></li>
                    <li><a data-scroll href="{{SITE_URL}}/#registration">Register</a></li>
                    <li><a href="{% url 'website:jobfair' %}"><img src="{% static 'website/bootstrap-css/assets/images/jobfair.gif' %}"></a></li>
                   <!-- <li><a data-scroll href="{{SITE_URL}}/#submit">CFP</a></li>
                    <li><a data-scroll href="{{SITE_URL}}/#coc">C0C</a></li> -->
                    <li><a data-scroll href="{{SITE_URL}}/#schedule">Schedule</a></li>
                    
                    <!-- <li><a data-scroll href="{{SITE_URL}}/#location">Venue</a></li> -->
                    <!--<li><a data-scroll href="{{SITE_URL}}/#organiser">Organiser</a></li> 
                    <li><a data-scroll href="{{SITE_URL}}/#contact-us">Contact Us</a></li> -->
                    <li><a href="{% url 'website:dwsimquiz' %}">DWSIM QUIZ</a></li>
                    
                    <li><a href="{% url 'website:cfp' %}">cfp</a></li>
                    {% if user.is_authenticated %}
                      <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'auth:login' %}" >
                            <i class="fa fa-user" aria-hidden="true"></i>
                        {{ user.username }}!<span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- <li><a href="{% url 'website:proposal' %}">Submit your Paper</a></li> -->
                            {% if request.user.is_staff %}
                                <li><a href="{% url 'website:question_list' %}">View Questions</a></li>
                            {% else %}
                                <!--<li><a href="{% url 'website:proposal' %}">Submit your Paper</a></li> -->
                                <!-- <li><a href="{% url 'website:quiz_intro' %}">Take Quiz</a></li> -->
                                <li><a href="{% url 'website:view_solutions' %}">View Solutions</a></li>
                            {% endif %}
                            <!-- <li><a href="{{SITE_URL}}/#registration">Book your Ticket</a></li> -->    
                            <li><a href="{% url 'auth:logout' %}?next=/nccps-2018"><i class="fa fa-sign-out"></i>&nbsp;Logout</a></li>
                        </ul>
                      </li>
                    
                        {% else %}
                     
                     <li><a href="{% url 'auth:login' %}">Login</a></li>
                    {% endif %}
                </ul>
            </div>
        </div><!-- /.container -->
        
    </nav>
{% endblock %}