To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit fa105756 authored by Sandro Lutz's avatar Sandro Lutz Committed by Luzian Bieri

Add jobboerse hint for companies (Resolves #12)

parent 91a8b2be
Pipeline #68369 failed with stages
in 12 minutes and 59 seconds
import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'gatsby-plugin-intl'
import { makeStyles } from '@material-ui/styles'
import Alert from '@material-ui/lab/Alert'
const useStyles = makeStyles(
{
root: {
marginBottom: '2em',
},
link: {
cursor: 'pointer',
},
dialogContent: {
padding: '0 24px 16px 24px',
},
},
{ name: 'jobsCompanyHint' }
)
const JobsCompanyHint = ({ className, ...props }) => {
const classes = useStyles()
return (
<Alert
className={[classes.root, className].join(' ')}
severity="info"
{...props}
>
<div>
<b>
<FormattedMessage id="jobs.companyHintCatchphrase" />
</b>
&nbsp;
<FormattedMessage id="jobs.companyHintEmail" />
<a href="mailto:jobboerse@amiv.ethz.ch" className={classes.link}>
jobboerse@amiv.ethz.ch
</a>.
</div>
</Alert>
)
}
JobsCompanyHint.propTypes = {
/** @ignore */
className: PropTypes.string,
}
export default JobsCompanyHint
......@@ -234,6 +234,8 @@
"jobs.search": "Jobangebote durchsuchen...",
"jobs.downloadAsPdf": "PDF herunterladen",
"jobs.published": "{days, plural, =0 {heute} one {gestern} other {vor # Tagen}} veröffentlicht",
"jobs.companyHintCatchphrase": "Möchten Sie ein Jobinserat auf unserer Webseite bewerben?",
"jobs.companyHintEmail": "Dann melden Sie sich unter ",
"error.title": "Ups, das ist ein Fehler!",
"error.pageTitle": "Seite nicht gefunden",
"error.accessDenied": "Diese Seite ist nur für eingeloggte Benutzer verfügbar.",
......
......@@ -230,6 +230,8 @@
"jobs.search": "Search job offers...",
"jobs.downloadAsPdf": "Download PDF",
"jobs.published": "published {days, plural, =0 {today} one {yesterday} other {# days ago}}",
"jobs.companyHintCatchphrase": "Would you like to advertise a job on our website?",
"jobs.companyHintEmail": "Send an email to ",
"error.title": "Woops, that's an error!",
"error.pageTitle": "Page not found",
"error.accessDenied": "This page is accessible only for authenticated users.",
......
......@@ -7,6 +7,7 @@ import { listLoadNextPage, listLoadAllPages } from '~store/common/actions'
import { JOBOFFERS } from '../../store/joboffers/constants'
import Layout from '../../components/layout'
import JobsCompanyHint from '../../components/jobs/companyHint'
import JoboffersFilter from '../../components/jobs/filter'
import FilteredListLayout from '../../components/filteredListPage/layout'
import FilteredList from '../../components/filteredListPage/list'
......@@ -72,6 +73,9 @@ const JobsPage = ({ jobofferId: jobofferIdProp }) => {
<FilteredListLayout>
<JoboffersFilter />
{/* Company hint */}
<JobsCompanyHint />
{/* Pinned joboffer */}
{pinnedId && (
<FilteredList>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment