OG Meta and navbar bug fix
This commit is contained in:
		@@ -69,7 +69,7 @@ services:
 | 
				
			|||||||
      - ./src/html:/var/www/html
 | 
					      - ./src/html:/var/www/html
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - ref_test_server
 | 
					      - ref_test_server
 | 
				
			||||||
 | 
					    # command: certonly --webroot --webroot-path=/var/www/html --email vsdomainmanager@gmail.com --agree-tos --no-eff-email -d reftest.vsnt.uk
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
networks:
 | 
					networks:
 | 
				
			||||||
  frontend:
 | 
					  frontend:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,13 +2,13 @@ server {
 | 
				
			|||||||
	listen 80 default_server;
 | 
						listen 80 default_server;
 | 
				
			||||||
	listen [::]:80 default_server;
 | 
						listen [::]:80 default_server;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# listen 443 ssl http2 default_server;
 | 
						listen 443 ssl http2 default_server;
 | 
				
			||||||
	# listen [::]:443 ssl http2 default_server;
 | 
						listen [::]:443 ssl http2 default_server;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    access_log  /var/log/nginx/host.access.log  main;
 | 
					    access_log  /var/log/nginx/host.access.log  main;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	#SSL configuration
 | 
						# SSL configuration
 | 
				
			||||||
	# include	/etc/nginx/ssl.conf;
 | 
						include	/etc/nginx/ssl.conf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# Add index.php to the list if you are using PHP
 | 
						# Add index.php to the list if you are using PHP
 | 
				
			||||||
	index index.html index.htm index.nginx-debian.html;
 | 
						index index.html index.htm index.nginx-debian.html;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
 | 
					<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
        <a href="{{ url_for('admin_views.home') }}" class="navbar-brand mb-0 h1">RefTest | Admin</a>
 | 
					        <a href="{{ url_for('admin_views.home') }}" class="navbar-brand mb-0 h1">RefTest (Beta) | Admin</a>
 | 
				
			||||||
        <button
 | 
					        <button
 | 
				
			||||||
            class="navbar-toggler"
 | 
					            class="navbar-toggler"
 | 
				
			||||||
            type="button"
 | 
					            type="button"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
<meta property="og:locale" content="en_UK" />
 | 
					<meta property="og:locale" content="en_UK" />
 | 
				
			||||||
<meta property="og:type" content="website" />
 | 
					<meta property="og:type" content="website" />
 | 
				
			||||||
<meta property="og:description" content="A web app for taking the Scottish Korfball Association Refereeing Theory Exam on-line." />
 | 
					<meta property="og:description" content="A web app for taking the Scottish Korfball Association Refereeing Theory Exam on-line." />
 | 
				
			||||||
<meta property="og:url" content="{{ url_for(request.endpoint, **request.view_args, _external = True) }}" />
 | 
					<meta property="og:url" content="{{ url_for(request.endpoint, _external = True, **request.view_args) }}" />
 | 
				
			||||||
<meta property="og:site_name" content="Scottish Korfball Association Referee Theory Exam" />
 | 
					<meta property="og:site_name" content="Scottish Korfball Association Referee Theory Exam" />
 | 
				
			||||||
<meta property="og:image" content="{{ url_for('static', filename='favicon.png', _external = True) }}" />
 | 
					<meta property="og:image" content="{{ url_for('static', filename='favicon.png', _external = True) }}" />
 | 
				
			||||||
<meta property="og:image:alt" content="Logo of the SKA Refereeing Exam App" />
 | 
					<meta property="og:image:alt" content="Logo of the SKA Refereeing Exam App" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,7 +15,7 @@ import config
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def create_app():
 | 
					def create_app():
 | 
				
			||||||
    app = Flask(__name__)
 | 
					    app = Flask(__name__)
 | 
				
			||||||
    app.config.from_object(config.TestingConfig())
 | 
					    app.config.from_object(config.ProductionConfig())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    from common.blueprints import cookie_consent
 | 
					    from common.blueprints import cookie_consent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@
 | 
				
			|||||||
        />
 | 
					        />
 | 
				
			||||||
        {% block style %}
 | 
					        {% block style %}
 | 
				
			||||||
        {% endblock %}
 | 
					        {% endblock %}
 | 
				
			||||||
        <title>{% block title %} SKA Referee Test {% endblock %}</title>
 | 
					        <title>{% block title %} SKA Referee Test Beta {% endblock %}</title>
 | 
				
			||||||
        {% include "quiz/components/og-meta.html" %}
 | 
					        {% include "quiz/components/og-meta.html" %}
 | 
				
			||||||
    </head>
 | 
					    </head>
 | 
				
			||||||
    <body class="bg-light">
 | 
					    <body class="bg-light">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark" id="primary-nav">
 | 
					<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark" id="primary-nav">
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
        <a href="javascript:void(0);" class="navbar-brand mb-0 h1">SKA Refereeing Test </a>
 | 
					        <a href="javascript:void(0);" class="navbar-brand mb-0 h1">SKA Refereeing Test (Beta)</a>
 | 
				
			||||||
        <div class="quiz-console w-100" style="display: none;" id="q-topbar">
 | 
					        <div class="quiz-console w-100" style="display: none;" id="q-topbar">
 | 
				
			||||||
            <div class="d-flex justify-content align-middle">
 | 
					            <div class="d-flex justify-content align-middle">
 | 
				
			||||||
                <div class="container d-flex justify-content-center">
 | 
					                <div class="container d-flex justify-content-center">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user