Skip to content
Snippets Groups Projects
Commit e1e551b9 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Unanswered indicators

parent c04405db
Branches
Tags
No related merge requests found
...@@ -88,3 +88,8 @@ pre.unformatted { ...@@ -88,3 +88,8 @@ pre.unformatted {
.badge.is-tag.is-outlined { .badge.is-tag.is-outlined {
border: 1px solid #001db1; border: 1px solid #001db1;
} }
.badge.is-tag.is-small {
padding: 2px 4px;
line-height: 1;
}
\ No newline at end of file
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
</div> </div>
<p class="has-color-tertiary-600 has-float-right post-list--meta"> <p class="has-color-tertiary-600 has-float-right post-list--meta">
<% if is_question %> <% if is_question %>
<span class="answer-count"> <span class="answer-count <%= post.answer_count == 0 ? 'badge is-tag is-red is-small' : 'h-c-green-700' %>">
<%= post.answer_count %> <%= post.answer_count != 1 ? 'answers' : 'answer' %> <%= pluralize(post.answer_count, 'answer') %>
</span>&nbsp;&middot;&nbsp; </span>&nbsp;&middot;&nbsp;
<% end %> <% end %>
last activity <%= time_ago_in_words(post.last_activity) %> ago by <%= link_to active_user.username, user_path(active_user) %> last activity <%= time_ago_in_words(post.last_activity) %> ago by <%= link_to active_user.username, user_path(active_user) %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment