openstreetmap-website

https://github.com/openstreetmap/openstreetmap-website

Ruby

The Rails application that powers OpenStreetMap

UserBlocksHelper#block_status

returns a translated string representing the status of the
user block (i.e: whether it's active, what the expiry time is)

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open app/helpers/user_blocks_helper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-UserBlocksHelper-block_status-for-pr


# Commit to git

git add app/helpers/user_blocks_helper.rbgit commit -m "better docs for UserBlocksHelper#block_status"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-UserBlocksHelper-block_status-for-pr

hub pull-request


# Celebrate!