This was used to discourage crawlers from crawling certain pages we didn't want them to crawl, primarily post searches. Remove because there are better ways to control crawling. Some of these links weren't even visible to crawlers anyway. This lets us be consistent about only applying rel="nofollow" to external links.
62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
<ul>
|
|
<li id="post-info-id">ID: <%= post.id %></li>
|
|
<% if CurrentUser.is_moderator? %>
|
|
<li id="post-info-uploader">Uploader: <%= link_to_user(post.uploader) %></li>
|
|
<% end %>
|
|
<li id="post-info-date">
|
|
Date: <%= link_to time_ago_in_words_tagged(post.created_at), posts_path(tags: "date:#{post.created_at.to_date}") %>
|
|
<meta itemprop="uploadDate" content="<%= post.created_at.iso8601 %>">
|
|
</li>
|
|
<% if post.approver %>
|
|
<li id="post-info-approver">Approver: <%= link_to_user(post.approver) %></li>
|
|
<% end %>
|
|
<li id="post-info-size">
|
|
Size: <%= link_to_if post.visible?, number_to_human_size(post.file_size), post.tagged_file_url %>
|
|
<% if post.has_dimensions? %>
|
|
(<span itemprop="width"><%= post.image_width %></span>x<span itemprop="height"><%= post.image_height %></span>)
|
|
<% end %>
|
|
</li>
|
|
<li id="post-info-source">Source: <%= post_source_tag(post) %></li>
|
|
<li id="post-info-rating">Rating: <%= post.pretty_rating %></li>
|
|
<li id="post-info-score">Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span>
|
|
<% if CurrentUser.is_voter? %>
|
|
<%= tag.span id: "vote-links-for-post-#{post.id}", style: ("display: none;" if !@post.can_be_voted_by?(CurrentUser.user)) do %>
|
|
(vote
|
|
<%= link_to tag.i(class: "far fa-thumbs-up"), post_votes_path(post_id: post.id, score: "up"), remote: true, method: :post %>
|
|
<%= link_to tag.i(class: "far fa-thumbs-down"), post_votes_path(post_id: post.id, score: "down"), remote: true, method: :post %>)
|
|
<% end %>
|
|
<%= tag.span id: "unvote-link-for-post-#{post.id}", style: ("display: none;" if @post.can_be_voted_by?(CurrentUser.user)) do %>
|
|
(<%= link_to "undo vote", post_votes_path(post), remote: true, method: :delete, class: "unvote-post-link" %>)
|
|
<% end %>
|
|
<% end %>
|
|
</li>
|
|
<li id="post-info-favorites">Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
|
|
<% if CurrentUser.is_gold? %>
|
|
<%= link_to "Show »", "#", id: "show-favlist-link", style: ("display: none;" if post.fav_count == 0) %>
|
|
<%= link_to "« Hide", "#", id: "hide-favlist-link", style: "display: none;" %>
|
|
<div id="favlist" style="display: none;"><%= post_favlist(post) %></div>
|
|
<% end %></li>
|
|
<li id="post-info-status">
|
|
Status:
|
|
<% if post.is_pending? %>
|
|
Pending
|
|
<% end %>
|
|
|
|
<% if post.is_deleted? %>
|
|
Deleted
|
|
<% end %>
|
|
|
|
<% if post.is_flagged? %>
|
|
Flagged
|
|
<% end %>
|
|
|
|
<% if post.is_banned? %>
|
|
Banned
|
|
<% end %>
|
|
|
|
<% if !post.is_pending? && !post.is_deleted? && !post.is_banned? %>
|
|
Active
|
|
<% end %>
|
|
</li>
|
|
</ul>
|