make story description icon a link to the story page, revert c1d1a44472
i don't like showing "discuss" to logged out users, and now that we have a story description icon that can link to the story text, back out the change that made logged out users see discuss when they can't discuss it.
This commit is contained in:
parent
45b63935af
commit
c05f526a57
|
@ -515,6 +515,7 @@ li .link a {
|
||||||
li.story .description_present {
|
li.story .description_present {
|
||||||
color: gray;
|
color: gray;
|
||||||
padding-left: 0.25em;
|
padding-left: 0.25em;
|
||||||
|
text-decoration: none;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<% if story.markeddown_description.present? %>
|
<% if story.markeddown_description.present? %>
|
||||||
<span class="description_present"
|
<a class="description_present" title="Additional text available"
|
||||||
title="Additional text available">☶</span>
|
href="<%= story.comments_path %>">☶</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if story.can_be_seen_by_user?(@user) %>
|
<% if story.can_be_seen_by_user?(@user) %>
|
||||||
<span class="tags">
|
<span class="tags">
|
||||||
|
@ -163,7 +163,7 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %>
|
||||||
(hidden by <%= pluralize(story.hider_count, "user") %>)
|
(hidden by <%= pluralize(story.hider_count, "user") %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if !story.is_gone? %>
|
<% if !story.is_gone? && (@user || story.comments_count > 0) %>
|
||||||
<span class="comments_label">
|
<span class="comments_label">
|
||||||
|
|
|
|
||||||
<a href="<%= story.comments_path %>"><%= story.comments_count == 0 ?
|
<a href="<%= story.comments_path %>"><%= story.comments_count == 0 ?
|
||||||
|
|
Loading…
Reference in a new issue