summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2011-01-06 00:35:40 -0500
committerBlaise Laflamme <blaise@laflamme.org>2011-01-06 00:35:40 -0500
commitbe3d6f9b1bc55a5c20b04d36a0724f1ec092d169 (patch)
treee7b6e4ccc58f61f267cb770faf61925eec3c48e4 /docs/tutorials/wiki2/authorization.rst
parentfda31be8f98ac76c69662b2b1dc9afd9caf7f4c1 (diff)
downloadpyramid-be3d6f9b1bc55a5c20b04d36a0724f1ec092d169.tar.gz
pyramid-be3d6f9b1bc55a5c20b04d36a0724f1ec092d169.tar.bz2
pyramid-be3d6f9b1bc55a5c20b04d36a0724f1ec092d169.zip
Updated wiki tutorial docs
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst8
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 8d30ab807..5b07fe788 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -202,7 +202,6 @@ Add a ``login.pt`` template to your templates directory. It's
referred to within the login view we just added to ``login.py``.
.. literalinclude:: src/authorization/tutorial/templates/login.pt
- :linenos:
:language: xml
Change ``view.pt`` and ``edit.pt``
@@ -212,11 +211,10 @@ We'll also need to change our ``edit.pt`` and ``view.pt`` templates to
display a "Logout" link if someone is logged in. This link will
invoke the logout view.
-To do so we'll add this to both templates within the ``<div
-class="main_content">`` div:
+To do so we'll add this to both templates within the ``<div id="right"
+class="app-welcome align-right">`` div:
.. code-block:: xml
- :linenos:
<span tal:condition="logged_in">
<a href="${request.application_url}/logout">Logout</a>
@@ -261,13 +259,11 @@ Our ``views.py`` module will look something like this when we're done:
Our ``edit.pt`` template will look something like this when we're done:
.. literalinclude:: src/authorization/tutorial/templates/edit.pt
- :linenos:
:language: xml
Our ``view.pt`` template will look something like this when we're done:
.. literalinclude:: src/authorization/tutorial/templates/view.pt
- :linenos:
:language: xml
Revisiting the Application