add user searches
This commit is contained in:
17
app/views/users/_common_searches.html.erb
Normal file
17
app/views/users/_common_searches.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<section id="outer-recent-searches" style="display: none;">
|
||||
<h1>Recent Searches</h1>
|
||||
<ul id="recent-searches">
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$.get("<%= Danbooru.config.report_server %>/user_searches", {
|
||||
uid: <%= user.id %>,
|
||||
sig: "<%= sig %>"
|
||||
}, function(data) {
|
||||
$("#recent-searches").html(data);
|
||||
$("#outer-recent-searches").show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -74,6 +74,8 @@
|
||||
|
||||
<%= f.input :disable_tagged_filenames, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
||||
|
||||
<%= f.input :enable_recent_searches, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
||||
|
||||
<div class="input text optional field_with_hint">
|
||||
<label class="text optional" for="user_favorite_tags">Frequent tags</label>
|
||||
<textarea id="user_favorite_tags" class="text optional" rows="5" name="user[favorite_tags]" cols="40"><%= raw @user.favorite_tags %></textarea>
|
||||
|
||||
Reference in New Issue
Block a user