Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #35


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000035Feature RequestHighN/A02/07/09 02:13AMlozertuser
Reporterdenkikoiji
Assigned to:lozertuser
Resolution:Resolved
View StatusPublic
Version:0.1.9
Target Version:0.1.10
Summary:Add Statistics to "Gelbooru source 0.1.9" Post_view
Description:well basically i want to request of adding the Statistics side bar info to the new Gelbooru source 0.1.9 i found the info for Statistics but i cant get it to work T_T so the next best thing ^^

<div id="stats">
<h5>Statistics</h5>
<ul>
<li>Id: <%= @post.id %></li>
<li>Posted: <%= link_to time_ago_in_words(@post.created_at) + " ago", {:action => "index", :tags => "date:" + @post.created_at.strftime("%Y-%m-%d")}, :title => @post.created_at.strftime("%c") %> by <%= link_to_unless @post.user_id.nil?, h(@post.author), :controller => "user", :action => "show", :id => @post.user_id %></li>
<% if @current_user.is_admin? && @post.approver %>
<li>Approver: <%= @post.approver.name %></li>
<% end %>
<% if @post.image? %>
<li>Size: <%= @post.width %>x<%= @post.height %></li>
<% end %>
<% unless @post.source.blank? %>
<% if @post.source[/^http/] %>
<li>Source: <%= link_to @post.source[7, 20] + "...", @post.normalized_source, :target => "_blank" %></li>
<% else %>
<li>Source: <%= @post.source %></li>
<% end %>
<% end %>
<li>Rating: <%= @post.pretty_rating %></li>
<li>Score: <span id="post-score-<%= @post.id %>"><%= @post.score %></span> (vote <%= link_to_function "up", "Post.vote(1, #{@post.id})" %>/<%= link_to_function "down", "Post.vote(-1, #{@post.id})" %>)</li>
<li>Favorited by: <span id="favorited-by"><%= favorite_list(@post) %></span> <span id="favorited-by-more"></span></li>
</ul>
</div>
Additional Info:thx for taking your time to work on this ^^
lozertuser replied at 2009-03-01 15:37:54
I believe I am only going to do code updates for bugs that are discovered. I will leave modifications to the code up to the end user.