Skip to content

Commit

Permalink
Add help/support link to repo + fix forecasts turbo load event
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Sep 19, 2023
1 parent 4072b6b commit 9738221
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 3 additions & 14 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@
<%= javascript_include_tag "application" %>
<%= hotwire_livereload_tags if Rails.env.development? %>
<%= javascript_include_tag "https://www.gstatic.com/charts/loader.js" %>
<% if !current_user.blank? %>
<%#= intercom_script_tag({
:app_id => 'gworkb82',
:user_id => current_user.id,
:email => current_user.email,
:created_at => current_user.created_at,
:custom_data => {
'partnermetrics_last_seen_at' => Time.now.to_i,
'partnermetrics_signup_at' => current_user.created_at
}
}) %>
<% end %>
</head>

<body style="<%= polaris_html_styles %>">
Expand All @@ -51,7 +38,9 @@
<%= yield %>
<%= polaris_footer_help do %>
Made with ❤ by <%= polaris_link(url: "https://www.forsbergplustwo.com", external: true) { "FORSBERG+two" } %>. Available on Github as <%= polaris_link(url: "https://github.com/forsbergplustwo/partner-metrics", external: true) { "open-source" } %>.
<%= polaris_text(alignment: :center) do %>
Made with ❤ by <%= polaris_link(url: "https://www.forsbergplustwo.com", external: true) { "FORSBERG+two" } %>.<br>Available on Github as <%= polaris_link(url: "https://github.com/forsbergplustwo/partner-metrics", external: true) { "open-source" } %>. For questions, please <%= polaris_link(url: "https://github.com/forsbergplustwo/partner-metrics/issues/new?labels=question&body=%0A%0A%0A---%0AI%27m+a+human.+Please+be+nice.", external: true) { "create an issue" } %> on the repo.
<% end %>
<% end %>
<%= turbo_frame_tag :remote_modal %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/metrics/_forecasts_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
data: {
controller: "submittable",
submittable_target: "form",
action: "change->submittable#submit"
action: "change->submittable#submit",
turbo_frame: :metrics,
turbo_action: :advance
}
) do |form| %>
Expand Down

0 comments on commit 9738221

Please sign in to comment.