update dtext gem, include more contextual tags on images
This commit is contained in:
@@ -6,9 +6,9 @@ GIT
|
||||
|
||||
GIT
|
||||
remote: https://github.com/r888888888/dtext_rb.git
|
||||
revision: e349031a5dcc74079d636c40243e099bde3e47d5
|
||||
revision: e2dd779f994ad8b4010ec36a92ad93ad43b2e3f1
|
||||
specs:
|
||||
dtext_rb (1.0.2)
|
||||
dtext_rb (1.0.3)
|
||||
jeweler (~> 2.0)
|
||||
minitest (~> 5.8)
|
||||
rake-compiler (~> 0.9)
|
||||
|
||||
@@ -60,6 +60,12 @@ a.blacklisted-active {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#image-container p.desc {
|
||||
font-size: 80%;
|
||||
color: grey;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.post-preview {
|
||||
img {
|
||||
border: 2px solid transparent;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<% if post.visible? %>
|
||||
<%= image_tag(post.file_url_for(CurrentUser.user), :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image", "data-original-width" => post.image_width, "data-original-height" => post.image_height, "data-large-width" => post.large_image_width, "data-large-height" => post.large_image_height, "data-tags" => post.tag_string, :alt => post.presenter.humanized_essential_tag_string, "data-uploader" => post.uploader_name, "data-rating" => post.rating, "data-flags" => post.status_flags, "data-parent-id" => post.parent_id, "data-has-children" => post.has_children?, "data-has-active-children" => post.has_active_children?, "data-score" => post.score, "data-fav-count" => post.fav_count, "itemprop" => "contentUrl") %>
|
||||
<p class="desc" itemprop="description"><%= post.presenter.humanized_essential_tag_string %></p>
|
||||
<% end %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ul itemscope itemtype="http://schema.org">
|
||||
<ul itemscope itemtype="http://schema.org/ImageObject">
|
||||
<li>ID: <%= post.id %></li>
|
||||
<li>Uploader: <%= link_to_user(post.uploader) + " ".html_safe + link_to("»".html_safe, posts_path(:tags => "user:#{post.uploader.name}"), :rel => "nofollow") %></li>
|
||||
<li>
|
||||
@@ -9,7 +9,7 @@
|
||||
<li>Approver: <%= link_to_user(post.approver) %></li>
|
||||
<% end %>
|
||||
<li>
|
||||
Size: <%= link_to_if post.visible?, number_to_human_size(post.file_size), post.file_url, :itemprop => "contentSize" %>
|
||||
Size: <%= link_to_if post.visible?, number_to_human_size(post.file_size), post.file_url %>
|
||||
<% if post.has_dimensions? %>
|
||||
(<span itemprop="width"><%= post.image_width %></span>x<span itemprop="height"><%= post.image_height %></span>)
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user