diff --git a/items/tasks/notifications.py b/items/tasks/notifications.py index 7aa7d83..48f7358 100644 --- a/items/tasks/notifications.py +++ b/items/tasks/notifications.py @@ -7,7 +7,7 @@ from items.models import Item logger = getLogger('django.server') -@periodic_task(crontab(minute='0', hours='0', days='*/2')) +@periodic_task(crontab(minute='0', hour='0', day='*/2')) def notify_seller_of_item_bids(): items = Item.objects.all() for item in items: diff --git a/web/templates/home.html b/web/templates/home.html index 2373039..def92a4 100644 --- a/web/templates/home.html +++ b/web/templates/home.html @@ -74,4 +74,22 @@ +
+
+
+

Contact Me

+
+
+
+

Contact me at any of the locations below

+
    + {% for k,v in site_meta.social_media.items %} +
  • {{ v.comment }}
  • + {% endfor %} +
+
+
+
+
+ {% endblock %} diff --git a/xmrauctions/context_processors.py b/xmrauctions/context_processors.py index b67d7f8..2c2060b 100644 --- a/xmrauctions/context_processors.py +++ b/xmrauctions/context_processors.py @@ -9,6 +9,7 @@ def inject_site_meta(request): 'escrow_period': settings.ESCROW_PERIOD_DAYS, 'tip_address': settings.TIP_WALLET_ADDRESS, 'platform_address': settings.PLATFORM_WALLET_ADDRESS, - 'block_confirmations': settings.BLOCK_CONFIRMATIONS_RCV + 'block_confirmations': settings.BLOCK_CONFIRMATIONS_RCV, + 'social_media': settings.SOCIAL_MEDIA } } diff --git a/xmrauctions/settings.py b/xmrauctions/settings.py index de1b10f..7bc1321 100644 --- a/xmrauctions/settings.py +++ b/xmrauctions/settings.py @@ -31,6 +31,28 @@ BLOCK_CONFIRMATIONS_RCV = os.environ.get('BLOCK_CONFIRMATIONS_RCV', 3) BLOCK_EXPLORER = 'https://community.xmr.to/explorer/%s' +# Social + +IRC_USER = os.environ.get('IRC_USER', 'lza_menace') +TWITTER_USER = os.environ.get('TWITTER_USER', 'lza_menace') +GITHUB_USER = os.environ.get('GITHUB_USER', 'lalanza808') + +SOCIAL_MEDIA = { + 'comment': { + 'url': 'https://webchat.freenode.net/?room=#monero', + 'comment': f'IRC (@{IRC_USER})' + }, + 'twitter': { + 'url': f'https://twitter.com/{TWITTER_USER}', + 'comment': f'@{TWITTER_USER}' + }, + 'github': { + 'url': f'https://github.com/{GITHUB_USER}', + 'comment': f'@{GITHUB_USER}' + } +} + + # Application definition INSTALLED_APPS = [