Skip to content

Commit

Permalink
Merge pull request #15 from eHealthAfrica/control-debug-link-display
Browse files Browse the repository at this point in the history
control debug link display
  • Loading branch information
hkmshb authored Apr 20, 2021
2 parents 8c66c0f + 1b6aee2 commit 12a5d22
Show file tree
Hide file tree
Showing 6 changed files with 5,869 additions and 3,391 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ To install ckanext-biskit:
sudo service apache2 reload
```
### Config Settings
Optional:
```ini
# An optional setting to control whether to display the debug link in the footer
# when running in debug mode
ckanext.biskit.show_debug_link = true
```
## Development
### Development Installation
Expand Down
7 changes: 5 additions & 2 deletions ckanext/biskit/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ <h3 class="footer-title">Technical Partners</h3>
<a href="#" class="fa fa-social fa-pinterest"></a>
</div> -->
</div>
{% block footer_debug %} {% if g.debug %} {% include 'snippets/debug.html' %} {% endif %} {% endblock %}
</footer>
{% block footer_debug %}
{% set show_link = h.asbool(config.get('ckanext.biskit.show_debug_link', 'true')) %}
{% if g.debug and show_link %} {% include 'snippets/debug.html' %} {% endif %}
{% endblock %}
</footer>
Loading

0 comments on commit 12a5d22

Please sign in to comment.