diff --git a/readthedocs/templates/projects/projects_search_analytics.html b/readthedocs/templates/projects/projects_search_analytics.html index e162fd21e03..93fa412f4ad 100644 --- a/readthedocs/templates/projects/projects_search_analytics.html +++ b/readthedocs/templates/projects/projects_search_analytics.html @@ -11,51 +11,40 @@ {% block project_edit_content_header %}{% trans "Search Analytics" %}{% endblock %} {% block project_edit_content %} - {% if show_analytics %} -

{% trans "Top queries" %}

-
-
- -
+

{% trans "Top queries" %}

+
+
+
    + {% for query, count in queries %} +
  • + {{ query }} + + {{ count }} search{{ count|pluralize:"es" }} + +
  • + {% empty %} +
  • +

    + {% trans 'No date available.' %} +

    +
  • + {% endfor %} +
+
-
- {% if query_count_of_1_month.labels and query_count_of_1_month.int_data %} -

{% trans "Overview of the past 1 month:" %}

- - {% endif %} - -
-
- -
- {% else %} -

- {% blocktrans trimmed %} - Hey there! This feature is currently in beta state and is available under a - feature flag. - In case you want to test this feature and help giving us feedback, - please contact us via - GitHub issues. - {% endblocktrans %} -

+
+ {% if query_count_of_1_month.labels and query_count_of_1_month.int_data %} +

{% trans "Overview of the past 1 month:" %}

+ {% endif %} + +
+
+ +
+ {% endblock %} {% block extra_scripts %} @@ -70,7 +59,7 @@

{% trans "Overview of the past 1 month:" %}

{% block footerjs %} - {% if query_count_of_1_month.labels and query_count_of_1_month.int_data and show_analytics %} + {% if query_count_of_1_month.labels and query_count_of_1_month.int_data %} // Line chart var line_chart = document.getElementById("analytics-chart-last-7-days").getContext("2d"); var line_chart_labels = {{ query_count_of_1_month.labels|safe }};