Skip to content

Commit

Permalink
Merge pull request #1554 from laws-africa/help-updates
Browse files Browse the repository at this point in the history
Updated links to user guide
  • Loading branch information
longhotsummer authored Sep 28, 2023
2 parents 1104460 + 06d44d6 commit 4e60c0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions africanlii/templates/africanlii/au_detail_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{% block breadcrumbs %}{% endblock %}
{% block page-heading %}
<h1 class="my-4 heading-underlined">{% trans 'African Union (AU)' %}</h1>
{% include "peachjam/_help_button.html" with link="african-union-documents-au" %}
{% endblock %}
<p>
{% blocktrans trimmed %}
Expand Down
5 changes: 4 additions & 1 deletion africanlii/views/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def get(self, request, *args, **kwargs):
return super().get(request, *args, **kwargs)

def get_context_data(self, **kwargs):
return super().get_context_data(taxonomy_link_prefix="indexes", **kwargs)
context = super().get_context_data(**kwargs)
context["taxonomy_link_prefix"] = "indexes"
context["help_link"] = "federated-case-indexes-on-africanlii"
return context


class DocIndexDetailView(TaxonomyDetailView):
Expand Down
1 change: 1 addition & 0 deletions liiweb/templates/liiweb/pocketlaw.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h2 class="display-5">Your offline {{ APP_NAME }} companion.</h2>
<div class="row">
<div class="col-md-6 mb-3">
<h3>Get started with Pocket Law</h3>
{% include "peachjam/_help_button.html" with link="pocket-law" %}
<ol class="lead">
<li>Download Pocket Law {{ APP_NAME }}.</li>
<li>Double-click the application to start the installation.</li>
Expand Down
3 changes: 3 additions & 0 deletions peachjam/templates/peachjam/taxonomy_first_level_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{% block taxonomy-content %}
<div class="pt-4 pb-5">
<h1 class="mb-4">{{ taxonomy }}</h1>
{% if help_link %}
{% include "peachjam/_help_button.html" with link=help_link %}
{% endif %}
{% if taxonomy.get_children|length > 0 %}
<ul>
{% for child in taxonomy.get_children %}
Expand Down

0 comments on commit 4e60c0e

Please sign in to comment.