[%# shownote_template11.tpl 2024-05-07 -%] [%# HTML snippet for insertion into the database -%] [%# This one uses the new format for the mailing list data, and partitions -%] [%# comments into past and current. It also marks comments that don't need -%] [%# to be read when -markcomments is selected. It requires make_shownotes >= V0.0.30 -%] [%- USE date -%] [%- USE pad4 = format('%04d') -%] [%- correspondents = "https://hackerpublicradio.org/correspondents" mailbase="https://lists.hackerpublicradio.com/pipermail/hpr" mailthreads = "$mailbase/$review_year-$review_month/thread.html" -%] [%- DEFAULT skip_comments = 0 mark_comments = 0 ctext = 0 ignore_count = 0 missed_count = 0 past_count = 0 -%] [%# Embedded CSS. The 'table' and 'hr' settings are always there but the rest is only for if -%] [%# we are marking comments -%] [%# For the '-mailnotes' option without a file we generate our own inclusion. -%] [%# We pretend 'default_mail' is a filename in the calling script. Messy. -%] [% BLOCK default_mail -%] [% mailthreads %] [% END -%]

New hosts

[% IF hosts.size > 0 -%] Welcome to our new host[%- hosts.size > 1 ? 's' : '' -%]:
[%- count = 0 %] [%# List the new hosts. If a name contains a comma quote it. -%] [%- FOREACH row IN hosts %] [%- count = count + 1 %] [%- hostname = (row.host.search(',') ? row.host.replace('^(.*)$','"$1"') : row.host) %] [% hostname %] [%- count < hosts.size ? ', ' : '.' %] [%- END %] [% ELSE -%] There were no new hosts this month. [% END -%]

Last Month's Shows

[%# The id 't01' is in the HPR CSS but might give trouble on the IA -%] [%- FOREACH row IN shows %] [%- END %]
Id Day Date Title Host
[% row.eps_id %] [% date.format(row.date,'%a') %] [% date.format(row.date,'%Y-%m-%d') %] [% row.title %] [% row.ho_host FILTER html_entity %]
[%# ---------------------------------------------------------------------------------------- -%] [%# Skip comments if told to by the caller -%] [%- IF skip_comments == 0 -%] [%# Handle any missed comments if mark_comments is true -%] [%- IF mark_comments == 1 && missed_count > 0 -%]

Missed comment[%- missed_comments.size > 1 ? 's' : '' -%] last month

Note to Volunteers: These are comments for shows last month that were not read in the last show because they arrived on or after the recording day. This section will be removed before these notes are released.

[%- END -%] [%# ---------------------------------------------------------------------------------------- -%]

Comments this month

[% IF comment_count > 0 -%] [%- IF mark_comments == 1 && ignore_count > 0 -%]

Note to Volunteers: Comments marked in green were read in the last Community News show and should be ignored in this one.

[%- END -%]

These are comments which have been made during the past month, either to shows released during the month or to past shows. There [%- comment_count == 1 ? "is $comment_count comment" : "are $comment_count comments" -%] in total.

[% IF past_count > 0 -%]

Past shows

There [% past_count == 1 ? "is $past_count comment" : "are $past_count comments" %] on [% past.size %] previous [% past.size == 1 ? "show" : "shows" %]:

[%- IF mark_comments == 1 || ctext == 1 -%]

Updated on [% date.format(date.now,'%Y-%m-%d %H:%M:%S') %]

[%- END -%] [%- END %] [%# ---------------------------------------------------------------------------------------- -%] [% cc = (comment_count - past_count) -%] [% IF cc > 0 -%]

This month's shows

There [% cc == 1 ? "is $cc comment" : "are $cc comments" %] on [% current.size %] of this month's shows:

[%- END %] [%- ELSE %] There were no comments this month. [%- END %] [%- END %] [%# ---------------------------------------------------------------------------------------- -%] [%- IF includefile.defined -%]

Mailing List discussions

Policy decisions surrounding HPR are taken by the community as a whole. This discussion takes place on the Mail List which is open to all HPR listeners and contributors. The discussions are open and available on the HPR server under Mailman.

The threaded discussions this month can be found here:

[% INCLUDE $includefile -%] [%- END %] [%# ---------------------------------------------------------------------------------------- -%]

Events Calendar

With the kind permission of LWN.net we are linking to The LWN.net Community Calendar.

Quoting the site:

This is the LWN.net community event calendar, where we track events of interest to people using and developing Linux and free software. Clicking on individual events will take you to the appropriate web page.
[%# ---------------------------------------------------------------------------------------- -%] [%# Any other business? -%] [% IF aob == 1 -%]

Any other business

[% INCLUDE $aobfile -%] [%- END %] [%# # vim: syntax=tt2:ts=8:sw=4:ai:et:tw=78:fo=tcrqn21 -%]