Skip to content

Commit

Permalink
Merge pull request #177 from robotmay/master
Browse files Browse the repository at this point in the history
Bugfixes and changes to Sidekiq settings
  • Loading branch information
robotmay committed Oct 30, 2013
2 parents 6143cef + 1b7da2e commit 471dea2
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 71 deletions.
5 changes: 0 additions & 5 deletions .tx/photographerio.enyml-5/es_translation
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ es:
site_name: "Photographer.io"
default_title: "La comunidad fotográfica para entusiastas - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: >
Todas las fotografías tienen derechos de autor de sus respectivos creadores, y
no pueden reproducirse o republicarse sin permiso.

© Photographer.io, Afternoon Robot Ltd, 2013. Iconos cortesía de <a href="http://glyphicons.com">glyphicons.com</a>.
privacy: "Política de privacidad"
terms: "Términos"
confirm_delete: "¿Está seguro?"
Expand Down
9 changes: 0 additions & 9 deletions .tx/photographerio.enyml-5/fr_translation
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ fr:
site_name: "Photographer.io"
default_title: "La communauté photo pour les passionnés - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: >
Toutes les photographies sont la propriété de leurs auteurs respectifs et ne peuvent
être republiés sans autorisation.

© Photographer.io, Afternoon Robot Ltd, 2013. Icones utilisées avec la permission
de <a href="http://glyphicons.com">glyphicons.com</a>.
privacy: "Confidentialité"
terms: "Conditions d'utilisation"
confirm_delete: "Êtes-vous certain ?"
Expand All @@ -27,7 +21,6 @@ fr:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "Anglais"
fr: "Français"
nl_NL: "Néerlandais"
pl: "Polonais"
metadata:
Expand Down Expand Up @@ -318,8 +311,6 @@ fr:
favourites: "Favoris"
upload: "Télécharger"
delete: "Supprimer cette photo"
dropzone: >
Glissez-déposez vos images sur cette page pour les téléverser. Lisez nos %{guidelines}
public_warning: >
Cette collection est définie comme publique. Toutes les photos ici seront
listées dans la partie publique du site.
Expand Down
25 changes: 22 additions & 3 deletions .tx/photographerio.enyml-5/nl_NL_translation
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ nl_NL:
site_name: "Photographer.io"
default_title: "De foto's gemeenschap voor liefhebbers - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: "Op alle foto's berust het auteursrecht van de desbetreffende maker, en mag niet zonder toestemming heruitgegeven worden, gekopieerd, of vermenigvuldigd op welke wijze dan ook.\n © Photographer.io, Afternoon Robot Ltd, 2013. Pictogrammen geleverd door <a href=\"http://glyphicons.com\"\
>glyphicons.com</a>. \n"
copyright: >
Copyright op alle werken berust bij de respectievelijke fotografen, en mogen niet
zonder toestemming worden gereproduceerd.

© Photographer.io, Afternoon Robot Ltd, 2013. Met dank aan <a href="http://glyphicons.com">glyphicons.com</a>
voor de iconen.

Aangedreven door <a href="https://www.digitalocean.com/?refcode=0d41e836e212">
Digital Ocean</a> servers.
privacy: "Privacybeleid"
terms: "Algemene voorwaarden"
confirm_delete: "Weet je het zeker?"
Expand All @@ -23,9 +30,12 @@ nl_NL:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "Engels"
fr: "Frans"
es: "Español <abbr title='Beta'>*</abbr>"
fr: "Français <abbr title='Beta'>*</abbr>"
nl_NL: "Nederlands"
pl: "Pools"
pt_PT: "Português (Portugal) <abbr title='Beta'>*</abbr>"
pt_BR: "Português (Brasil) <abbr title='Beta'>*</abbr>"
ru_RU: "Russisch"
metadata:
description: >
Expand Down Expand Up @@ -209,6 +219,11 @@ nl_NL:
blurb: >
Als lid kun je je foto's uploaden en organiseren voordat je ze publiceert
op de publiek toegankelijke site.
notifications:
title: "Activiteit"
empty: >
Activiteit en meldingen zullen hier weergegeven worden, maar momenteel heb
je nog niets ontvangen!
statistics:
title: "Statistieken"
views: "Totaal aantal keer dat je foto's bekeken zijn"
Expand Down Expand Up @@ -390,6 +405,8 @@ nl_NL:
destroy:
succeeded: "Je volgt deze gebruiker niet meer."
failed: "Er ging wat mis met het verwijderen van deze gebruiker uit de volgers lijst."
notifications:
subject: "%{user} volgt je nu"
notifications:
title: "Berichten"
none: "Je hebt momenteel geen berichten."
Expand Down Expand Up @@ -526,3 +543,5 @@ nl_NL:
failed: >
Er heeft zich een probleem voorgedaan bij het aanmaken van het rapport. Kijk
hieronder voor eventuele foutmeldingen.
stories:
notification: "%{text}"
21 changes: 18 additions & 3 deletions .tx/photographerio.enyml-5/pl_translation
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ pl:
publikować bez zgody właścicieli.

© Photographer.io, Afternoon Robot Ltd, 2013. Ikony z serwisu <a href="http://glyphicons.com">glyphicons.com</a>.

Usługa działa na serwerach firmy <a href="https://www.digitalocean.com/?refcode=0d41e836e212">Digital
Ocean</a>.
privacy: "Polityka prywatności"
terms: "Zasady korzystania"
confirm_delete: "Jesteś pewien?"
Expand All @@ -26,9 +29,12 @@ pl:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "angielski"
fr: "francuski"
es: "hiszpański <abbr title='wersja beta'>*</abbr>"
fr: "francuski <abbr title='wersja beta'>*</abbr>"
nl_NL: "holenderski"
pl: "polski"
pt_PT: "portugalski (Portugalia) <abbr title='wersja beta'>*</abbr>"
pt_BR: "portugalski (Brazylia) <abbr title='wersja beta'>*</abbr>"
ru_RU: "rosyjski"
metadata:
description: >
Expand Down Expand Up @@ -236,6 +242,11 @@ pl:
blurb: >
Jako członek serwisu możesz wysyłać i organizować swoje zdjęcia przed ich
publikacją na profilu publicznym.
notifications:
title: "Aktywność"
empty: >
Z czasem pojawi się tu lista aktywności i powiadomień, ale w tej chwili
nie masz jeszcze żadnych!
statistics:
title: "Statystyki"
views: "Liczba wszystkich odsłon twoich zdjęć"
Expand Down Expand Up @@ -315,8 +326,8 @@ pl:
upload: "Wyślij"
delete: "Usuń to zdjęcie"
dropzone: >
Przeciągnij i upuść swoje zdjęcia na tę stronę aby je wysłać. Przeczytaj więcej
w %{guidelines}.
Możesz wysyłać zdjęcia przeciągając je i upuszczając na tę stronę. Przeczytaj
%{guidelines} .
public_warning: >
Ta kolekcja jest oznaczona jako publiczna. Wszystkie umieszczone w niej zdjęcia
będą widoczne w profilu publicznym.
Expand Down Expand Up @@ -412,6 +423,8 @@ pl:
destroy:
succeeded: "Śledzenie tego użytkownika zakończone."
failed: "Wystąpił problem z zakończeniem śledzenia tego użytkownika."
notifications:
subject: "Użytkownik %{user} zaczął cię obserwować"
notifications:
title: "Powiadomienia"
none: "W tej chwili nie masz żadnych powiadomień."
Expand Down Expand Up @@ -542,3 +555,5 @@ pl:
Utworzono zgłoszenie. To zdjęcie jest teraz ukryte przed publicznym przeglądaniem.
failed: >
Wystąpił problem ze zgłoszeniem. Opis błędów znajduje się poniżej.
stories:
notification: "%{text}"
21 changes: 18 additions & 3 deletions .tx/photographerio.enyml-5/pt_PT_translation
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ pt_PT:
ser republicadas sem permissão.

© Photographer.io, Afternoon Robot Ltd, 2013. Icons cortesia de <a href="http://glyphicons.com">glyphicons.com</a>.

Suportado por servidores <a href="https://www.digitalocean.com/?refcode=0d41e836e212">
Digital Ocean</a>.
privacy: "Política de Privacidade"
terms: "Termos"
confirm_delete: "Tem certeza?"
Expand All @@ -26,9 +29,12 @@ pt_PT:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "Inglês"
fr: "Francês"
es: "Espanhol <abbr title='Beta'>*</abbr>"
fr: "Francês <abbr title='Beta'>*</abbr>"
nl_NL: "Holandês"
pl: "Polaco"
pt_PT: "Português (Portugal) <abbr title='Beta'>*</abbr>"
pt_BR: "Português (Brasil) <abbr title='Beta'>*</abbr>"
ru_RU: "Russo"
metadata:
description: >
Expand Down Expand Up @@ -233,6 +239,11 @@ pt_PT:
blurb: >
Como um membro pode carregar e organizar as suas fotografias antes de publicar-las
na página pública.
notifications:
title: "Atividade"
empty: >
As atividades e notificações vão aparecer nesta zona com o tempo, mas de
momento não recebeu nenhuma!
statistics:
title: "Estatísticas"
views: "Número total de vistas para as suas fotografias"
Expand Down Expand Up @@ -312,8 +323,8 @@ pt_PT:
upload: "Carregar"
delete: "Apagar esta fotografia"
dropzone: >
Arraste e largue as suas imagens nesta página para carregar-las. Leia nas
nossas %{guidelines}.
Pode arrastar e largar as suas imagens nesta página para carregar-las. Leia
nas nossas %{guidelines}.
public_warning: >
Esta coleção é definida como pública. Qualquer foto aqui será listada na página
pública.
Expand Down Expand Up @@ -417,6 +428,8 @@ pt_PT:
destroy:
succeeded: "Já não está a seguir o utilizador."
failed: "Ocorreu um erro ao remover o utilizador da lista dos seus seguidores."
notifications:
subject: "%{user} está agora a segui-lo"
notifications:
title: "Notificações"
none: "De momento não tem notificações."
Expand Down Expand Up @@ -587,3 +600,5 @@ pt_PT:
Relatório criado. Esta foto está agora escondida da navegação pública.
failed: >
Ocorreu um problema enquanto a criação do relatório. Verifique por erros abaixo.
stories:
notification: "%{text}"
9 changes: 0 additions & 9 deletions .tx/photographerio.enyml-5/ru_RU_translation
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ ru_RU:
site_name: "Photographer.io"
default_title: "Фото-сообщество для энтузиастов - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: >
Все фотографии принадлежат их уважаемым создателям и не должны быть опубликованы
в других местах без их разрешения.

© Photographer.io, Afternoon Robot Ltd, 2013. Иконки созданы <a href="http://glyphicons.com">glyphicons.com</a>.
privacy: "Политика конфиденциальности"
terms: "Правила"
confirm_delete: "Вы уверены?"
Expand All @@ -26,7 +21,6 @@ ru_RU:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "English"
fr: "Français"
nl_NL: "Nederlands"
pl: "Polski"
ru_RU: "Русский"
Expand Down Expand Up @@ -309,9 +303,6 @@ ru_RU:
favourites: "Избранное"
upload: "Загрузка"
delete: "Удалить фотографию"
dropzone: >
Чтобы загрузить изображение, перетащие его на эту страницу. О параметрах загружаемых
изображений можно узнать %{guidelines}.
public_warning: >
Это открытая коллекция. Все изображения, содержащиеся в ней, будут видны остальным
посетителям сайта.
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ GEM
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
celluloid (0.15.1)
celluloid (0.15.2)
timers (~> 1.1.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
Expand Down Expand Up @@ -206,7 +206,7 @@ GEM
jquery-turbolinks (1.0.0)
railties (>= 3.1.0)
turbolinks
json (1.8.0)
json (1.8.1)
jwt (0.1.8)
multi_json (>= 1.5)
kaminari (0.14.1)
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bundle exec puma -p 5000
worker: bundle exec sidekiq -q events,3 -q mailer,3 -q sunspot,2 -q photos,2 -q default,1 -q low,1
worker: bundle exec sidekiq
12 changes: 9 additions & 3 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,15 @@ def unread_notifications
def profile_background_photo
if show_profile_background
id = profile_background_photo_id
if id.present?
photographs.find(id)
else

# Exception will also be raised if background id is for missing photo
begin
if id.present?
photographs.find(id)
else
raise ActiveRecord::RecordNotFound
end
rescue ActiveRecord::RecordNotFound
photographs.visible.order("RANDOM()").first
end
end
Expand Down
5 changes: 0 additions & 5 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ es:
site_name: "Photographer.io"
default_title: "La comunidad fotográfica para entusiastas - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: >
Todas las fotografías tienen derechos de autor de sus respectivos creadores, y
no pueden reproducirse o republicarse sin permiso.
© Photographer.io, Afternoon Robot Ltd, 2013. Iconos cortesía de <a href="http://glyphicons.com">glyphicons.com</a>.
privacy: "Política de privacidad"
terms: "Términos"
confirm_delete: "¿Está seguro?"
Expand Down
9 changes: 0 additions & 9 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ fr:
site_name: "Photographer.io"
default_title: "La communauté photo pour les passionnés - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: >
Toutes les photographies sont la propriété de leurs auteurs respectifs et ne peuvent
être republiés sans autorisation.
© Photographer.io, Afternoon Robot Ltd, 2013. Icones utilisées avec la permission
de <a href="http://glyphicons.com">glyphicons.com</a>.
privacy: "Confidentialité"
terms: "Conditions d'utilisation"
confirm_delete: "Êtes-vous certain ?"
Expand All @@ -27,7 +21,6 @@ fr:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "Anglais"
fr: "Français"
nl_NL: "Néerlandais"
pl: "Polonais"
metadata:
Expand Down Expand Up @@ -318,8 +311,6 @@ fr:
favourites: "Favoris"
upload: "Télécharger"
delete: "Supprimer cette photo"
dropzone: >
Glissez-déposez vos images sur cette page pour les téléverser. Lisez nos %{guidelines}
public_warning: >
Cette collection est définie comme publique. Toutes les photos ici seront
listées dans la partie publique du site.
Expand Down
25 changes: 22 additions & 3 deletions config/locales/nl_NL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ nl_NL:
site_name: "Photographer.io"
default_title: "De foto's gemeenschap voor liefhebbers - Photographer.io"
page_title: "%{title} - Photographer.io"
copyright: "Op alle foto's berust het auteursrecht van de desbetreffende maker, en mag niet zonder toestemming heruitgegeven worden, gekopieerd, of vermenigvuldigd op welke wijze dan ook.\n © Photographer.io, Afternoon Robot Ltd, 2013. Pictogrammen geleverd door <a href=\"http://glyphicons.com\"\
>glyphicons.com</a>. \n"
copyright: >
Copyright op alle werken berust bij de respectievelijke fotografen, en mogen niet
zonder toestemming worden gereproduceerd.
© Photographer.io, Afternoon Robot Ltd, 2013. Met dank aan <a href="http://glyphicons.com">glyphicons.com</a>
voor de iconen.
Aangedreven door <a href="https://www.digitalocean.com/?refcode=0d41e836e212">
Digital Ocean</a> servers.
privacy: "Privacybeleid"
terms: "Algemene voorwaarden"
confirm_delete: "Weet je het zeker?"
Expand All @@ -23,9 +30,12 @@ nl_NL:
privacy_policy: "https://www.iubenda.com/privacy-policy/288645"
locales:
en: "Engels"
fr: "Frans"
es: "Español <abbr title='Beta'>*</abbr>"
fr: "Français <abbr title='Beta'>*</abbr>"
nl_NL: "Nederlands"
pl: "Pools"
pt_PT: "Português (Portugal) <abbr title='Beta'>*</abbr>"
pt_BR: "Português (Brasil) <abbr title='Beta'>*</abbr>"
ru_RU: "Russisch"
metadata:
description: >
Expand Down Expand Up @@ -209,6 +219,11 @@ nl_NL:
blurb: >
Als lid kun je je foto's uploaden en organiseren voordat je ze publiceert
op de publiek toegankelijke site.
notifications:
title: "Activiteit"
empty: >
Activiteit en meldingen zullen hier weergegeven worden, maar momenteel heb
je nog niets ontvangen!
statistics:
title: "Statistieken"
views: "Totaal aantal keer dat je foto's bekeken zijn"
Expand Down Expand Up @@ -390,6 +405,8 @@ nl_NL:
destroy:
succeeded: "Je volgt deze gebruiker niet meer."
failed: "Er ging wat mis met het verwijderen van deze gebruiker uit de volgers lijst."
notifications:
subject: "%{user} volgt je nu"
notifications:
title: "Berichten"
none: "Je hebt momenteel geen berichten."
Expand Down Expand Up @@ -526,3 +543,5 @@ nl_NL:
failed: >
Er heeft zich een probleem voorgedaan bij het aanmaken van het rapport. Kijk
hieronder voor eventuele foutmeldingen.
stories:
notification: "%{text}"
Loading

0 comments on commit 471dea2

Please sign in to comment.