From f679b7642a1fca51409907cbc3436faa82bcc178 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 1 Mar 2016 09:58:48 +0530 Subject: [PATCH] [minor] [docs] --- frappe/docs/user/en/tutorial/web-views.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/docs/user/en/tutorial/web-views.md b/frappe/docs/user/en/tutorial/web-views.md index a1dd2af2c6..ab2f442a98 100755 --- a/frappe/docs/user/en/tutorial/web-views.md +++ b/frappe/docs/user/en/tutorial/web-views.md @@ -24,7 +24,7 @@ Click on one article and you will see the default web view Now if you want to make a better list view for the article, drop a file called `list_item.html` in the `library_management/doctype/article` folder. Here is an example file: -
+ {% raw %}

{{ doc.article_name }}

{{ doc.author }}

{{ (doc.description[:200] + "...") - if doc.description|length > 200 else doc.description }}

+ if doc.description|len > 200 else doc.description }}

Publisher: {{ doc.publisher }}

-
+
{% endraw %} Here, you will get all the properties of the article in the `doc` object.