unify template
This commit is contained in:
@@ -118,7 +118,7 @@ button a {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#admin-link, #logout-link, #profile-link, #physics-link, #anatomy-link {
|
#admin-link, #logout-link, #profile-link, #physics-link, #anatomy-link, #rapids-link {
|
||||||
float: right;
|
float: right;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,66 +1,16 @@
|
|||||||
{% load static %}
|
{% extends 'base.html' %}
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
{% block title %}
|
||||||
<title>Anatomy</title>
|
Anatomy
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
{% endblock %}
|
||||||
<!-- <link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}"> -->
|
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'css/toastr.min.css' %}">
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
|
||||||
<script src="{% static 'js/toastr.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneMath.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneTools.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWebImageLoader.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWADOImageLoader.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone-base64-image-loader.umd.js' %}"></script>
|
|
||||||
<script src="{% static 'js/anatomy.js' %}" defer="defer" type="module"></script>
|
|
||||||
{% block js %}
|
|
||||||
{% endblock %}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
{% block navigation %}
|
||||||
<div class="page-header">
|
Anatomy -
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<span id="physics-link">
|
<a href="{% url 'anatomy:exam_list' %}">Exams</a> /
|
||||||
<a href="{% url 'physics:index' %}">Physics</a>
|
<a href="{% url 'anatomy:anatomy_question_view' %}">Questions</a> /
|
||||||
</span>
|
<a href="{% url 'anatomy:anatomy_question_create' %}" title="Create a new question">Create Question</a>
|
||||||
<span id="rapids-link">
|
{% endif %}
|
||||||
<a href="{% url 'rapids:index' %}">Rapids</a>
|
{% endblock %}
|
||||||
</span>
|
{% block content %}
|
||||||
<span id="logout-link">
|
{% endblock %}
|
||||||
<a href="{% url 'logout' %}">Logout</a>
|
|
||||||
</span>
|
|
||||||
<span id="profile-link">
|
|
||||||
<a href="{% url 'profile' %}">Profile</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if request.user.is_staff %}
|
|
||||||
<span id="admin-link">
|
|
||||||
<a href="{% url 'admin:index' %}">Admin</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="content container">
|
|
||||||
Anatomy -
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<a href="{% url 'anatomy:exam_list' %}">Exams</a> /
|
|
||||||
<a href="{% url 'anatomy:anatomy_question_view' %}">Questions</a> /
|
|
||||||
<a href="{% url 'anatomy:anatomy_question_create' %}" title="Create a new question">Create Question</a>
|
|
||||||
{% endif %}
|
|
||||||
{% block navigation %}
|
|
||||||
{% endblock %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
{% block content %}
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
{% extends 'anatomy/base.html' %}
|
{% extends 'anatomy/base.html' %}
|
||||||
|
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
|
{{block.super}}
|
||||||
<br/>
|
<br/>
|
||||||
{{exam.name}}-> <a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">Overview</a> / <a href="{% url 'anatomy:mark_overview' pk=exam.pk %}">Mark</a> / <a href="{% url 'anatomy:exam_scores_cid' pk=exam.pk %}">Scores</a>
|
{{exam.name}}-> <a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">Overview</a> / <a href="{% url 'anatomy:mark_overview' pk=exam.pk %}">Mark</a> / <a href="{% url 'anatomy:exam_scores_cid' pk=exam.pk %}">Scores</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -1,65 +1,14 @@
|
|||||||
{% load static %}
|
{% extends 'base.html' %}
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
{% block title %}
|
||||||
<title>Physics</title>
|
Physics
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
{% endblock %}
|
||||||
<!-- <link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}"> -->
|
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'css/toastr.min.css' %}">
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
|
||||||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
|
||||||
<script src="{% static 'js/toastr.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneMath.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneTools.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWebImageLoader.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWADOImageLoader.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone-base64-image-loader.umd.js' %}"></script>
|
|
||||||
<script src="{% static 'js/anatomy.js' %}" defer="defer"></script>
|
|
||||||
{% block js %}
|
|
||||||
{% endblock %}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
{% block navigation %}
|
||||||
<div class="page-header">
|
Physics -
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<span id="anatomy-link">
|
<a href="{% url 'physics:exam_list' %}">Exams</a> /
|
||||||
<a href="{% url 'anatomy:index' %}">Anatomy</a>
|
{% endif %}
|
||||||
</span>
|
{% endblock %}
|
||||||
<span id="rapids-link">
|
{% block content %}
|
||||||
<a href="{% url 'rapids:index' %}">Rapids</a>
|
{% endblock %}
|
||||||
</span>
|
|
||||||
<span id="logout-link">
|
|
||||||
<a href="{% url 'logout' %}">Logout</a>
|
|
||||||
</span>
|
|
||||||
<span id="profile-link">
|
|
||||||
<a href="{% url 'profile' %}">Profile</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if request.user.is_staff %}
|
|
||||||
<span id="admin-link">
|
|
||||||
<a href="{% url 'admin:index' %}">Admin</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="content container">
|
|
||||||
Physics -
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<a href="{% url 'physics:exam_list' %}">Exams</a> /
|
|
||||||
{% endif %}
|
|
||||||
{% block navigation %}
|
|
||||||
{% endblock %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
{% block content %}
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,77 +1,26 @@
|
|||||||
{% load static %}
|
{% extends 'base.html' %}
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
{% block title %}
|
||||||
<title>Rapids</title>
|
Rapids
|
||||||
{% block css %}
|
{% endblock %}
|
||||||
{% endblock %}
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
|
||||||
<link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'css/dicomViewer.css' %}">
|
|
||||||
<link rel="stylesheet" href="{% static 'css/toastr.min.css' %}">
|
|
||||||
|
|
||||||
{% comment %} <script src="{% static 'tagulous/lib/jquery.js' %}"></script>
|
{% block css %}
|
||||||
<script src="{% static 'tagulous/lib/select2-3/select2.min.js' %}"></script>
|
{% endblock %}
|
||||||
<script src="{% static 'tagulous/tagulous.js' %}"></script>
|
|
||||||
<script src="{% static 'tagulous/adaptor/select2-3.js' %}"></script> {% endcomment %}
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneMath.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneTools.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWebImageLoader.min.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstoneWADOImageLoader.js' %}"></script>
|
|
||||||
<script src="{% static 'js/cornerstone/cornerstone-base64-image-loader.umd.js' %}"></script>
|
|
||||||
<script src="{% static 'js/anatomy.js' %}" defer="defer" type="module"></script>
|
|
||||||
{% block js %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
</head>
|
{% block js %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="page-header">
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<span id="physics-link">
|
|
||||||
<a href="{% url 'physics:index' %}">Physics</a>
|
|
||||||
</span>
|
|
||||||
<span id="anatomy-link">
|
|
||||||
<a href="{% url 'anatomy:index' %}">Anatomy</a>
|
|
||||||
</span>
|
|
||||||
<span id="logout-link">
|
|
||||||
<a href="{% url 'logout' %}">Logout</a>
|
|
||||||
</span>
|
|
||||||
<span id="profile-link">
|
|
||||||
<a href="{% url 'profile' %}">Profile</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if request.user.is_staff %}
|
|
||||||
<span id="admin-link">
|
|
||||||
<a href="{% url 'admin:index' %}">Admin</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content container">
|
|
||||||
{% if request.user.is_authenticated %}
|
{% block content %}
|
||||||
<a href="{% url 'rapids:exam_list' %}">Exams</a> /
|
{% endblock %}
|
||||||
<a href="{% url 'rapids:rapid_view' %}">Questions</a> /
|
{% block navigation %}
|
||||||
<a href="{% url 'rapids:rapid_create' %}" title="Create a new question">Create Question</a>
|
{% if request.user.is_authenticated %}
|
||||||
{% endif %}
|
<a href="{% url 'rapids:exam_list' %}">Exams</a> /
|
||||||
|
<a href="{% url 'rapids:rapid_view' %}">Questions</a> /
|
||||||
|
<a href="{% url 'rapids:rapid_create' %}" title="Create a new question">Create Question</a>
|
||||||
|
{% endif %}
|
||||||
{% comment %} </br>
|
{% comment %} </br>
|
||||||
Questions by:
|
Questions by:
|
||||||
<span id="authors-link"><a href="{% url 'rapids:author_list' %}">author</a></span> {% endcomment %}
|
<span id="authors-link"><a href="{% url 'rapids:author_list' %}">author</a></span> {% endcomment %}
|
||||||
{% block navigation %}
|
{% endblock %}
|
||||||
{% endblock %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
{% block content %}
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
{% extends 'rapids/base.html' %}
|
{% extends 'rapids/base.html' %}
|
||||||
|
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
|
{{block.super}}
|
||||||
<br/>
|
<br/>
|
||||||
{{exam.name}}-> <a href="{% url 'rapids:exam_overview' pk=exam.pk %}">Overview</a> / <a href="{% url 'rapids:mark_overview' pk=exam.pk %}">Mark</a> / <a href="{% url 'rapids:exam_scores_cid' pk=exam.pk %}">Scores</a>
|
{{exam.name}}-> <a href="{% url 'rapids:exam_overview' pk=exam.pk %}">Overview</a> / <a href="{% url 'rapids:mark_overview' pk=exam.pk %}">Mark</a> / <a href="{% url 'rapids:exam_scores_cid' pk=exam.pk %}">Scores</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
+49
-3
@@ -2,20 +2,66 @@
|
|||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>PENRA Courses</title>
|
<title>
|
||||||
|
{% block title %}
|
||||||
|
PENRA Courses
|
||||||
|
{% endblock %}
|
||||||
|
</title>
|
||||||
|
{% block css %}
|
||||||
|
{% endblock %}
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
||||||
|
<link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'css/dicomViewer.css' %}">
|
||||||
|
<link rel="stylesheet" href="{% static 'css/toastr.min.css' %}">
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
||||||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
||||||
|
<script src="{% static 'tagulous/lib/jquery.js' %}"></script>
|
||||||
|
<script src="{% static 'tagulous/lib/select2-3/select2.min.js' %}"></script>
|
||||||
|
<script src="{% static 'tagulous/tagulous.js' %}"></script>
|
||||||
|
<script src="{% static 'tagulous/adaptor/select2-3.js' %}"></script>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/dexie/3.0.3/dexie.min.js" integrity="sha512-aEtNzq8X5E0ambgeM68H174SOXaANJ6wDqJ0TuVIx4R2J4fRdUA0nLzx0faA1mmViqb+r0VX7cOXkskxyJENUA==" crossorigin="anonymous"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstoneMath.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstoneTools.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstoneWebImageLoader.min.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstoneWADOImageLoader.js' %}"></script>
|
||||||
|
<script src="{% static 'js/cornerstone/cornerstone-base64-image-loader.umd.js' %}"></script>
|
||||||
|
<script src="{% static 'js/anatomy.js' %}" defer="defer" type="module"></script>
|
||||||
|
{% block js %}
|
||||||
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
{% if request.user.is_staff %}<span id="admin-link"><a
|
{% if request.user.is_authenticated %}
|
||||||
href="{% url 'admin:index' %}">Admin</a></span>{% endif %}
|
<span id="rapids-link">
|
||||||
|
<a href="{% url 'rapids:index' %}">Rapids</a>
|
||||||
|
</span>
|
||||||
|
<span id="physics-link">
|
||||||
|
<a href="{% url 'physics:index' %}">Physics</a>
|
||||||
|
</span>
|
||||||
|
<span id="anatomy-link">
|
||||||
|
<a href="{% url 'anatomy:index' %}">Anatomy</a>
|
||||||
|
</span>
|
||||||
|
<span id="logout-link">
|
||||||
|
<a href="{% url 'logout' %}">Logout</a>
|
||||||
|
</span>
|
||||||
|
<span id="profile-link">
|
||||||
|
<a href="{% url 'profile' %}">Profile</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.user.is_staff %}
|
||||||
|
<span id="admin-link">
|
||||||
|
<a href="{% url 'admin:index' %}">Admin</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="content container">
|
<div class="content container">
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
|
|||||||
Reference in New Issue
Block a user