jlelse
/
Indieroad
Archived
1
Fork 0

Add option for anonymous comment

This commit is contained in:
Jan-Lukas Else 2020-01-25 18:42:31 +01:00
parent 0b9fb12420
commit 5857abe1a3
3 changed files with 30 additions and 13 deletions

View File

@ -613,16 +613,30 @@ select {
.wm-form { .wm-form {
@include subarticle-element; @include subarticle-element;
line-height: 1.5; line-height: 1.5;
display: block; #wm-form {
@media screen and (max-width: $break1) { display: flex;
text-align: center; #wm-source {
flex-grow: 1;
}
.action {
margin-left: 6px;
}
@media screen and (max-width: $break1) {
display: block;
text-align: center;
.action {
margin-left: inherit;
margin-top: 10px;
width: 100%;
}
}
} }
#wm-source { #anon-comment {
width: 100%; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 0px;
} a {
.description { text-decoration: underline;
margin-bottom: 10px; }
} }
} }

View File

@ -43,6 +43,9 @@
- id: wmform_btn - id: wmform_btn
translation: "Send" translation: "Send"
- id: anon_comment
translation: "You can also leave an anonymous comment."
- id: related - id: related
translation: "Related" translation: "Related"

View File

@ -2,12 +2,12 @@
{{- if not (.Param "indieweb.hidewmform") }} {{- if not (.Param "indieweb.hidewmform") }}
{{- if .Param "indieweb.endpoints.webmention" }} {{- if .Param "indieweb.endpoints.webmention" }}
<div class="wm-form"> <div class="wm-form">
<form method="post" action="{{ .Param "indieweb.endpoints.webmention" }}"> <form id="wm-form" method="post" action="{{ .Param "indieweb.endpoints.webmention" }}">
<p class="description"><label for="wm-source">{{ T "wmform_label" }}</label></p> <input type="url" name="source" id="wm-source" placeholder="{{ T "wmform_label" }}">
<input type="url" name="source" id="wm-source">
<input type="hidden" name="target" value="{{ .Permalink }}"> <input type="hidden" name="target" value="{{ .Permalink }}">
<input class="btn" type="submit" value="{{ T "wmform_btn" }}"> <input class="btn action" type="submit" value="{{ T "wmform_btn" }}">
</form> </form>
<p id="anon-comment"><a href="https://quill.p3k.io/?dontask=1&me=https://commentpara.de&reply={{ .Permalink }}">{{ T "anon_comment" }}</a></p>
</div> </div>
{{- end }} {{- end }}
{{- end }} {{- end }}