Skip to content
Open
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
20 changes: 6 additions & 14 deletions www/application/classes/Controller/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,12 @@ public function action_process_join_form()
$this->view['success'] = $this->methods->saveJoinRequest($fields);

if ($this->view['success']) {
/**
* If user is registered then show link to the profile
* otherwise show email and mailto link
*/
if ($this->user->id) {
$name = $this->user->name;
$id = $this->user->id;
$host = Arr::get($_SERVER, 'HTTP_HOST');

$link = "{$host}/user/{$id}";
$footer = "👤 [$link]($link)";
} else {
$footer = "✉️ {$email}";
}
$name = $this->user->name;
$id = $this->user->id;
$host = Arr::get($_SERVER, 'HTTP_HOST');

$link = "{$host}/user/{$id}";
$footer = "✉️ {$email}";

$text = "🦄 {$name} wants to join the team\n" .
"\n" .
Expand Down
12 changes: 5 additions & 7 deletions www/application/views/templates/blocks/form-join.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<? if (!empty($error)): ?>
<div class="join-page__error">
Enter an email, so we can message you.
Enter an email or telegram, so we can message you.
</div>
<? endif ?>

Expand All @@ -20,14 +20,12 @@
Your name
</label>
<input class="input" type="text" name="name" id="name" value="<?= HTML::chars(Arr::get($_POST, 'name')) ?>" required>

<label for="js-email">
Contact email
</label>
<input class="input" type="email" name="email" id="js-email" autocomplete="off" required>
</div>
<? endif ?>

<label for="js-email">
Contact email or telegram
</label>
<input class="input" type="text" name="email" id="js-email" autocomplete="off" required>
<label for="skills">Tell us about your skills</label>
<textarea class="input" name="skills" id="skills" rows="5" required=""><?= Arr::get($_POST, 'skills') ?></textarea>

Expand Down
2 changes: 1 addition & 1 deletion www/application/views/templates/join/index-en.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
The key factor is your enthusiasm. In exchange, you will get a huge amount of experience, new skills, interesting and hard projects, an opportunity to take part in creating and launching world market products.
</p>
<p>
To apply, enter email, so we can contact you, and fill a little form. Also, please write where are you from.
To apply, enter email or telegram, so we can contact you, and fill a little form. Also, please write where are you from.
</p>
<!--
<section class="join-component join-component--compact">
Expand Down
2 changes: 1 addition & 1 deletion www/public/build/release.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"release":"223d8eb43073a38b4278","date":1653936684460}
{"release":"223d8eb43073a38b4278","date":1663075110008}