diff --git a/TODO b/TODO
index 1d26136..e1026fe 100644
--- a/TODO
+++ b/TODO
@@ -16,7 +16,6 @@ Later:
* Style/extend about page?
* Style recipe info page?
* Style machine list on detail
-* Show count of layers to be reviewed next to review button
* Something to help with compatibility (although maybe this should just be handled using the existing versioned layer dependencies in layer.conf)
* Query backend service? i.e. special URL to query information for external apps/scripts
* Tool for finding/comparing duplicate recipes?
diff --git a/base.html b/base.html
index 75871fe..1989dd4 100644
--- a/base.html
+++ b/base.html
@@ -53,7 +53,12 @@
{% block submitlink %}
Submit layer{% endblock %}
{% if user.is_authenticated %}
{% if perms.layeritem.publish_layer %}
- Review
+
+ Review
+ {% if unpublished_count > 0 %}
+ {{ unpublished_count }}
+ {% endif %}
+
{% endif %}
diff --git a/layerindex/context_processors.py b/layerindex/context_processors.py
index 8e2c4e7..90fc0f8 100644
--- a/layerindex/context_processors.py
+++ b/layerindex/context_processors.py
@@ -4,7 +4,7 @@
#
# Licensed under the MIT license, see COPYING.MIT for details
-from layerindex.models import Branch
+from layerindex.models import Branch, LayerItem
def layerindex_context(request):
current_branch = request.session.get('branch', None)
@@ -13,4 +13,5 @@ def layerindex_context(request):
return {
'all_branches': Branch.objects.all(),
'current_branch': current_branch,
+ 'unpublished_count': LayerItem.objects.filter(status='N').count(),
}
\ No newline at end of file