This commit is contained in:
Ross
2021-08-21 09:36:55 +01:00
parent 0fbf23b4ce
commit 506e5111ce
9 changed files with 29 additions and 10 deletions
+9
View File
@@ -630,3 +630,12 @@ input {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
.date {
font-size: smaller;
opacity: 50%;
}
.date:hover {
opacity: 100%;
}
@@ -27,7 +27,7 @@
<a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}" <a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}"
title="Edit the Question using the admin interface">Admin Edit</a> title="Edit the Question using the admin interface">Admin Edit</a>
<div class="date"> <div class="date">
Created: {{ question.created_date }} Created: {{ question.created_date|date:"d/m/Y" }}
</div> </div>
<h1>{{ question.get_primary_answer }}</h1> <h1>{{ question.get_primary_answer }}</h1>
<h2>{{question.question_type}}</h2> <h2>{{question.question_type}}</h2>
+1 -1
View File
@@ -4,7 +4,7 @@
{% for question in questions %} {% for question in questions %}
<div class="anatomy"> <div class="anatomy">
<div class="date"> <div class="date">
{{ question.created_date }} {{ question.created_date|date:"d/m/Y" }}
</div> </div>
<h1><a href="{% url 'anatomy:question_detail' pk=question.pk %}">{% for answer in question.answers.all %} <h1><a href="{% url 'anatomy:question_detail' pk=question.pk %}">{% for answer in question.answers.all %}
{{ answer }}, {{ answer }},
@@ -1,6 +1,6 @@
<div class="long {% if question.scrapped %}long-scrapped{% endif %}"> <div class="long {% if question.scrapped %}long-scrapped{% endif %}">
<div class="date"> <div class="date">
{{ question.created_date }} {{ question.created_date|date:"d/m/Y" }}
</div> </div>
<p class="pre-whitespace"><b>Description:</b> {{ question.description }}</p> <p class="pre-whitespace"><b>Description:</b> {{ question.description }}</p>
@@ -4,7 +4,7 @@
<div class="question"> <div class="question">
<a href="{% url 'admin:physics_question_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a> <a href="{% url 'admin:physics_question_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a>
<div class="date"> <div class="date">
Created: {{ question.created_date }} Created: {{ question.created_date|date:"d/m/Y" }}
</div> </div>
{% autoescape off %} {% autoescape off %}
<h2>{{question.stem}}</h2> <h2>{{question.stem}}</h2>
+1 -1
View File
@@ -4,7 +4,7 @@
{% for question in questions %} {% for question in questions %}
<div class="anatomy"> <div class="anatomy">
<div class="date"> <div class="date">
{{ question.created_date }} {{ question.created_date|date:"d/m/Y" }}
</div> </div>
<h1><a href="{% url 'anatomy:question_detail' pk=question.pk %}">{% for answer in question.answers.all %} <h1><a href="{% url 'anatomy:question_detail' pk=question.pk %}">{% for answer in question.answers.all %}
{{ answer }}, {{ answer }},
@@ -1,6 +1,6 @@
<div class="rapid {% if question.scrapped %}rapid-scrapped{% endif %}"> <div class="rapid {% if question.scrapped %}rapid-scrapped{% endif %}">
<div class="date"> <div class="date">
{{ question.created_date }} {{ question.created_date|date:"d/m/Y" }}
</div> </div>
<p class="pre-whitespace"><b>Rapid:</b> {{ question }}</p> <p class="pre-whitespace"><b>Rapid:</b> {{ question }}</p>
+3 -2
View File
@@ -2,9 +2,10 @@
{% block content %} {% block content %}
<div class="question"> <div class="question">
<a href="{% url 'admin:sbas_question_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a> <a href="{% url 'admin:sbas_question_change' question.id %}"
title="Edit the Question using the admin interface">Admin Edit</a>
<div class="date"> <div class="date">
Created: {{ question.created_date }} Created: {{ question.created_date|date:"d/m/Y"}}
</div> </div>
{% autoescape off %} {% autoescape off %}
<b>{{question.stem}}</b> <b>{{question.stem}}</b>
+9
View File
@@ -630,3 +630,12 @@ input {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
.date {
font-size: smaller;
opacity: 50%;
}
.date:hover {
opacity: 100%;
}