style forums a bit more

This commit is contained in:
Andrew Brown 2021-07-29 02:06:38 -07:00
parent 73b0748d43
commit 49e9685c2c
4 changed files with 25 additions and 3 deletions

View File

@ -277,4 +277,4 @@ body {
color: black;
}
}
}
}

View File

@ -32,6 +32,14 @@
}
}
.thredded--post--user {
color: black;
a {
color: #347a36;
}
}
.thredded--currently-online {
right: 100px;
max-height: 80%;

View File

@ -0,0 +1,7 @@
<header>
<%= image_tag post.avatar_url, class: 'thredded--post--avatar' if post.user %>
<h2 class="thredded--post--user"><%= user_link post.user %></h2>
<a href="<%= post.permalink_path %>" rel="nofollow" class="thredded--link thredded--post--created-at right">
<%= time_ago post.created_at %>
</a>
</header>

View File

@ -2,9 +2,16 @@
<% if !user.thredded_anonymous? %>
<% user_path = user_path(user) %>
<% if user_path.blank? %>
<span class='thredded--username'><%= user.thredded_display_name %></span>
<span class='thredded--username'>
<%= user.thredded_display_name %>
</span>
<% else %>
<a href="<%= user_path %>"><%= user.thredded_display_name %></a>
<a href="<%= user_path %>">
<%= user.thredded_display_name %>
<% if user.favorite_page_type? %>
<i class="material-icons tiny <%= content_class_from_name(user.favorite_page_type).try(:text_color) %>" style="position: relative; top: 2px"><%= content_class_from_name(user.favorite_page_type).try(:icon) %></i>
<% end %>
</a>
<%= render partial: 'thredded/users/badge', locals: { user: user } %>
<% end %>
<% else %>