fix user editing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user