aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/base.html
blob: ee60feab677755c88ab31646dc346251a0c28f33 (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
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta application-name="GeneNetwork Quality-Control Application" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    {%block extrameta%}{%endblock%}

    <title>GN Uploader: {%block title%}{%endblock%}</title>

    <link rel="stylesheet" type="text/css"
	  href="{{url_for('base.bootstrap',
                filename='css/bootstrap.min.css')}}" />
    <link rel="stylesheet" type="text/css"
	  href="{{url_for('base.bootstrap',
                filename='css/bootstrap-theme.min.css')}}" />


    <link rel="shortcut icon" type="image/png" sizes="64x64"
	  href="{{url_for('static', filename='images/CITGLogo.png')}}" />

    <link rel="stylesheet" type="text/css" href="/static/css/custom-bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/styles.css" />

    {%block css%}{%endblock%}
  </head>

  <body>
    <div class="navbar navbar-inverse navbar-static-top pull-left"
         role="navigation"
         style="width: 100%;min-width: 850px;white-space: nowrap;">
      <div class="container-fluid" style="width: 100%">
        <ul class="nav navbar-nav">
          <li><a href="/" style="font-weight: bold">GN Uploader</a></li>
          <li>
            <a href="{{gn2server_uri()}}">GeneNetwork</a>
          </li>
        </ul>
        <ul class="nav navbar-nav" style="margin-left: 2em;">
          <li>
            {%if user_logged_in()%}
            <a href="{{url_for('oauth2.logout')}}"
               title="Log out of the system">Log Out</a>
            {%else%}
            <a href="{{authserver_authorise_uri()}}"
               title="Log in to the system">Log In</a>
            {%endif%}
          </li>
        </ul>
      </div>
    </div>
    <div class="container">
      {%block contents%}{%endblock%}
    </div>

    <script src="{{url_for('base.jquery',
                 filename='jquery.min.js')}}"></script>
    <script src="{{url_for('base.bootstrap',
                 filename='js/bootstrap.min.js')}}"></script>
    {%block javascript%}{%endblock%}
  </body>
</html>