Browse Source

Change to participation message to be more visible and pronounced

Phil S. 1 week ago
parent
commit
6dd0ac3bae
  1. 3
      internal/langs/active.en.toml
  2. 13
      internal/theme/templates/conversation.html

3
internal/langs/active.en.toml

@ -29,7 +29,8 @@ ComposeMessageReplyFormBody = "Your reply"
ComposeMessageReplyFormSend = "Send"
ComposeMessageReplyTitle = "Compose Reply"
ComposeMessageTitle = "Compose Message"
ConversationJoinSummary = "<a href=\"/login\">Login</a> to participate in this yarn."
ConversationJoinSummary = "<a href=\"/login\">Login</a> or <a href=\"/register\">Register</a> to participate in this yarn."
ConversationJoinTitle = "Participate"
ConversationSummary = "Recent twts in reply to"
ConversationTitle = "Yarn"
Copyright = "&copy; 2020 <a href='https://github.com/prologic' target='_blank'>James Mills</a>. All rights reserved."

13
internal/theme/templates/conversation.html

@ -1,15 +1,20 @@
{{ define "content" }}
<article class="container-fluid">
<hgroup>
<h2>{{tr . "ConversationTitle"}}</h2>
<h3>{{tr . "ConversationSummary"}} <a href="/twt/{{ ($.Twts | first).Hash }}">#{{ ($.Twts | first).Hash }}</a></h3>
<h2>{{ tr . "ConversationTitle" }}</h2>
<h3>{{ tr . "ConversationSummary" }} <a href="/twt/{{ ($.Twts | first).Hash }}">#{{ ($.Twts | first).Hash }}</a></h3>
</hgroup>
</article>
{{ template "twt" (dict "Authenticated" $.Authenticated "User" $.User "Profile" $.Profile "LastTwt" $.LastTwt "Twt" ( $.Twts | first) "Ctx" . "view" "rootconv") }}
{{ template "feed" (dict "Authenticated" $.Authenticated "User" $.User "Profile" $.Profile "LastTwt" $.LastTwt "Pager" $.Pager "Twts" ($.Twts | rest) "Ctx" . "view" "conv") }}
{{ if .Authenticated }}
{{ template "post" (dict "Authenticated" $.Authenticated "User" $.User "TwtPrompt" $.TwtPrompt "MaxTwtLength" $.MaxTwtLength "Reply" $.Reply "AutoFocus" false "CSRFToken" $.CSRFToken "Ctx" .) }}
{{ template "post" (dict "Authenticated" $.Authenticated "User" $.User "TwtPrompt" $.TwtPrompt "MaxTwtLength" $.MaxTwtLength "Reply" $.Reply "AutoFocus" false "CSRFToken" $.CSRFToken "Ctx" .) }}
{{ else }}
<small id="convJoinSummary">{{ (tr . "ConversationJoinSummary") | html }}</small>
<article class="container-fluid">
<hgroup>
<h2>{{ tr . "ConversationJoinTitle" }}</h2>
<h3>{{ (tr . "ConversationJoinSummary") | html }}</h3>
</hgroup>
</article>
{{ end }}
{{ end }}

Loading…
Cancel
Save