text adjustments

This commit is contained in:
albert
2012-11-19 14:37:33 -05:00
parent 37cfed7d51
commit 4436a8c343
3 changed files with 17 additions and 15 deletions

View File

@@ -4,15 +4,17 @@
<%= hidden_field_tag "post_id", @post.id %>
<%= text_field_tag "pool_name", "", :size => 20 %>
<%= submit_tag "Select" %>
<% end %>
<% end %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.name %></li>
<% end %>
</ul>
</div>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.name %></li>
<% end %>
</ul>
</div>
<% end %>
</div>
</div>

View File

@@ -1,8 +1,8 @@
<ul>
<% if CurrentUser.is_member? %>
<li><%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %></li>
<li><%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %></li>
<li><%= link_to "Pool", "#", :id => "pool" %></li>
<li><%= link_to "Add to favorites", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %></li>
<li><%= link_to "Remove from favorites", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %></li>
<li><%= link_to "Add to pool", "#", :id => "pool" %></li>
<li><%= link_to "Translate", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
<li><%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %></li>

View File

@@ -66,15 +66,15 @@
</section>
</div>
<div id="flag-dialog" title="Flag Post">
<div id="flag-dialog" title="Flag post">
<%= render :template => "post_flags/new" %>
</div>
<div id="appeal-dialog" title="Appeal Post">
<div id="appeal-dialog" title="Appeal post">
<%= render :template => "post_appeals/new" %>
</div>
<div id="add-to-pool-dialog" title="Add to Pool">
<div id="add-to-pool-dialog" title="Add to pool">
<%= render :template => "pool_elements/new" %>
</div>
</div>