]> git.parisson.com Git - django-social-auth.git/commitdiff
Added robots.txt and marked some link targets and nofollow
authorMatías Aguirre <matiasaguirre@gmail.com>
Sun, 9 Jan 2011 14:46:05 +0000 (12:46 -0200)
committerMatías Aguirre <matiasaguirre@gmail.com>
Sun, 9 Jan 2011 14:46:05 +0000 (12:46 -0200)
example/robots.txt [new file with mode: 0644]
example/templates/base.html
example/templates/done.html
example/templates/home.html
example/urls.py

diff --git a/example/robots.txt b/example/robots.txt
new file mode 100644 (file)
index 0000000..b6d9c8e
--- /dev/null
@@ -0,0 +1,8 @@
+User-agent: *
+Disallow: /login/
+Disallow: /logout/
+Disallow: /associate/
+Disallow: /done/
+Disallow: /error/
+Disallow: /admin/
+Disallow: /complete/
index 5abaa6aac297896b37805ec4c35e951703831ae5..a96fd893cfdb048871a231746333194882ffb120 100644 (file)
@@ -30,7 +30,7 @@
     <h1>Django Social Auth</h1>
     <p class="description">
       Django Social Auth is an easy to setup social authentication/registration mechanism for Django projects.
-      Check the documentation on <a hre="https://github.com/omab/django-social-auth#readme" title="docs">Github</a>
+      Check the documentation on <a href="https://github.com/omab/django-social-auth#readme" title="docs">Github</a>
     </p>
 
     <h2 id="heading">{% block heading %}{% endblock %}</h2>
index cfbd03b67cd7735c2e72bdce06ee85f2a5c0634f..c71060192f4c5b8f946054c521f878e5ad9477b6 100644 (file)
   <h3>Associate new credentials:</h3>
   <ul>
     <li>
-      <a href="/associate/twitter/">Twitter</a>
+      <a rel="nofollow" href="/associate/twitter/">Twitter</a>
       {% if twitter %}<span class="associated">(associated)</span>{% endif %}
     </li>
     <li>
-      <a href="/associate/facebook/">Facebook</a>
+      <a rel="nofollow" href="/associate/facebook/">Facebook</a>
       {% if facebook %}<span class="associated">(associated)</span>{% endif %}
     </li>
     <li>
-      <a href="/associate/orkut/">Orkut</a>
+      <a rel="nofollow" href="/associate/orkut/">Orkut</a>
       {% if orkut %}<span class="associated">(associated)</span>{% endif %}
     </li>
     <li>
-      <a href="/associate/google/">Google</a>
+      <a rel="nofollow" href="/associate/google/">Google</a>
       {% if google %}<span class="associated">(associated)</span>{% endif %}
     </li>
     <li>
-      <a href="/associate/yahoo/">Yahoo</a>
+      <a rel="nofollow" href="/associate/yahoo/">Yahoo</a>
       {% if yahoo %}<span class="associated">(associated)</span>{% endif %}
     </li>
 
@@ -49,6 +49,6 @@
 </div>
 
 <div>
-  <a class="logout" href="/logout/">Logout</a>
+  <a rel="nofollow" class="logout" href="/logout/">Logout</a>
 </div>
 {% endblock %}
index 582aa2466fb8dcf5c38c0de9e638ab76725f4a43..a5d82b70ee196040b829b56be08acee62ae9de34 100644 (file)
@@ -4,25 +4,25 @@
 
 {% block content %}
 <div>
-  <h3>Login using <a href="http://oauth.net/">OAuth</a> from:</h3>
+  <h3>Login using <a target="_blank" href="http://oauth.net/" title="OAuth">OAuth</a> from:</h3>
   <ul>
-    <li><a href="/login/twitter/">Twitter</a></li>
-    <li><a href="/login/facebook/">Facebook</a></li>
-    <li><a href="/login/orkut/">Orkut</a></li>
+    <li><a rel="nofollow" href="/login/twitter/">Twitter</a></li>
+    <li><a rel="nofollow" href="/login/facebook/">Facebook</a></li>
+    <li><a rel="nofollow" href="/login/orkut/">Orkut</a></li>
   </ul>
 </div>
 
 <div>
-  <h3>Login using <a href="http://openid.net/">OpenId</a> from:</h3>
+  <h3>Login using <a target="_blank" href="http://openid.net/" title="OpenId">OpenId</a> from:</h3>
   <ul>
-    <li><a href="/login/google/">Google</a></li>
-    <li><a href="/login/yahoo/">Yahoo</a></li>
+    <li><a rel="nofollow" href="/login/google/">Google</a></li>
+    <li><a rel="nofollow" href="/login/yahoo/">Yahoo</a></li>
     <li>
       <form action="/login/openid/" method="post">{% csrf_token %}
         <label for="openid_identifier">Other provider</label>
         <input id="openid_identifier" type="text" value="" name="openid_identifier" />
         <input type="submit" />
-        <p class="helptext">Like your personal <a href="https://www.myopenid.com/" title="My OpenId">myopenid</a></p>
+        <p class="helptext">Like your personal <a target="_blank" href="https://www.myopenid.com/" title="My OpenId">myopenid</a></p>
       </form>
     </li>
   </ul>
index 7bd6d6f5f4e1ff671c6025528d828fbc9ec61d1b..798b836e60c4af3056973d4c94b774b2896a6127 100644 (file)
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import *
+from django.conf.urls.defaults import patterns, url, include
 from django.contrib import admin
 
 from app.views import home, done, logout, error