mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
UX: show topic title in email logs
This commit is contained in:
parent
e30c8239a2
commit
a1d65ae8f6
@ -31,11 +31,12 @@
|
|||||||
</td>
|
</td>
|
||||||
<td><a href='mailto:{{unbound l.to_address}}'>{{l.to_address}}</a></td>
|
<td><a href='mailto:{{unbound l.to_address}}'>{{l.to_address}}</a></td>
|
||||||
<td>{{l.email_type}}</td>
|
<td>{{l.email_type}}</td>
|
||||||
<td>
|
<td class='post-link'>
|
||||||
{{#if l.post_url}}
|
{{#if l.post_url}}
|
||||||
<a href="{{l.post_url}}">{{l.reply_key}}</a>
|
<a href="{{l.post_url}}">{{l.post_description}}</a>
|
||||||
|
<span class='reply-key'>{{l.reply_key}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{l.reply_key}}
|
<span class='reply-key'>{{l.reply_key}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1783,6 +1783,11 @@ table#user-badges {
|
|||||||
.time {
|
.time {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
.reply-key {
|
||||||
|
display: block;
|
||||||
|
font-size: 12px;
|
||||||
|
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 40%));
|
||||||
|
}
|
||||||
.username div {
|
.username div {
|
||||||
max-width: 180px;
|
max-width: 180px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -8,7 +8,8 @@ class EmailLogSerializer < ApplicationSerializer
|
|||||||
:created_at,
|
:created_at,
|
||||||
:skipped,
|
:skipped,
|
||||||
:skipped_reason,
|
:skipped_reason,
|
||||||
:post_url
|
:post_url,
|
||||||
|
:post_description
|
||||||
|
|
||||||
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
||||||
|
|
||||||
@ -24,4 +25,12 @@ class EmailLogSerializer < ApplicationSerializer
|
|||||||
object.post.present?
|
object.post.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def include_post_description?
|
||||||
|
object.post.present? && object.post.topic.present?
|
||||||
|
end
|
||||||
|
|
||||||
|
def post_description
|
||||||
|
"#{object.post.topic.title} ##{object.post.post_number}"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user