Skip to content

Commit

Permalink
test: reversion
Browse files Browse the repository at this point in the history
  • Loading branch information
idabblewith committed Oct 18, 2024
1 parent f659832 commit 3fb4571
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 703 deletions.
13 changes: 0 additions & 13 deletions config/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,3 @@ def get_encoded_image():
return f"data:image/jpeg;base64,{image_encoded}"
else:
return None


def get_encoded_ar_dbca_image():
# Find the path to the image using Django's staticfiles finders
image_path = os.path.join(settings.BASE_DIR, "documents", "BCSTransparent.png")
print(f"AR DBCA IMAGE PATH: {image_path}")
if image_path and os.path.exists(image_path):
with open(image_path, "rb") as image_file:
image_data = image_file.read()
image_encoded = base64.b64encode(image_data).decode("utf-8")
return f"data:image/png;base64,{image_encoded}"
else:
return None
17 changes: 6 additions & 11 deletions documents/prince_ar_document_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,7 @@ ul {
max-height: 162px;
border-radius: 8px;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
position: "relative";
}

/* .pr_img_container_rhs {
Expand Down Expand Up @@ -540,8 +537,6 @@ ul {
}

.pr_image {
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
Expand Down Expand Up @@ -777,10 +772,10 @@ ul {
/* widows: 1; */
}

/* .small_text {
.small_text {
font-size: 5px;
visibility: hidden;
} */
}

.progress_report_container p {
/* orphans: 1;
Expand All @@ -790,13 +785,13 @@ ul {
.progress_report_container {
display: flex;
flex-direction: column;
margin-top: 15px;
margin-top: 20px;
}

.progress_report_bottom_container {
/* margin-top: 8px; */
margin-top: 7.5px;
/* page-break-before: avoid; */
margin-top: -5px;
page-break-before: avoid;
}
/*
.progress_report_bottom_container_rhs {
Expand Down
90 changes: 45 additions & 45 deletions documents/templates/annual_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -824,63 +824,63 @@ <h2 id="{{ report.document.project.title | safe | extract_text_content }}" class
</div>
</div>
{% comment %} <div class="pr_top_filler"> {% endcomment %}
{% comment %} <p class="small_text">spacer</p>
<p class="small_text">spacer</p> {% endcomment %}
<p class="small_text">spacer</p>
<p class="small_text">spacer</p>
{% comment %} </div> {% endcomment %}
</div>
</div>
<div class="progress_report_bottom_container">
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Context</h3>
</div>
<div class="orphanage_widow">
{{report.context | safe }}
<div class="progress_report_bottom_container">
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Context</h3>
</div>
<div class="orphanage_widow">
{{report.context | safe }}
</div>
</div>
</div>
</div>
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Aims</h3>
</div>
<div class="orphanage_widow">
{{report.aims | safe }}
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Aims</h3>
</div>
<div class="orphanage_widow">
{{report.aims | safe }}
</div>
</div>
</div>
</div>
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Progress</h3>
</div>
<div class="orphanage_widow">
{{report.progress | safe }}
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Progress</h3>
</div>
<div class="orphanage_widow">
{{report.progress | safe }}
</div>
</div>
</div>
</div>
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Management Implications</h3>
</div>
<div class="orphanage_widow">
{{report.implications | safe }}
<div class="pr_subsection">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Management Implications</h3>
</div>
<div class="orphanage_widow">
{{report.implications | safe }}
</div>
</div>
</div>
</div>
<div class="pr_subsection pr_last_section">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Future Directions</h3>
</div>
<div class="orphanage_widow">
{{report.future | safe }}
<div class="pr_subsection pr_last_section">
<div class="pr_subsection_content_container">
<div class="pr_subsection_title">
<h3>Future Directions</h3>
</div>
<div class="orphanage_widow">
{{report.future | safe }}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
Expand Down Expand Up @@ -1066,8 +1066,8 @@ <h2 id="{{ report.document.project.title | safe | extract_text_content }}" class
</div>
</div>
{% comment %} <div class="pr_top_filler"> {% endcomment %}
{% comment %} <p class="small_text">spacer</p>
<p class="small_text">spacer</p> {% endcomment %}
<p class="small_text">spacer</p>
<p class="small_text">spacer</p>
{% comment %} </div> {% endcomment %}
</div>

Expand Down
Loading

0 comments on commit 3fb4571

Please sign in to comment.