Commits

Panayiotis Lipiridis  committed 04c0de1

The sign in buttons for Twitter & Facebook are not shown if the keys are not added

  • Participants
  • Parent commits c306c74

Comments (0)

Files changed (1)

File main/templates/signin.html

         </a>
       </div>
     </div>
-    <div class="span4">
-      <div class="well">
-        <a class="btn btn-block" href="{{facebook_signin_url}}">
-          <img src="/p/img/signin/facebook-logo-large.png" alt="Facebook Logo ">
-        </a>
+
+    {% if config.CONFIG_DB.facebook_app_id and config.CONFIG_DB.facebook_app_secret %}
+      <div class="span4">
+        <div class="well">
+          <a class="btn btn-block" href="{{facebook_signin_url}}">
+            <img src="/p/img/signin/facebook-logo-large.png" alt="Facebook Logo ">
+          </a>
+        </div>
       </div>
-    </div>
-    <div class="span4">
-      <div class="well">
-        <a class="btn btn-block" href="{{twitter_signin_url}}">
-          <img src="/p/img/signin/twitter-logo-large.png" alt="Twitter Logo ">
-        </a>
+    {% endif %}
+
+    {% if config.CONFIG_DB.twitter_consumer_key and config.CONFIG_DB.twitter_consumer_secret %}
+      <div class="span4">
+        <div class="well">
+          <a class="btn btn-block" href="{{twitter_signin_url}}">
+            <img src="/p/img/signin/twitter-logo-large.png" alt="Twitter Logo ">
+          </a>
+        </div>
       </div>
-    </div>
+    {% endif %}
   </div>
 {% endblock %}