Skip to content

Commit

Permalink
Merge branch 'ziotom78:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ziotom78 authored Dec 15, 2023
2 parents 5b7d2a3 + e301d0e commit 49c582b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# HEAD

# Version 2.0.1

- Make the links in the top bar active when appropriate [#125](https://github.com/ziotom78/instrumentdb/pull/125)

- Permit cross-references in dependencies when importing databases [#124](https://github.com/ziotom78/instrumentdb/pull/124)

- Permit longer file names [#123](https://github.com/ziotom78/instrumentdb/pull/123)
Expand Down
7 changes: 4 additions & 3 deletions browse/templates/browse/base_generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script>hljs.initHighlightingOnLoad();</script>

{% load static %}
{% load active_link_tags %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#"><img class="img-fluid" src="{% static "browse/logo.png" %}" style="max-width: 6rem"></a>
<button class="navbar-toggler"
Expand All @@ -34,18 +35,18 @@

<div class="collapse navbar-collapse order-1 col-auto" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<li class="nav-item {% active_link 'release-list-view' 'active' strict=True %}">
<a class="nav-link" href="{% url 'release-list-view' %}">
Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<li class="nav-item {% active_link 'entity-list-view' 'active' %}">
<a class="nav-link" href="{% url 'entity-list-view' %}">
Entity tree
</a>
</li>
<li class="nav-item">
<li class="nav-item {% active_link 'format-spec-list-view' 'active' %}">
<a class="nav-link" href="{% url 'format-spec-list-view' %}">
Format specifications
</a>
Expand Down
2 changes: 1 addition & 1 deletion instrumentdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0"
__version__ = "2.0.1"
1 change: 1 addition & 0 deletions instrumentdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"rest_framework.authtoken",
"sslserver",
"drf_yasg",
"active_link",
"django_cleanup.apps.CleanupConfig", # This must be the last one!
]

Expand Down
15 changes: 13 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "instrumentdb"
version = "2.0.0"
version = "2.0.1"
description = ""
authors = ["Maurizio Tomasi <[email protected]>"]

Expand All @@ -24,6 +24,7 @@ coverage = "^7.2.7"
flake8 = "^6.0.0"
black = "^23.7.0"
django-cleanup = "^8.0.0"
django-active-link = "^0.1.8"

[tool.poetry.dev-dependencies]
pytest = "^7.4"
Expand Down

0 comments on commit 49c582b

Please sign in to comment.