diff --git a/templates/versions/detail.html b/templates/versions/detail.html index 4b40bdb8..a5c7a8ed 100644 --- a/templates/versions/detail.html +++ b/templates/versions/detail.html @@ -120,28 +120,39 @@ {% endif %} - {% if deps.added or deps.removed %} -
-

Dependencies

-
- There {{ deps.added|pluralize:"was,were" }} - - {{ deps.added }} dependenc{{ deps.added|pluralize:"y,ies"}} added - - - (in {{ deps.increased_dep_lib_count }} librar{{ deps.increased_dep_lib_count|pluralize:"y,ies" }}) - - and - - {{ deps.removed }} dependenc{{ deps.removed|pluralize:"y,ies"}} removed - - - (in {{ deps.decreased_dep_lib_count }} librar{{ deps.decreased_dep_lib_count|pluralize:"y,ies" }}) - - this release. -
-
+ {% if not version.beta %} + {% if deps.added or deps.removed %} +
+

Dependencies

+
+ {% if deps.added %} + There {{ deps.added|pluralize:"was,were" }} + + {{ deps.added }} dependenc{{ deps.added|pluralize:"y,ies"}} added + + + (in {{ deps.increased_dep_lib_count }} librar{{ deps.increased_dep_lib_count|pluralize:"y,ies" }}) + + {% endif %} + {% if deps.added and deps.removed %} + and + {% endif %} + {% if deps.removed %} + {% if not deps.added %} + There {{ deps.removed|pluralize:"was,were" }} + {% endif %} + + {{ deps.removed }} dependenc{{ deps.removed|pluralize:"y,ies"}} removed + + + (in {{ deps.decreased_dep_lib_count }} librar{{ deps.decreased_dep_lib_count|pluralize:"y,ies" }}) + + {% endif %} + this release. +
+
+ {% endif %} {% endif %} {% if top_contributors_release %}