Browse Source

Shorter intro in the context line (#577)

Shorter intro in the context line, some logic removed.

Reviewed-on: #577
Co-authored-by: I am Fastidious <fastidious@noreply@mills.io>
Co-committed-by: I am Fastidious <fastidious@noreply@mills.io>
pull/579/head
I am Fastidious 2 weeks ago
committed by James Mills
parent
commit
cfe785d1e3
  1. 12
      internal/theme/templates/partials.html

12
internal/theme/templates/partials.html

@ -135,17 +135,7 @@
{{ $rootTwt := getRootTwt $.Twt $.User }}
<small class="twt-context">
&rdsh;
<a href="{{ urlForRootConv $.Twt }}#{{ $.Twt.Hash }}" title="Show conversation for #{{ $rootTwt.Hash }}">
{{ if $.User.Is $rootTwt.Twter.URL }}
{{ tr $.Ctx "MeLinkTitle" }}
{{ else }}
{{ if isLocalURL $rootTwt.Twter.URL }}
{{ $rootTwt.Twter.Nick }}
{{ else }}
{{ $rootTwt.Twter.Nick }}&commat;{{ $rootTwt.Twter.URL | hostnameFromURL }}
{{ end }}
{{ end }}
</a>
<a href="{{ urlForRootConv $.Twt }}#{{ $.Twt.Hash }}" title="Show conversation for #{{ $rootTwt.Hash }}">In-reply-to</a>
&gt;
{{ formatTwtContext $.Twt $.User }}
</small>

Loading…
Cancel
Save