add twitter accounts to dropdown
parent
54ba810ec3
commit
54f79bb664
|
@ -20,6 +20,7 @@ DISABLE_DOWNVOTES = False
|
|||
DESCRIPTION = "rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!"
|
||||
EMAIL = "rdrama@rdrama.net"
|
||||
TELEGRAM_ID = ""
|
||||
TWITTER_ID = ""
|
||||
|
||||
DEFAULT_CONFIG_VALUE = "blahblahblah"
|
||||
SITE = environ.get("SITE").strip()
|
||||
|
@ -606,6 +607,7 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}:
|
|||
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
|
||||
|
||||
TELEGRAM_ID = "rdramanet"
|
||||
TWITTER_ID = "rdramanet"
|
||||
DEFAULT_TIME_FILTER = "day"
|
||||
|
||||
FEATURES['PRONOUNS'] = True
|
||||
|
@ -689,6 +691,7 @@ elif SITE == 'watchpeopledie.tv':
|
|||
|
||||
EMAIL = "wpd@watchpeopledie.tv"
|
||||
TELEGRAM_ID = "wpdtv"
|
||||
TWITTER_ID = "wpd__tv"
|
||||
DEFAULT_TIME_FILTER = "day"
|
||||
|
||||
DESCRIPTION = "People die and this is the place to see it. You only have one life, don't make the mistakes seen here."
|
||||
|
|
|
@ -142,7 +142,7 @@ def inject_constants():
|
|||
"BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "CHANGELOG_THREAD":CHANGELOG_THREAD,
|
||||
"approved_embed_hosts":approved_embed_hosts, "POST_BODY_LENGTH_LIMIT":POST_BODY_LENGTH_LIMIT,
|
||||
"SITE_SETTINGS":get_settings(), "EMAIL":EMAIL, "max": max, "min": min, "can_see":can_see,
|
||||
"TELEGRAM_ID":TELEGRAM_ID, "TRUESCORE_MINIMUM":TRUESCORE_MINIMUM, "PROGSTACK_ID":PROGSTACK_ID,
|
||||
"TELEGRAM_ID":TELEGRAM_ID, "TWITTER_ID":TWITTER_ID, "TRUESCORE_MINIMUM":TRUESCORE_MINIMUM, "PROGSTACK_ID":PROGSTACK_ID,
|
||||
"DONATE_LINK":DONATE_LINK, "DONATE_SERVICE":DONATE_SERVICE,
|
||||
"HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":','.join(IMAGE_FORMATS),
|
||||
"PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "POST_SORTS":POST_SORTS,
|
||||
|
|
|
@ -334,6 +334,10 @@
|
|||
<a rel="nofollow noopener" class="dropdown-item" href="https://t.me/s/{{TELEGRAM_ID}}"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
|
||||
{% endif %}
|
||||
|
||||
{% if TWITTER_ID %}
|
||||
<a rel="nofollow noopener" class="dropdown-item" href="https://twitter.com/{{TWITTER_ID}}"><i class="fab fa-twitter fa-fw mr-3"></i>Twitter Account</a>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>
|
||||
{% endif %}
|
||||
|
@ -397,6 +401,10 @@
|
|||
<a rel="nofollow noopener" class="nav-item nav-link" href="https://t.me/s/{{TELEGRAM_ID}}"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
|
||||
{% endif %}
|
||||
|
||||
{% if TWITTER_ID %}
|
||||
<a rel="nofollow noopener" class="nav-item nav-link" href="https://twitter.com/{{TWITTER_ID}}"><i class="fab fa-twitter fa-fw mr-3"></i>Twitter Account</a>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue