diff --git a/src/infrastructure/reporting/templates/format/activity_chart_pdf.html b/src/infrastructure/reporting/templates/format/activity_chart_pdf.html new file mode 100644 index 0000000..d4d2991 --- /dev/null +++ b/src/infrastructure/reporting/templates/format/activity_chart_pdf.html @@ -0,0 +1,14 @@ +{% for item in chart_data %} +
+
{{ "%02d" | format(item.hour) }}:00
+
+
+ {% if item.percentage > 15 %} + {{ item.count }} + {% endif %} +
+ {% if item.percentage <= 15 %} {{ item.count }} + {% endif %} +
+
+{% endfor %} diff --git a/src/infrastructure/reporting/templates/hack/activity_chart_pdf.html b/src/infrastructure/reporting/templates/hack/activity_chart_pdf.html new file mode 100644 index 0000000..02b42ed --- /dev/null +++ b/src/infrastructure/reporting/templates/hack/activity_chart_pdf.html @@ -0,0 +1,13 @@ +{% if chart_data %} +{% for item in chart_data %} +
+ {{ item.count }} +
+ {{ "%02d"|format(item.hour) }}:00 +
+{% endfor %} +{% else %} +
+
// NO_DATA_STREAM
+
+{% endif %} diff --git a/src/infrastructure/reporting/templates/retro_futurism/activity_chart_pdf.html b/src/infrastructure/reporting/templates/retro_futurism/activity_chart_pdf.html new file mode 100644 index 0000000..d4cf2c9 --- /dev/null +++ b/src/infrastructure/reporting/templates/retro_futurism/activity_chart_pdf.html @@ -0,0 +1,15 @@ +{% if chart_data %} +
+ {% for item in chart_data %} +
+ {{ item.count }} +
+ {{ "%02d"|format(item.hour) }}:00 +
+ {% endfor %} +
+{% else %} +
+
NO_DATA_AVAILABLE_FOR_ACTIVITY_SPECTRUM
+
+{% endif %} diff --git a/src/infrastructure/reporting/templates/simple/activity_chart_pdf.html b/src/infrastructure/reporting/templates/simple/activity_chart_pdf.html new file mode 100644 index 0000000..e3ab980 --- /dev/null +++ b/src/infrastructure/reporting/templates/simple/activity_chart_pdf.html @@ -0,0 +1,11 @@ +
+ {% for item in chart_data %} +
+ {{ "%02d" | format(item.hour) }}:00 +
+
+
+ {{ item.count }} +
+ {% endfor %} +
diff --git a/src/infrastructure/reporting/templates/spring_festival/activity_chart_pdf.html b/src/infrastructure/reporting/templates/spring_festival/activity_chart_pdf.html new file mode 100644 index 0000000..08411ee --- /dev/null +++ b/src/infrastructure/reporting/templates/spring_festival/activity_chart_pdf.html @@ -0,0 +1,44 @@ +{% if chart_data %} +
+ {% for item in chart_data %} +
+ +
+ {{ item.count if item.count > 0 else '' }} +
+ + +
+ + +
+ {{ "%02d"|format(item.hour) }}:00 +
+
+ {% endfor %} +
+{% else %} +
+ 🏮 尚无活跃记录 🏮 +
+{% endif %}