-
Notifications
You must be signed in to change notification settings - Fork 30
add job seeker section and link from home page #439
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
Merged
leesheppard
merged 3 commits into
rubyaustralia:main
from
lee-treehouse:open-to-work-page
Jan 29, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| class JobSeekersController < ApplicationController | ||
| def index | ||
| @open_to_work = User.seeking_work.includes(:memberships).where(memberships: { left_at: nil }).order(created_at: :desc) | ||
| @display_limit = 30 | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
|
|
||
| <div class="max-w-xs sm:max-w-xl md:max-w-3xl lg:max-w-5xl mx-auto px-4 sm:px-6 md:px-8 py-8 sm:py-12 md:py-16"> | ||
| <section class="max-w-none mb-8 sm:mb-10 md:mb-12"> | ||
| <h1 class="text-2xl sm:text-3xl md:text-4xl font-bold mb-4 sm:mb-6 md:mb-8">Members Seeking Work</h1> | ||
|
|
||
| <p>These members of Ruby Australia are currently seeking new opportunities.</p> | ||
| <% if user_signed_in? %> | ||
| <p>Visit your <%= link_to "profile settings", edit_my_details_path, class: "white-link"%> to add your LinkedIn profile and mark yourself as seeking work.</p> | ||
| <% end %> | ||
|
|
||
lee-treehouse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 sm:gap-8"> | ||
| <% @open_to_work.take(@display_limit).each do |user| %> | ||
| <div class="bg-gray-50 p-6 rounded-lg shadow-sm border border-gray-200 flex flex-col"> | ||
| <div class="flex items-center"> | ||
| <div class="w-6 h-6 mr-2"> | ||
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor" class="text-ruby-red"> | ||
| <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/> | ||
| </svg> | ||
| </div> | ||
| <a href="<%= user.linkedin_url %>" target="_blank" rel="noopener noreferrer" class="text-ruby-red hover:text-red-700 transition-colors truncate flex-1"> | ||
| View <%= user.full_name %> | ||
| </a> | ||
| </div> | ||
| </div> | ||
| <% end %> | ||
| </div> | ||
|
|
||
| <% if @open_to_work.count > @display_limit %> | ||
| <div class="text-center mt-8"> | ||
| <p class="text-gray-600"> | ||
| Showing the most recent <%= @display_limit %> members seeking work. There are currently <%= User.seeking_work.count %> members seeking work. | ||
| </p> | ||
| </div> | ||
| <% end %> | ||
|
|
||
|
|
||
| </section> | ||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.