Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create projects.yml #375

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: projects

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add opened issue to CommITCrowd project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# URL of the project to add issues to
project-url: https://github.com/orgs/svsticky/projects/7
# A GitHub personal access token with write access to the project
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
# A comma-separated list of labels to use as a filter for issue to be added
# labeled: # optional
# The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR)
# label-operator: # optional
23 changes: 6 additions & 17 deletions src/components/Drinks.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
import React from 'react';
import { Card } from 'semantic-ui-react';
import { graphql, StaticQuery } from 'gatsby';
import { getTranslation, getLanguage, metadata } from '../data/i18n';
import { getLanguage, metadata } from '../data/i18n';
import Markdown from 'markdown-to-jsx';

class Drinks extends React.Component {
renderDescription = (drinks, lg) => {
return (
<>
{drinks.description}
<b>
{getTranslation(lg, 'drinks.when', [
drinks.day,
drinks.time,
drinks.location,
])}
</b>
</>
);
return <Markdown>{drinks.descriptionlong.descriptionlong}</Markdown>;
};

render() {
Expand All @@ -42,12 +32,11 @@ const drinksQuery = graphql`
query drinksQuery {
allContentfulDrinks {
nodes {
day
node_locale
time
location
title
description
descriptionlong {
descriptionlong
}
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/data/en-us.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"drinks": {
"when": "Every {0} starting at {1} in the {2}!"
},
"board": {
"number": "Board {0}",
"current": "The current board",
Expand Down Expand Up @@ -53,7 +50,9 @@
"room": "Room 2.81",
"building": "Buys Ballot Building",
"address_1": "Princetonplein 5",
"address_2": "3584 CC UTRECHT",
"address_2": "3584CC Utrecht",
"address_1_postal": "Winthontlaan 30C",
"address_2_postal": "3526KV Utrecht",
"iban": "IBAN",
"iban_no": "NL61INGB0002877106",
"mail": "MAIL",
Expand Down
7 changes: 3 additions & 4 deletions src/data/nl.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"drinks": {
"when": "Elke {0} vanaf {1} in de {2}!"
},
"board": {
"number": "Bestuur {0}",
"current": "Het huidige bestuur",
Expand Down Expand Up @@ -53,7 +50,9 @@
"room": "Kamer 2.81",
"building": "Buys Ballot Gebouw",
"address_1": "Princetonplein 5",
"address_2": "3584 CC UTRECHT",
"address_2": "3584CC Utrecht",
"address_1_postal": "Winthontlaan 30C",
"address_2_postal": "3526KV Utrecht",
"iban": "IBAN",
"iban_no": "NL61INGB0002877106",
"mail": "MAIL",
Expand Down
2 changes: 1 addition & 1 deletion src/semantic/src/site/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
User Global Variables
*******************************/

@primaryColor: #29738f;
@primaryColor: #61518f;
8 changes: 5 additions & 3 deletions src/static-pages/vereniging/contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ const ContactPage = props => {
<Card fluid>
<Card.Content>
<h3>{getTranslation(language, 'contact.postal_address')}</h3>
{getTranslation(language, 'contact.name')} <br />
{getTranslation(language, 'contact.address_1')} <br />
{getTranslation(language, 'contact.address_2')}
{getTranslation(language, 'contact.name')},{' '}
{getTranslation(language, 'contact.building')}
<br />
{getTranslation(language, 'contact.address_1_postal')} <br />
{getTranslation(language, 'contact.address_2_postal')}
</Card.Content>
</Card>
<Card fluid>
Expand Down
Loading