Skip to content

Commit

Permalink
addition article_status in watermak only if not published yet / #220
Browse files Browse the repository at this point in the history
  • Loading branch information
eliselavy committed Apr 17, 2024
1 parent 0dd22ae commit f041f21
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
6 changes: 0 additions & 6 deletions Untitled.ipynb

This file was deleted.

35 changes: 19 additions & 16 deletions jdhseo/templates/jdhseo/article_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,26 @@
.email a:link, a:visited, a:focus {
}

/* Add this CSS to style the watermark on all pages */
@media print {
body::after {
content: "PEER-REVIEW";
position: fixed;
transform: rotate(-45deg);
opacity: 0.2;
font-size: 50pt;
color: black;
top: 50%;
left: 50%;
transform-origin: center; /* Center the transform origin */
transform: translate(-50%, -50%) rotate(-45deg); /* Center the watermark using transform and translate */
z-index: -1;
white-space: nowrap;
pointer-events: none;
{% if article.status != "PUBLISHED" %}
/* Add this CSS to style the watermark on all pages */
@media print {
body::after {
content: "{{ article.status }}";
position: fixed;
transform: rotate(-45deg);
opacity: 0.2;
font-size: 50pt;
color: black;
top: 50%;
left: 50%;
transform-origin: center; /* Center the transform origin */
transform: translate(-50%, -50%) rotate(-45deg); /* Center the watermark using transform and translate */
z-index: -1;
white-space: nowrap;
pointer-events: none;
}
}
{% endif %}
}
}
</style>
Expand Down
1 change: 0 additions & 1 deletion notebook_with_ref.ipynb

This file was deleted.

Binary file removed notebook_with_ref.pdf
Binary file not shown.
Binary file removed peer_review_L2gBr3BzwH8Z.pdf
Binary file not shown.

0 comments on commit f041f21

Please sign in to comment.