From 2447bc3a408e4e5e6ec2da1407bd8ad37e5d1db7 Mon Sep 17 00:00:00 2001 From: Suzanne Aitchison Date: Fri, 23 Apr 2021 16:17:23 +0100 Subject: [PATCH] add skip link to stats and analytics pages (#13487) --- app/views/articles/stats.html.erb | 10 ++++++---- app/views/dashboards/analytics.erb | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/views/articles/stats.html.erb b/app/views/articles/stats.html.erb index 304de30b5..45c81ab68 100644 --- a/app/views/articles/stats.html.erb +++ b/app/views/articles/stats.html.erb @@ -1,9 +1,11 @@ <% title "Stats for Your Article" %> -
-

Stats for "<%= link_to @article.title, @article.current_state_path, id: "article", data: { "article-id" => @article.id, "organization-id" => @organization_id } %>"

+
+
+

Stats for "<%= link_to @article.title, @article.current_state_path, id: "article", data: { "article-id" => @article.id, "organization-id" => @organization_id } %>"

- <%= render "shared/stats" %> -
+ <%= render "shared/stats" %> +
+ <%= javascript_packs_with_chunks_tag "analyticsArticle", defer: true %> diff --git a/app/views/dashboards/analytics.erb b/app/views/dashboards/analytics.erb index 829500fc9..45a4b462a 100644 --- a/app/views/dashboards/analytics.erb +++ b/app/views/dashboards/analytics.erb @@ -1,13 +1,15 @@ <% title "Analytics" %> -
-
-

Analytics Dashboard for <%= @user_or_org.name %>

-

Welcome to the Analytics Dashboard, the home of in-depth user metrics so that authors can make data-driven decisions about the <%= SiteConfig.community_member_label %> ecosystem.

-

This dashboard highlights deep insights especially relevant to <%= SiteConfig.community_member_label %> relations, authors, and serious bloggers.

-
+
+
+
+

Analytics Dashboard for <%= @user_or_org.name %>

+

Welcome to the Analytics Dashboard, the home of in-depth user metrics so that authors can make data-driven decisions about the <%= SiteConfig.community_member_label %> ecosystem.

+

This dashboard highlights deep insights especially relevant to <%= SiteConfig.community_member_label %> relations, authors, and serious bloggers.

+
- <%= render "shared/stats" %> -
+ <%= render "shared/stats" %> +
+ <%= javascript_packs_with_chunks_tag "analyticsDashboard", defer: true %>