From 8bcb86ea0445e71ee6e109c35654febb9e7e1738 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 14 Nov 2020 23:45:14 +0100 Subject: =?UTF-8?q?izbrisal=20telefonsko=20=C5=A1tevilko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/commentsthread.html | 79 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 _includes/commentsthread.html (limited to '_includes/commentsthread.html') diff --git a/_includes/commentsthread.html b/_includes/commentsthread.html new file mode 100644 index 0000000..84647f7 --- /dev/null +++ b/_includes/commentsthread.html @@ -0,0 +1,79 @@ +{% comment %} + argv: id_of_object_whose_posts_you_want,__isinathread + return: nothing. outputs html directly. +{% endcomment %} +{% capture taplaceholder %}Vpišite besedilo komentarja (markdown omogočen). +POMEMBNO: Zaradi tehničnih razlogov (veriga blokov) dokončen izbris komentarja (niti vzdevka avtorja) iz Interneta ni mogoč!{% endcapture %} +{% capture nepodpiraiframe %}Vaš brskalnik ne podpira
iframe
elementa, ki je potreben za vpogled v status oddaje komentarja.{% endcapture %} +{% capture editnotice %} +Komentar lahko uredi samo tisti, ki ga je napisal. Komentar uredite v brskalniku, v katerem ste ga napisali. Bodisi piškotek bodisi IP naslov mora biti enak prejšnji oddaji komentarja. Če se objavo uredi še naslednjič, se to lahko stori iz katerega koli IP naslova in piškotka, ki se je uporabil pri predhodnih urejanjih.{% endcapture %} +{% assign comments = site.data.comments | where: "parent", argv[0] %} +{% unless argv[1] %} + {% assign uid = 0 | minus: 1 %} + {% assign depth = 0 | minus: 1 %} +{% endunless %} +{% for comment in comments %} + {% assign depth = depth | plus: 1 %} +
+ {% assign argv = comment.date | split: "," %} {% include datumincas.html %} + + V {{ return }} je {{ comment.author || replace: "<", "<" }} komentiral: + +

+ {{ comment.message | replace: "<", "<" | replace: "!", "!" | markdownify }} +

+ + + prijavi + | + {% assign uid = uid | plus: 1 %} + + + + | + + +
+ + Urejanje komentarjev še ni izdelano. +
+
+ {% assign argv = "true" | split: "," %} + {% assign argv = argv | unshift: thisid %} + {% include commentsthread.html %} +
+ {% assign depth = depth | minus: 1 %} +{% endfor %} +{% assign return = uid | plus: 1 %} -- cgit v1.2.3