From e6155cd5be376132b14775fd7577ee736e34ce04 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 22 Jul 2020 01:30:14 -0700 Subject: [PATCH] feedback form --- app/views/help/index.html.erb | 7 +++++++ app/views/notice_dismissal/messages/_15.html.erb | 13 +++++++++++++ app/views/page_collections/index.html.erb | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 app/views/notice_dismissal/messages/_15.html.erb diff --git a/app/views/help/index.html.erb b/app/views/help/index.html.erb index e494068d..29b960ea 100644 --- a/app/views/help/index.html.erb +++ b/app/views/help/index.html.erb @@ -80,6 +80,13 @@ Timeline Editor Beta Feedback <% end %> + + <%= link_to 'https://docs.google.com/forms/d/e/1FAIpQLScCPsoJxLxOC_nY3nMrtENja33lnMXNDrZLtWOxS2BYCNlpCQ/viewform?usp=sf_link', target: '_new', class: 'waves-effect col s12' do %> +
+ exit_to_app + Collections feedback +
+ <% end %> <% end %> diff --git a/app/views/notice_dismissal/messages/_15.html.erb b/app/views/notice_dismissal/messages/_15.html.erb new file mode 100644 index 00000000..4fe549f6 --- /dev/null +++ b/app/views/notice_dismissal/messages/_15.html.erb @@ -0,0 +1,13 @@ +<% if user_signed_in? && current_user.notice_dismissals.where(notice_id: 14).none? %> +
+

+ Collections on Notebook.ai are a brand new feature and I'd love to get your feedback on how you would like to use them. + <%= link_to 'To leave feedback, click here.', 'https://docs.google.com/forms/d/e/1FAIpQLScCPsoJxLxOC_nY3nMrtENja33lnMXNDrZLtWOxS2BYCNlpCQ/viewform?usp=sf_link' %> + After dismissing this message, you can also find a link to the feedback form in the <%= link_to 'Help center', help_center_path %>. +

+ +

+ <%= link_to 'Dismiss this message', notice_dismissal_dismiss_path(notice_id: 15) %>. +

+
+<% end %> \ No newline at end of file diff --git a/app/views/page_collections/index.html.erb b/app/views/page_collections/index.html.erb index f8631713..2fc3d147 100644 --- a/app/views/page_collections/index.html.erb +++ b/app/views/page_collections/index.html.erb @@ -1,3 +1,5 @@ +<%= render partial: 'notice_dismissal/messages/15' %> + <% if @my_collections.any? || current_user.on_premium_plan? %>