This commit is contained in:
albert 2013-01-22 14:41:16 -05:00
parent f2863ba27b
commit 086e70db54
3 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<div id="c-tag-subscriptions">
<div id="a-index">
<h1>Tag Subscriptions</h1>
<table>
<table class="striped" width="100%">
<thead>
<tr>
<th>Creator</th>
@ -12,13 +12,15 @@
<tbody>
<% @tag_subscriptions.each do |tag_subscription| %>
<tr>
<td><%= tag_subscription.creator.name %></td>
<td><%= link_to tag_subscription.name, tag_subscription_path(tag_subscription.id) %></td>
<td><%= link_to tag_subscription.tag_query, posts_path(:tags => "sub:#{@user.name}:#{tag_subscription.name}") %></td>
<td><%= link_to tag_subscription.creator.name, user_path(tag_subscription.creator_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:#{tag_subscription.creator.name}:#{tag_subscription.name}") %></td>
</tr>
<% end %>
</tbody>
</table>
<%= sequential_paginator(@tag_subscriptions) %>
</div>
</div>

View File

@ -1 +1,2 @@
set :user, "danbooru"
server "testbooru.donmai.us", :web, :app, :db, :primary => true

View File

@ -1,4 +1,5 @@
CurrentUser.ip_addr = "127.0.0.1"
Delayed::Worker.delay_jobs = false
if User.count == 0
puts "Creating users"
@ -32,7 +33,7 @@ if Upload.count == 0
url = "http://ipsumimage.appspot.com/#{width}x#{height}"
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
else
puts "Skipping uploads"