Skip to content

Commit ae0ca3f

Browse files
committed
Tweak template.
1 parent 52e6795 commit ae0ca3f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Web/root/topic/show_topic_message.tx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,25 @@
1515
<div class="card my-4">
1616
<div class="card-body">
1717
%% if ( $message.url ) {
18-
<h5 class="card-title" style="display: inline"><a href="[% $message.url %]">[% $message.title %]</a></h5>
19-
<small class="text-mute">[% $message.url %]</small>
18+
<h5 class="card-title">
19+
%% # <span style="font-size: 0.8em"><a href="[% $c.uri_for_action( '/topicchannel/get_topic', $message.channel.name ) %]">t/[% $message.channel.name %]</a>: </span>
20+
<a href="[% $message.url %]">[% $message.title %]</a>
21+
<span class="text-mute" style="font-size: 0.6em">
22+
([% $message.url | domain %])
23+
<a href="[% $c.uri_for_action( '/userchannel/get_user', [ $message.author.name ] ) %]">u/[% $message.author.name %]</a>
24+
<span title="[% $message.created_at.strftime('%Y %T') %]">[% $message.time_ago %]</span>
25+
</span>
26+
</h5>
2027
%% } else {
21-
<h5 class="card-title" style="display: inline"><a href="[% $c.uri_for_action( '/topicchannel/get_topic_message', [ ], $channel.name, $message.id, $message.title ) %]">[% $message.title %]</a></h5>
22-
<small class="text-mute">(text post)</small>
28+
<h5 class="card-title">
29+
%% # <span style="font-size: 0.8em"><a href="[% $c.uri_for_action( '/topicchannel/get_topic', $message.channel.name ) %]">t/[% $message.channel.name %]</a>: </span>
30+
<a href="[% $c.uri_for_action( '/topicchannel/get_topic_message', [ ], $channel.name, $message.id, $message.title ) %]">[% $message.title %]</a>
31+
<span class="text-mute" style="font-size: 0.6em">
32+
(text post)
33+
<a href="[% $c.uri_for_action( '/userchannel/get_user', [ $message.author.name ] ) %]">u/[% $message.author.name %]</a>
34+
<span title="[% $message.created_at.strftime('%Y %T') %]">[% $message.time_ago %]</span>
35+
</span>
36+
</h5>
2337
%% }
2438
<div class="pt-4">
2539
%% $message.content

0 commit comments

Comments
 (0)