Skip to content

Commit

Permalink
Added "Slack Channels" page to release report (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveoconnor committed Feb 10, 2025
1 parent d537985 commit b2b607b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,5 +815,8 @@ def get_stats(self):
"removed_library_count": removed_library_count,
"downloads": downloads,
"contribution_box_graph": self._get_git_graph_data(prior_version, version),
"slack_channels": Channel.objects.filter(
name__istartswith="boost"
).order_by("name"),
"slack": slack_stats,
}
10 changes: 10 additions & 0 deletions templates/admin/release_report_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ <h2 class="mx-auto">Mailing List Word Cloud</h2>
</div>
{% endif %}
{% if slack %}
<div class="pdf-page flex items-center justify-items-center {{ bg_color }}">
<div class="flex flex-col mx-auto">
<h2 class="mx-auto">Slack Channels</h2>
<ul>
{% for channel in slack_channels %}
<li><strong>#{{channel.name}}</strong>{% if channel.purpose %} - {{channel.purpose}}{% endif %}</li>
{% endfor %}
</ul>
</div>
</div>
{% for slack_group in slack %}
<div class="pdf-page flex items-center justify-items-center {{ bg_color }}">
<div class="flex flex-col mx-auto">
Expand Down

0 comments on commit b2b607b

Please sign in to comment.