hasgeek / hasjob

Hasjob, the Hasgeek job board
https://hasjob.co
GNU Affero General Public License v3.0
235 stars 80 forks source link

Share buttons for boards #300

Open belihub opened 8 years ago

belihub commented 8 years ago

Could have individual share buttons on hover over yellow post-its on hasjob.co, so people browsing can quickly share it with their friends (pm's and email included if possible)

jace commented 8 years ago

The job pages have share buttons. We need them for sub-boards.

jace commented 8 years ago

The board's share buttons will also obsolete the tiny twitter link in the footer, which is a terrible place to put share buttons.

iambibhas commented 8 years ago

What are sub-boards?

jace commented 8 years ago

Like these:

  1. https://cto.hasjob.co/
  2. https://morpheusgang.hasjob.co/
  3. https://singapore.hasjob.co/

You can make a new board from https://hasjob.co/board

jace commented 8 years ago

When you visit https://hasjob.co/, you're actually visiting a sub-board named www. If there is no such board, you'll see all jobs and hardcoded values in the templates. If the www board exists, data from that is used instead. Doing this lets us specify consistent behaviour in the templates between main board and sub-boards.

When you visit a job page, if that job is not hosted on the current sub-board, you'll get redirected to the sub-board it is on, defaulting to www board. This check is not performed when you're on the www board. You'll see this around the code in the form of g.board.is_root and g.board.not_root checks.

All pages in sub-boards also have a <link rel="canonical" href="…"/> that points to the same page on the root board, so Google doesn't penalise us for duplicating pages.

iambibhas commented 8 years ago

For the sub-board, can do something like this? -

selection_650