Commits

Kai Diefenbach committed 1b3b12c

Renamed lfc_object to lfc_context

Comments (0)

Files changed (9)

lfc_theme/templates/comments/comments.html

 {% load i18n %}
 {% load comments %}
-{% if lfc_object %}
-    {% get_comment_list for lfc_object as comment_list %}
+{% if lfc_context %}
+    {% get_comment_list for lfc_context as comment_list %}
 
     {% if comment_list %}
         <h2 class="underlined">
 
     {% endif %}
 
-    {% if lfc_object.are_comments_allowed %}
+    {% if lfc_context.are_comments_allowed %}
         <h2 class="underlined">{% trans 'Leave a comment' %}</h2>
-        {% render_comment_form for lfc_object %}
+        {% render_comment_form for lfc_context %}
     {% endif %}                                
 {% endif %}
 

lfc_theme/templates/comments/form.html

 
         <input type="hidden"
                name="next"
-               value="{{ lfc_object.get_absolute_url }}" />
+               value="{{ lfc_context.get_absolute_url }}" />
 
         <p class="submit">
           <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />

lfc_theme/templates/lfc/base.html

 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
     <head>
-        <title>{{ PORTAL.title }} - {{ lfc_object.title }}</title>
+        <title>{{ PORTAL.title }} - {{ lfc_context.title }}</title>
 
         <link rel="alternate" type="application/rss+xml" title="RSS" href='/rss/blog' />
 
         <meta name="generator" content="LFC - Lightning Fast CMS" />
-        {% if lfc_object.get_meta_keywords %}<meta name="keywords" content="{{lfc_object.get_meta_keywords}}" />{% endif %}
-        {% if lfc_object.get_meta_description %}<meta name="description" content="{{lfc_object.get_meta_description}}" />{% endif %}
+        {% if lfc_context.get_meta_keywords %}<meta name="keywords" content="{{lfc_context.get_meta_keywords}}" />{% endif %}
+        {% if lfc_context.get_meta_description %}<meta name="description" content="{{lfc_context.get_meta_description}}" />{% endif %}
 
         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}lfc/lightbox/css/jquery.lightbox-0.5.css">
         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}lfc/yui/reset-fonts.css">
 
         {% block javascript %}{% endblock %}
     </head>
-    <body class="{{ lfc_object.slug }} {% block section %}{% endblock %}">
+    <body class="{{ lfc_context.slug }} {% block section %}{% endblock %}">
         <div id="header">
             {% if user.is_authenticated %}
                 <div class="container">
                                 <span>{{ user.username }}</span>
                             {% endif %}
                             | <a class="site-action" href="{% url lfc_logout %}">{% trans "Logout" %}</a>
-                            {% if lfc_object %}
-                                | <a class="site-action" href="{% url lfc_manage_object lfc_object.id %}">{% trans "Manage" %}</a>
+                            {% if lfc_context %}
+                                | <a class="site-action" href="{% url lfc_manage_object lfc_context.id %}">{% trans "Manage" %}</a>
                             {% else %}
                                 | <a class="site-action" href="{% url lfc_manage_portal %}">{% trans "Manage" %}</a>
                             {% endif %}
             {% if LFC_MULTILANGUAGE %}
                 <div class="container logo">
                     <div class="span-18">
-                        <h1 class="logo"><a href="/{{ lfc_object.language }}">LFC</a></h1>
+                        <h1 class="logo"><a href="/{{ lfc_context.language }}">LFC</a></h1>
                     </div>
                     <div class="span-6 last flags">
                         &nbsp;
-                        {% if lfc_object %}
-                            <a href='{% url lfc_set_language language="de" id=lfc_object.id %}'>
+                        {% if lfc_context %}
+                            <a href='{% url lfc_set_language language="de" id=lfc_context.id %}'>
                                 {% trans 'German' %}</a> |
-                            <a href='{% url lfc_set_language language="en" id=lfc_object.id %}'>
+                            <a href='{% url lfc_set_language language="en" id=lfc_context.id %}'>
                                 {% trans 'English' %}</a>
                         {% else %}
                             <a href='{% url lfc_set_language language="de" %}'>
         <div id="tabs">
             <div class="container">
                 <div class="span-16">
-                    {% if lfc_object %}
-                        {% tabs lfc_object %}
+                    {% if lfc_context %}
+                        {% tabs lfc_context %}
                     {% else %}
                         {% tabs %}
                     {% endif %}
                         <div class="span-5">
                             <div class="left-slot">
                                 {% block left-slot %}
-                                    {% portlet_slot 'Left' lfc_object.get_specific_type %}
+                                    {% portlet_slot 'Left' lfc_context.get_specific_type %}
                                 {% endblock %}
                             </div>
                         </div>
                         <div class="span-5 last">
                             <div class="rights-slot">
                                 {% block right-slot %}
-                                    {% portlet_slot 'Right' lfc_object.get_specific_type %}
+                                    {% portlet_slot 'Right' lfc_context.get_specific_type %}
                                 {% endblock %}
                             </div>
                         </div>

lfc_theme/templates/lfc/search_results.html

 {% endblock %}
 
 {% block content %}
-    <h1>{{ lfc_object.title }}</h1>
+    <h1>{{ lfc_context.title }}</h1>
 
-    {% if lfc_object.text %}
-        {{ lfc_object.text|safe }}
+    {% if lfc_context.text %}
+        {{ lfc_context.text|safe }}
     {% endif %}
 
     <form action='{% url lfc_search "en" %}'>

lfc_theme/templates/lfc/templates/article.html

 {% block section %}article{% endblock %}
 
 {% block content %}
-    {% if lfc_object.display_title %}
-        <h1 class="first-heading">{{ lfc_object.title }}</h1>
+    {% if lfc_context.display_title %}
+        <h1 class="first-heading">{{ lfc_context.title }}</h1>
     {% endif %}
     
     <div class="blog-entry">
-        {% if lfc_object.get_image %}
-            <a href="{{ lfc_object.get_image.image.url_800x800 }}"
+        {% if lfc_context.get_image %}
+            <a href="{{ lfc_context.get_image.image.url_800x800 }}"
                class="photo-image"
-               title="{{lfc_object.get_image.title }}">
+               title="{{lfc_context.get_image.title }}">
                 <img class="left"
-                     src="{{ lfc_object.get_image.image.url_200x200 }}"
-                     alt="{{ lfc_object.get_image.image.title }}"
-                     title="{{ lfc_object.get_image.image.title }}" />
+                     src="{{ lfc_context.get_image.image.url_200x200 }}"
+                     alt="{{ lfc_context.get_image.image.title }}"
+                     title="{{ lfc_context.get_image.image.title }}" />
             </a>
         {% endif %}
         <div>
-            {{ lfc_object.text|safe }}
+            {{ lfc_context.text|safe }}
         </div>
     </div>
 {% endblock %}

lfc_theme/templates/lfc/templates/gallery.html

 {% load portlets_tags %}
 
 {% block content %}
-    {% if lfc_object.display_title %}
-        <h1 class="first-heading">{{ lfc_object.title }}</h1>
+    {% if lfc_context.display_title %}
+        <h1 class="first-heading">{{ lfc_context.title }}</h1>
     {% endif %}
-    <div>{{ lfc_object.text|safe }}</div>
+    <div>{{ lfc_context.text|safe }}</div>
 
     <table width="100%" cellpadding="0" cellspacing="0">
         {% for row in images %}

lfc_theme/templates/lfc/templates/overview.html

 
 {% block section %}overview{% endblock %}
 {% block content %}
-    {% if lfc_object.display_title %}
-        <h1 class="first-heading">{{ lfc_object.title }}</h1>
+    {% if lfc_context.display_title %}
+        <h1 class="first-heading">{{ lfc_context.title }}</h1>
     {% endif %}
 
     {% for sub_object in sub_objects %}

lfc_theme/templates/lfc/templates/plain.html

 {% block section %}plain{% endblock %}
 
 {% block content %}
-    {% if lfc_object.display_title %}
-        <h1 class="first-heading">{{ lfc_object.title }}</h1>
+    {% if lfc_context.display_title %}
+        <h1 class="first-heading">{{ lfc_context.title }}</h1>
     {% endif %}
     
     <div>
-        {{ lfc_object.text|safe }}
+        {{ lfc_context.text|safe }}
     </div>
 {% endblock %}

lfc_theme/templatetags/lfc_theme_tags.py

     """
     """
     def render(self, context):
-        page = context.get("lfc_object")
+        page = context.get("lfc_context")
         if page:
             page = page.get_specific_type()