Skip to content

Commit 80842a0

Browse files
authored
Merge branch 'develop' into 0valt/815/comment-notification-pings
2 parents e9a1bb9 + ade1b9f commit 80842a0

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

app/assets/stylesheets/users.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
@import 'variables';
22

3+
img {
4+
&.header--item-image {
5+
&.user-avatar {
6+
align-items: center;
7+
display: flex;
8+
font-size: 0.75em;
9+
overflow: hidden;
10+
}
11+
}
12+
}
13+
314
.user-list {
415
display: grid;
516
gap: 1em;

app/views/layouts/_header.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ $(() => {
8484
</a>
8585
<%= link_to user_path(current_user), class: 'header--item is-complex is-visible-on-mobile',
8686
title: 'Manage profile' do %>
87-
<img alt="user avatar" src="<%= avatar_url(current_user, 40) %>" class="header--item-image avatar-40">&nbsp;&nbsp;
87+
<img alt="user avatar"
88+
src="<%= avatar_url(current_user, 40) %>"
89+
class="header--item-image user-avatar avatar-40">&nbsp;&nbsp;
8890
<span class="<%= SiteSetting['SiteHeaderIsDark'] ? 'has-color-white' : 'has-color-tertiary-600' %>"><%= current_user.reputation %></span>
8991
<% end %>
9092
<% end %>

app/views/posts/_expanded.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%#
2-
Full post view, containing all details and interactions.
2+
"Full post view, containing all details and interactions.
33
44
Instance variables:
55
? @category : Category the post belongs to, if any
@@ -13,7 +13,7 @@
1313
Variables:
1414
post : the Post instance to display
1515
? float_notice : whether to display the float notice
16-
%>
16+
"%>
1717

1818
<% float_notice ||= false %>
1919
<% category ||= defined?(@category) && @category.id == post.category_id ? @category : post.category %>
@@ -259,7 +259,9 @@
259259
<% end %>
260260
<% elsif current_user.present? %>
261261
<% if post.pending_suggested_edit? %>
262-
<span class="tools--item">suggested edit pending...</span>
262+
<%= link_to 'suggested edit pending...',
263+
suggested_edit_url(post.pending_suggested_edit.id),
264+
class: "tools--item" %>
263265
<% elsif post_type.is_freely_editable %>
264266
<%= render 'posts/edit_link', post: post %>
265267
<% else %>

0 commit comments

Comments
 (0)