Permalink
Browse files

fix user editing

  • Loading branch information...
Albert Yi
Albert Yi committed Oct 23, 2018
1 parent 464596f commit 9ce419b692a5805d12b32dd5d16b3dc599cb015a
Showing with 3 additions and 8 deletions.
  1. +0 −2 app/views/posts/index.html.erb
  2. +2 −5 app/views/posts/show.html.erb
  3. +1 −1 app/views/users/edit.html.erb
@@ -81,9 +81,7 @@
<script>
$(function() {
window.Danbooru.mixpanelEvent("Post Search", {
//"tags": <%= raw params[:tags].to_json %>,
"page": <%= raw params[:page].to_json %>,
//"referer": <%= raw request.referer.to_json %>
});
});
</script>
@@ -196,13 +196,10 @@
<script>
$(function() {
window.Danbooru.mixpanelEvent("Post View", {
//"id": <%= @post.id %>,
"rating": '<%= @post.rating %>',
"size": <%= @post.file_size %>,
//"fav_count": <%= @post.fav_count %>,
"created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>,
//"tags": <%= raw @post.presenter.humanized_essential_tag_string.to_json %>,
//"referer": <%= raw request.referer.to_json %>
"fav_count": <%= @post.fav_count %>,
"created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>
});
});
</script>
@@ -97,7 +97,7 @@
<%= f.input :disable_responsive_mode, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false, :hint => "Disable alternative layout for mobile and tablet" %>
<%= f.input :opt_out_mixpanel, :as => :select, :collection => [["No", "false"], "Yes", "true"]], :include_blank => false, :hint => "Opt out of MixPanel tracking" %>
<%= f.input :opt_out_mixpanel, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false, :hint => "Opt out of MixPanel tracking" %>
<%= f.input :custom_style, :label => "Custom <a href='https://en.wikipedia.org/wiki/Cascading_Style_Sheets'>CSS</a> style".html_safe, :hint => "Style to apply to the whole site.", :input_html => {:size => "40x5"} %>
</fieldset>

0 comments on commit 9ce419b

Please sign in to comment.