summaryrefslogtreecommitdiff
path: root/fossee_manim/templates/registration/base.html
blob: 495831d9d9eaa5e89492fb9ddfd250294f8b0054 (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
<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>
		{% block title %}
			HomePage
		{% endblock %}
	</title>
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>

  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

    <link rel="stylesheet" href="{{ URL_ROOT }}/static/css/sticky-footer.css" type="text/css" />
    <!-- favicon -->
    <link rel="shortcut icon" type="image/png" href="{{ URL_ROOT}}/"/>
</head>

	<!-- For js/ajax and other related scripts -->
  {% block extra %}
  
	{% endblock %}

<body style="overflow: scroll;">
 {% block header %}
 <nav class="navbar navbar-expand-lg navbar-custom">
        <a class="navbar-brand" href="#">FOSSEE Animations</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" 
        aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon">=</span>
        </button>
      
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
          <ul class="navbar-nav mr-auto">          
          <form class="form-inline" method="POST" action="/search/">
            {% csrf_token %}
            <input class="form-control mr-sm-2" id="sbox" name="sbox" type="search" placeholder="Search" aria-label="Search">
            <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
          </form>
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                Categories
              </a>
              
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                  {% for c in categories %}
                <a class="dropdown-item" href="{% url 'search_category' c.name %}">{{c.name}}</a>        
                {% endfor %}
              </div>
            </li>
          </ul>

          {% 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 'how_to' %}">How To</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 '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 %}
            </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>
  {% endblock %}

    {% block content %}
    <br><br>
		<h1>Base Template Content. Please override me</h1>
	{% endblock %}
	
</body>
<br>
</html>