Skip to content

Commit

Permalink
Add skip link to metadata for typesetter #166
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull authored and mauromsl committed Aug 22, 2024
1 parent 607aca4 commit 7a2e29b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 4 additions & 6 deletions templates/typesetting/elements/typesetter/info.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<p>Task from the editor:</p>
<div class="callout bs-callout-success">
<p><strong>Task from the editor:</strong></p>
{{ assignment.task|safe|default:"<p>No task details were provided.</p>"|safe }}
{{ assignment.task|safe|default:"<p>No task details were provided.</p>"|safe }}
</div>
{% if assignment.display_proof_comments and assignment.proofing_assignments_for_corrections.exists %}
<div class="callout">
<p>The editor has made available the following comments from the proofreaders:</p>
{% include "typesetting/elements/view_proofreading_comments.html" %}
</div>
<p>The editor has made available the following comments from the proofreaders:</p>
{% include "typesetting/elements/view_proofreading_comments.html" %}
{% endif %}


Expand Down
5 changes: 4 additions & 1 deletion templates/typesetting/typesetting_assignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<div class="title-area">
<h2>Assignment Information</h2>
</div>
<p>
{{ article.safe_title }} [<a href="#view-metadata">Skip to full metadata</a>]
</p>
<div class="content">
{% include "typesetting/elements/typesetter/info.html" %}
</div>
Expand Down Expand Up @@ -116,7 +119,7 @@ <h4><span class="fa fa-warning"></span> Some typeset files don't have their imag
<div class="columns">
<div class="box">
<div class="title-area">
<h2>Metadata</h2>
<h2 id="view-metadata">Metadata</h2>
</div>
<div class="content">
{% include "typesetting/elements/typesetter/metadata.html" %}
Expand Down

0 comments on commit 7a2e29b

Please sign in to comment.