From d6670eb2cd789f1c7191f460226e4a5f07759e5d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 29 May 2024 17:12:20 +0300 Subject: web: dim uri part from external recommendations --- src/main/assets/style.css | 4 ++++ src/main/java/com/juick/service/MessagesServiceImpl.java | 2 +- src/main/resources/templates/views/thread.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/assets/style.css b/src/main/assets/style.css index f5e4ef00..1172b3f0 100644 --- a/src/main/assets/style.css +++ b/src/main/assets/style.css @@ -443,6 +443,10 @@ article .tags > a::before, padding: 0 10px; } +.dimmed { + color: var(--dimmed-link-color); +} + .l .msg-button { padding: 12px; } diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index b1b50f2a..bad080a0 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -522,7 +522,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ user.setUri(uri); String path = uri.getPath(); String name = path.substring(path.lastIndexOf('/') + 1); - user.setName(name + "@" + uri.getHost()); + user.setName(name); } return new ImmutablePair<>(rs.getInt(1), user); }); diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index 9aad1ce5..ab751294 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -116,7 +116,7 @@ {% if rec.uri.toString() is empty %} @{{ rec.name }}{% if loop.index < (loop.length - 1) %}, {% endif %} {% else %} - @{{ rec.name }}{% if loop.index < (loop.length - 1) %}, {% endif %} + @{{ rec.name }}@{{ rec.uri.host }}{% if loop.index < (loop.length - 1) %}, {% endif %} {% endif %} {% endfor %} -- cgit v1.2.3