Skip to content

Commit

Permalink
adds help links
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Aug 9, 2023
1 parent e095b59 commit c429a52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions peachjam/templates/peachjam/_help_popover.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="mb-3">
<a href="{{ link }}"
class="btn btn-sm btn-outline-info"
data-bs-toggle="help-popover"
data-bs-content="{{ content }}"
data-bs-trigger="click"><i class="bi bi-question-circle"></i> {{ btn_text }}</a>
</div>
8 changes: 1 addition & 7 deletions peachjam/templates/peachjam/_related_documents.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{% load peachjam i18n %}
<h4>{% trans "Related documents" %}</h4>
<div class="mb-3">
<a href="#help"
class="btn btn-sm btn-outline-info"
data-bs-toggle="help-popover"
data-bs-content="Other documents related to this one."
data-bs-trigger="click"><i class="bi bi-question-circle"></i> Help</a>
</div>
{% include 'peachjam/_help_popover.html' with link='#' btn_text='Help' content='This is a list of documents that are related to this one.' %}
<div class="row">
{% if relationships_as_subject %}
<div class="col-md">
Expand Down

0 comments on commit c429a52

Please sign in to comment.