Commits

Vladimir Mihailenco committed c1e6cc4

Tweak templates

  • Participants
  • Parent commits c7af5cd

Comments (0)

Files changed (9)

 ^Scripts
 ^settings.py
 ^dev_settings.py
-^mcblog/settings.py
+^mcblog/settings.py
+^public/site_media/cache

mcblog/decorators.py

 import functools
 
+def AWithTT():
+    pass
+    pass
+
 class memoized(object):
     """Decorator that caches a function's return value each time it is called.
     If called later with the same arguments, the cached value is returned, and

mcblog/templates/mcblog/entry_detail.html

 {% extends 'mcblog/base.html' %}
 
-{% block title %}{{ object.title }}{% endblock title %}
+{% block title %}{{ object.title }} ← {{ object.category.title }}{% endblock title %}
 
 {% block breadcrumbs %}
 <li><a href="{% url mcblog-entry-list %}">WebLog</a></li>

mcblog/templates/mcblog/entry_list.html

 <link href="{% url mcblog-entry-feed %}" rel="alternate" type="application/rss+xml" title="Фриланс разработка" />
 {% endblock extrahead %}
 
-{% block title %}WebLog{% endblock %}
-
-{% block content_title %}<h1>Entries</h1>{% endblock content_title %}
+{% block title %}loutontheweb{% endblock %}
 
 {% block content %}
 {% for entry in object_list %}

mcblog/templates/taggit/entry_tag_list.html

-{% extends 'tagging/base.html' %}
+{% extends 'taggit/base.html' %}
 
 {% block title %}Entries tags{% endblock title %}
 
 def post_links(request):
     from django.template import loader, RequestContext
     from django.template.defaultfilters import date
+
     context = RequestContext(request)
 
     links = Link.objects.filter(post_in_blog=True)
 django-debug-toolbar
 django-taggit
 django-annoying
+django-compressor
+BeautifulSoup
 markdown
 akismet
 south

templates/base.html

+{% load compress %}
+
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <title>{% block title %}Main page{% endblock %}</title>
-    <link href="{{ MEDIA_URL }}css/screen.css" media="screen" rel="stylesheet" />
+    {% compress css %}
+    <link href="{{ MEDIA_URL }}css/reset.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/global.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/layout.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/content.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/flash.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/form.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/menu.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/navigation.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/table.css" media="screen" rel="stylesheet" />
+    <link href="{{ MEDIA_URL }}css/tag-cloud.css" media="screen" rel="stylesheet" />
+    {% endcompress %}
     {% block extrastyle %}{% endblock %}
     {% block extrahead %}{% endblock %}
   </head>
           <li><a href="{% url lout-profile %}">Profile</a></li>
         </ul>
       </div><!-- navigation -->
-  
+
       <div class="left" id="left">
         <div class="content">
-          {% block content_title %}<h1>WebLog</h1>{% endblock %}
+          {% block content_title %}{% endblock %}
 
           {% if messages %}
           <ul class="messages">

templates/profile.html

 <p>
 Vladimir Mihailenco, 22 years old<br />
 Python/Django developer<br />
+Moldova, Chisinau<br />
 {% mailto 'vladimir.webdev@gmail.com' %}<br />
 Skype: vlmich, ICQ: 9044735<br />
 Languages: Russian (first), English (fluent written, basic verbal)<br />