]> git.parisson.com Git - django-social-auth.git/commitdiff
Common templates directory
authorMatías Aguirre <matiasaguirre@gmail.com>
Thu, 6 Jan 2011 02:58:21 +0000 (00:58 -0200)
committerMatías Aguirre <matiasaguirre@gmail.com>
Thu, 6 Jan 2011 02:58:21 +0000 (00:58 -0200)
example/app/templates/base.html [deleted file]
example/app/templates/done.html [deleted file]
example/app/templates/error.html [deleted file]
example/app/templates/home.html [deleted file]
example/templates/base.html [new file with mode: 0644]
example/templates/done.html [new file with mode: 0644]
example/templates/error.html [new file with mode: 0644]
example/templates/home.html [new file with mode: 0644]

diff --git a/example/app/templates/base.html b/example/app/templates/base.html
deleted file mode 100644 (file)
index ab5162d..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<html>
-  <head>
-    <title>Social authentication | {% block title %}{% endblock %}</title>
-    <style>
-      body {
-        background-color: #eee;
-        padding: 10px 20px;
-        font-family: sans-serif;
-        color: #333;
-      }
-      h1 {
-        font-size: 1.5em;
-        border-bottom: 1px solid #ddd;
-        width: 95%;
-      }
-      h2 {
-        font-size: 1.2em;
-      }
-      a, a:visited {
-        color: #459FDA;
-        text-decoration: none;
-      }
-      a:hover {
-        text-decoration: underline;
-      }
-      input[type="text"] {
-        border: 1px solid #ccc;
-        padding: 3px;
-        width: 300px;
-      }
-      input[type="submit"] {
-        padding: 2px 20px;
-        margin-left: -5px;
-      }
-      label {
-        display: block;
-      }
-      th {
-        text-align: left;
-        padding-right: 25px;
-        font-weight: normal;
-      }
-      th, td {
-          padding: 5px 15px;
-      }
-      tr.even {
-        background-color: #ddd;
-      }
-      #content {
-        padding: 5px 20px;
-      }
-      .helptext {
-        font-size: 0.9em;
-        color: #aaa;
-        margin: 0;
-        padding: 0;
-      }
-      a.logout, .associated, .error {
-        color: #c00;
-      }
-      #forkme {
-        position: absolute;
-        top: 0;
-        right: 0;
-        border: 0;
-      }
-    </style>
-  </head>
-  <body>
-    <h1>{% block heading %}{% endblock %}</h1>
-    <div id="content">
-      {% block content %}{% endblock %}
-    </div>
-    <a id="forkme" href="http://github.com/omab/django-social-auth"><img src="https://assets2.github.com/img/e6bef7a091f5f3138b8cd40bc3e114258dd68ddf?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_right_red_aa0000.png&path=" alt="Fork me on GitHub"></a>
-  </body>
-</html>
diff --git a/example/app/templates/done.html b/example/app/templates/done.html
deleted file mode 100644 (file)
index a28fa04..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-{% extends "base.html" %}
-{% block title %}Logged in{% endblock %}
-
-{% block heading %}Logged in!{% endblock %}
-
-{% block content %}
-<div>
-  <h2>User data:</h2>
-  <table>
-    <tr class="odd"><th>Id:</th> <td>{{ user.id }}</td></tr>
-    <tr class="even"><th>Username:</th> <td>{{ user.username }}</td></tr>
-    <tr class="odd"><th>Email:</th> <td>{{ user.email|default:"Not provided" }}</td></tr>
-    <tr class="even"><th>First name:</th> <td>{{ user.first_name|default:"Not provided" }}</td></tr>
-    <tr class="odd"><th>Last name:</th> <td>{{ user.last_name|default:"Not provided" }}</td></tr>
-  </table>
-</div>
-
-<div>
-  <h2>Associate new credentials:</h2>
-  <ul>
-    <li>
-      <a href="/associate/twitter/">Twitter</a>
-      {% if twitter %}<span class="associated">(associated)</span>{% endif %}
-    </li>
-    <li>
-      <a href="/associate/facebook/">Facebook</a>
-      {% if facebook %}<span class="associated">(associated)</span>{% endif %}
-    </li>
-    <li>
-      <a href="/associate/orkut/">Orkut</a>
-      {% if orkut %}<span class="associated">(associated)</span>{% endif %}
-    </li>
-    <li>
-      <a href="/associate/google/">Google</a>
-      {% if google %}<span class="associated">(associated)</span>{% endif %}
-    </li>
-    <li>
-      <a href="/associate/yahoo/">Yahoo</a>
-      {% if yahoo %}<span class="associated">(associated)</span>{% endif %}
-    </li>
-
-    <li>
-      <form action="/associate/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" />
-      </form>
-    </li>
-  </ul>
-</div>
-
-<div>
-  <a class="logout" href="/logout/">Logout</a>
-</div>
-{% endblock %}
diff --git a/example/app/templates/error.html b/example/app/templates/error.html
deleted file mode 100644 (file)
index 99e1e58..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "base.html" %}
-{% block title %}Error{% endblock %}
-
-{% block heading %}Error!{% endblock %}
-
-{% block content %}
-<div>
-  <p class="error">Sorry but some error made you impossible to login.</p>
-  <p>Please try again <a href="/">Home</a></p>
-</div>
-{% endblock %}
diff --git a/example/app/templates/home.html b/example/app/templates/home.html
deleted file mode 100644 (file)
index 67252cc..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-{% extends "base.html" %}
-{% block title %}Login{% endblock %}
-
-{% block heading %}Login using any of the following methods{% endblock %}
-
-{% block content %}
-<div>
-  <h2>Login using <a href="http://oauth.net/">OAuth</a> from:</h2>
-  <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>
-  </ul>
-</div>
-
-<div>
-  <h2>Login using <a href="http://openid.net/">OpenId</a> from:</h2>
-  <ul>
-    <li><a href="/login/google/">Google</a></li>
-    <li><a 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>
-      </form>
-    </li>
-  </ul>
-</div>
-{% endblock %}
diff --git a/example/templates/base.html b/example/templates/base.html
new file mode 100644 (file)
index 0000000..ab5162d
--- /dev/null
@@ -0,0 +1,76 @@
+<html>
+  <head>
+    <title>Social authentication | {% block title %}{% endblock %}</title>
+    <style>
+      body {
+        background-color: #eee;
+        padding: 10px 20px;
+        font-family: sans-serif;
+        color: #333;
+      }
+      h1 {
+        font-size: 1.5em;
+        border-bottom: 1px solid #ddd;
+        width: 95%;
+      }
+      h2 {
+        font-size: 1.2em;
+      }
+      a, a:visited {
+        color: #459FDA;
+        text-decoration: none;
+      }
+      a:hover {
+        text-decoration: underline;
+      }
+      input[type="text"] {
+        border: 1px solid #ccc;
+        padding: 3px;
+        width: 300px;
+      }
+      input[type="submit"] {
+        padding: 2px 20px;
+        margin-left: -5px;
+      }
+      label {
+        display: block;
+      }
+      th {
+        text-align: left;
+        padding-right: 25px;
+        font-weight: normal;
+      }
+      th, td {
+          padding: 5px 15px;
+      }
+      tr.even {
+        background-color: #ddd;
+      }
+      #content {
+        padding: 5px 20px;
+      }
+      .helptext {
+        font-size: 0.9em;
+        color: #aaa;
+        margin: 0;
+        padding: 0;
+      }
+      a.logout, .associated, .error {
+        color: #c00;
+      }
+      #forkme {
+        position: absolute;
+        top: 0;
+        right: 0;
+        border: 0;
+      }
+    </style>
+  </head>
+  <body>
+    <h1>{% block heading %}{% endblock %}</h1>
+    <div id="content">
+      {% block content %}{% endblock %}
+    </div>
+    <a id="forkme" href="http://github.com/omab/django-social-auth"><img src="https://assets2.github.com/img/e6bef7a091f5f3138b8cd40bc3e114258dd68ddf?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_right_red_aa0000.png&path=" alt="Fork me on GitHub"></a>
+  </body>
+</html>
diff --git a/example/templates/done.html b/example/templates/done.html
new file mode 100644 (file)
index 0000000..a28fa04
--- /dev/null
@@ -0,0 +1,55 @@
+{% extends "base.html" %}
+{% block title %}Logged in{% endblock %}
+
+{% block heading %}Logged in!{% endblock %}
+
+{% block content %}
+<div>
+  <h2>User data:</h2>
+  <table>
+    <tr class="odd"><th>Id:</th> <td>{{ user.id }}</td></tr>
+    <tr class="even"><th>Username:</th> <td>{{ user.username }}</td></tr>
+    <tr class="odd"><th>Email:</th> <td>{{ user.email|default:"Not provided" }}</td></tr>
+    <tr class="even"><th>First name:</th> <td>{{ user.first_name|default:"Not provided" }}</td></tr>
+    <tr class="odd"><th>Last name:</th> <td>{{ user.last_name|default:"Not provided" }}</td></tr>
+  </table>
+</div>
+
+<div>
+  <h2>Associate new credentials:</h2>
+  <ul>
+    <li>
+      <a href="/associate/twitter/">Twitter</a>
+      {% if twitter %}<span class="associated">(associated)</span>{% endif %}
+    </li>
+    <li>
+      <a href="/associate/facebook/">Facebook</a>
+      {% if facebook %}<span class="associated">(associated)</span>{% endif %}
+    </li>
+    <li>
+      <a href="/associate/orkut/">Orkut</a>
+      {% if orkut %}<span class="associated">(associated)</span>{% endif %}
+    </li>
+    <li>
+      <a href="/associate/google/">Google</a>
+      {% if google %}<span class="associated">(associated)</span>{% endif %}
+    </li>
+    <li>
+      <a href="/associate/yahoo/">Yahoo</a>
+      {% if yahoo %}<span class="associated">(associated)</span>{% endif %}
+    </li>
+
+    <li>
+      <form action="/associate/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" />
+      </form>
+    </li>
+  </ul>
+</div>
+
+<div>
+  <a class="logout" href="/logout/">Logout</a>
+</div>
+{% endblock %}
diff --git a/example/templates/error.html b/example/templates/error.html
new file mode 100644 (file)
index 0000000..99e1e58
--- /dev/null
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+{% block title %}Error{% endblock %}
+
+{% block heading %}Error!{% endblock %}
+
+{% block content %}
+<div>
+  <p class="error">Sorry but some error made you impossible to login.</p>
+  <p>Please try again <a href="/">Home</a></p>
+</div>
+{% endblock %}
diff --git a/example/templates/home.html b/example/templates/home.html
new file mode 100644 (file)
index 0000000..67252cc
--- /dev/null
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+{% block title %}Login{% endblock %}
+
+{% block heading %}Login using any of the following methods{% endblock %}
+
+{% block content %}
+<div>
+  <h2>Login using <a href="http://oauth.net/">OAuth</a> from:</h2>
+  <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>
+  </ul>
+</div>
+
+<div>
+  <h2>Login using <a href="http://openid.net/">OpenId</a> from:</h2>
+  <ul>
+    <li><a href="/login/google/">Google</a></li>
+    <li><a 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>
+      </form>
+    </li>
+  </ul>
+</div>
+{% endblock %}