mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
style forums a bit more
This commit is contained in:
parent
73b0748d43
commit
49e9685c2c
@ -277,4 +277,4 @@ body {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,6 +32,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.thredded--post--user {
|
||||
color: black;
|
||||
|
||||
a {
|
||||
color: #347a36;
|
||||
}
|
||||
}
|
||||
|
||||
.thredded--currently-online {
|
||||
right: 100px;
|
||||
max-height: 80%;
|
||||
|
||||
7
app/views/thredded/posts_common/_header.html.erb
Normal file
7
app/views/thredded/posts_common/_header.html.erb
Normal 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>
|
||||
@ -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 %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user