summaryrefslogtreecommitdiff
path: root/static/website/templates/base.html
blob: 37cdea7991316481dc5affa8183b0daa482820ae (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{% load compress %}

{% load static %}
<html>
    <head>
        <title>
            {% block title %}
            FOSSEE Forums
            {% endblock %}
        </title>
        {% compress css %}
         <link rel="stylesheet" href="{% static 'website/css/font-awesome.min.css' %}" type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="{% static 'website/css/yamm-min.css' %}" type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="{% static 'website/css/bootstrap.min.css' %}" type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="{% static 'website/slick/slick.css' %}" type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="{% static 'website/css/main.css' %}" type="text/css" media="screen" charset="utf-8" />
        <link rel="stylesheet" href="{% static 'website/css/nice-bar.css' %}" type="text/css" media="screen" charset="utf-8" />
	<link rel="stylesheet" href="{% static 'website/css/login.css' %}" type="text/css" media="screen" charset="utf-8" />
	<link rel="stylesheet" href="{% static 'website/css/theme.blue.css' %}" type="text/css" media="screen" charset="utf-8" />

        {% endcompress %}

	<script src="{% static 'website/js/jquery-1.11.3.min.js' %}"></script>
        <script src="{% static 'website/js/jquery.tablesorter.min.js' %}"></script>
    </head>
    <body>
    <!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NQBKKJ"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NQBKKJ');</script>
<!-- End Google Tag Manager -->
        <div id="page-wrapper">
        <div id="header-wrapper">
            <div id="header-inner">
                <nav class="navbar navbar-default" role="navigation">
                    <div class="container">
                        <!-- Brand and toggle get grouped for better mobile display -->
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                              <span class="sr-only">Toggle navigation</span>
                              <span class="icon-bar"></span>
                              <span class="icon-bar"></span>
                              <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="{% url 'website:home' %}">
                                <img id="logo" src="{% static 'website/images/logo.png' %}">
                                FOSSEE Forums
                            </a>


                        </div> <!-- /.navbar-header -->
                        
                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                            <ul class="nav navbar-nav navbar-right">
                             
                              <li>
                                <a href="{% url 'website:new_question' %}">
                                    <span class="glyphicon glyphicon-pencil"></span> 
                                    Ask Question
                                </a>
                              </li>
                              {% if user.is_authenticated %}
                              <li>
                                    <a href="{% url 'website:user_notifications' user.id %}">
                                        Notifications  
                                        <span class="badge" style="background:#ec0b16; color:#ffffff;">
                                            {% load notify %}
                                            {% notification_count user.id %}
                                        </span>
                                    </a>
                                </li>
                                
                              <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                   <span class="glyphicon glyphicon-user"></span> 
                                   {{ user }}<b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                  <li><a href="{% url 'website:user_questions' user.id %}">My Questions
                                 
                                    </a></li>
                                  <li><a href="{% url 'website:user_answers' user.id %}">My Answers
                                 
                                  </a></li>

				   <li><a href="/accounts/view-profile/{{ user.username }}">My Profile
                                 
                                  </a></li>
                                  <li><a href="{% url 'user_logout' %}">Logout</a></li>
                                </ul>
                              </li> 
                              {% else %}
                              <li>
                                <a href="{% url 'user_login' %}">
                                    <span class="glyphicon glyphicon-user"></span> 
                                    Login
                                </a>
                              </li>
                              {% endif %}
                            </ul>
                        </div> <!-- /.navbar-collapse -->
                  </div> <!-- /.container -->
                </nav>
            </div> <!-- /#header-inner -->

        </div> <!-- /#header-wrapper -->


        
        <div id="content-wrapper" >
            <div id="content-inner" class="container">
                <div id="content" class="col-lg-12 col-md-12 col-sm-12">
                    {% block content %}
                    {% endblock %}
                </div> <!-- /#content -->
            </div> <!-- /#content-inner -->
        </div> <!-- /#content-wrapper -->
        
        <div id="footer-wrapper" class="container">
            <div id="footer-inner" class="col-lg-12 col-md-12 col-sm-12">
                <div class="cc">
                    <a class="cc-logo" rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">
                        <img src="/static/website/images/cc-logo-88x31.png" alt="CC logo">
                    </a> FOSSEE Forum by <a href="http://www.iitb.ac.in" target="_blank">IIT Bombay</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>
                </div> 
            </div> <!-- /#footer-inner -->
        </div> <!-- /#footer-wrapper -->
    </div> <!-- /#page-wrapper -->
        
    {% compress js %}
        <script src="{% static 'website/js/bootstrap.min.js' %}"></script>
        <script src="{% static 'website/slick/slick.min.js' %}"></script>
        <script src="{% static 'website/js/nice-bar.js' %}"></script>
        {% block javascript %}
            <!-- overide with custom javascript -->
        {% endblock %}
    {% endcompress %}
    </body>
</html>