Skip to content

Commit d9c2aaf

Browse files
authored
Merge pull request creativecommons#243 from sp35/slackch
Add Slack channels to project list on Projects page
2 parents 7d92236 + da23438 commit d9c2aaf

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

content/contributing-code/github-repo-guidelines/contents.lr

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ Each repo should have a `.cc-metadata.yml` file in the root directory with the f
5959
technologies: Python, Django, Django REST Framework, Elasticsearch
6060
# Whether this repository should be featured on the CC Open Source site's "Projects" page
6161
featured: false
62+
# Slack channel name (optional key)
63+
slack: 'cc-dev-catalog'
6264
</code>
6365
</pre>
6466

6567
This metadata file is used in the [Projects](/projects) page. Repos that are marked as non-engineering projects are not displayed in the page and repos marked as featured as displayed at the top of the page. Repos should be marked as featured if we are actively looking for community contributions and have the bandwidth to review them quickly.
6668

67-
Repos without this metadata file are treated as `engineering_projects: true` and `featured: false`. A default is necessary since it will take time for us to clean up and add metadata to all our repos.
69+
Repos without this metadata file are treated as `engineering_projects: true`, `featured: false` and `slack: ""`. A default is necessary since it will take time for us to clean up and add metadata to all our repos.
Lines changed: 6 additions & 0 deletions
Loading

templates/project_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ <h2>All Active Projects</h2>
5656
{% else %}
5757
<td>Not specified</td>
5858
{% endif %}
59-
<td style="min-width: 12rem;">
60-
<a class="btn btn-outline-secondary btn-sm" href="{{ repo.url }}"><img src="{{ this.attachments.get('mark-github.svg')|url }}" alt="GitHub"/> GitHub</a>{% if repo.website %} <a class="btn btn-outline-secondary btn-sm" href="{{ repo.website }}"><img src="{{ this.attachments.get('link-external.svg')|url }}" alt="website"/> Website</a>{% endif %}
59+
<td style="min-width: 16rem;">
60+
<a class="btn btn-outline-secondary btn-sm" href="{{ repo.url }}"><img src="{{ this.attachments.get('mark-github.svg')|url }}" alt="GitHub"/> GitHub</a>{% if repo.website %} <a class="btn btn-outline-secondary btn-sm" href="{{ repo.website }}"><img src="{{ this.attachments.get('link-external.svg')|url }}" alt="website"/> Website</a>{% endif %} {% if repo.slack %} <a class="btn btn-outline-secondary btn-sm" href="https://creativecommons.slack.com/channels/{{ repo.slack }}"><img src="{{ this.attachments.get('mark-slack.svg')|url }}" alt="slack"/> Slack</a>{% endif %}
6161
</td>
6262
</tr>
6363
{% endfor %}

0 commit comments

Comments
 (0)