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>
|
||||
Reference in New Issue
Block a user