Fixes #361
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-tag-subscriptions">
|
<div id="c-tag-subscriptions">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Tag Subscriptions</h1>
|
<h1>Tag Subscriptions</h1>
|
||||||
<table>
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Creator</th>
|
<th>Creator</th>
|
||||||
@@ -12,13 +12,15 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<% @tag_subscriptions.each do |tag_subscription| %>
|
<% @tag_subscriptions.each do |tag_subscription| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= tag_subscription.creator.name %></td>
|
<td><%= link_to tag_subscription.creator.name, user_path(tag_subscription.creator_id) %></td>
|
||||||
<td><%= link_to tag_subscription.name, tag_subscription_path(tag_subscription.id) %></td>
|
<td><%= link_to tag_subscription.name, edit_tag_subscription_path(tag_subscription) %></td>
|
||||||
<td><%= link_to tag_subscription.tag_query, posts_path(:tags => "sub:#{@user.name}:#{tag_subscription.name}") %></td>
|
<td><%= link_to tag_subscription.tag_query, posts_path(:tags => "sub:#{tag_subscription.creator.name}:#{tag_subscription.name}") %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<%= sequential_paginator(@tag_subscriptions) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
set :user, "danbooru"
|
||||||
server "testbooru.donmai.us", :web, :app, :db, :primary => true
|
server "testbooru.donmai.us", :web, :app, :db, :primary => true
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
CurrentUser.ip_addr = "127.0.0.1"
|
CurrentUser.ip_addr = "127.0.0.1"
|
||||||
|
Delayed::Worker.delay_jobs = false
|
||||||
|
|
||||||
if User.count == 0
|
if User.count == 0
|
||||||
puts "Creating users"
|
puts "Creating users"
|
||||||
@@ -32,7 +33,7 @@ if Upload.count == 0
|
|||||||
url = "http://ipsumimage.appspot.com/#{width}x#{height}"
|
url = "http://ipsumimage.appspot.com/#{width}x#{height}"
|
||||||
tags = (i * i * i).to_s.scan(/./).uniq.join(" ")
|
tags = (i * i * i).to_s.scan(/./).uniq.join(" ")
|
||||||
|
|
||||||
Upload.create(:source => url, :content_type => "image/gif", :rating => "q", :tag_string => tags)
|
Upload.create(:source => url, :content_type => "image/gif", :rating => "q", :tag_string => tags, :server => Socket.gethostname)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
puts "Skipping uploads"
|
puts "Skipping uploads"
|
||||||
|
|||||||
Reference in New Issue
Block a user