Browse files

adding a side list of my projects

  • Loading branch information...
1 parent 1ff81bd commit eb1d43f71e9efab10a0e35846d5b490b8caa9515 @jaredly committed Jul 13, 2010
Showing with 24 additions and 0 deletions.
  1. +7 −0 media/css/index.css
  2. +1 −0 settings.py
  3. +4 −0 templates/base.html
  4. +12 −0 templates/blog/base.html
View
7 media/css/index.css
@@ -15,6 +15,13 @@ body {
font: normal normal normal 15px Verdana, Geneva, Arial, sans-serif;
}
+#left_of_content {
+ left: 50%;
+ margin-left: -390px;
+ margin-top: -160px;
+ position: absolute;
+ top: 50%;
+}
#title {
position:absolute;
View
1 settings.py
@@ -89,6 +89,7 @@
"navbar.context_processors.navbar",
"navbar.context_processors.navtree",
"navbar.context_processors.navbars",
+ "myprojects.extras.projects",
)
#admin/ comments/ databrowse/ gis/ __init__.pyc redirects/ sites/
#admindocs/ contenttypes/ flatpages/ humanize/ localflavor/ sessions/ syndication/
View
4 templates/base.html
@@ -22,6 +22,10 @@
<body id="{% block body_id %}{% endblock %}" class="{% block body_class %}{{request.META.REQUEST_URI|slugify}}{% endblock %}">
{% block body %}
+ <div id="left_of_content">
+ {% block left_of_content %}
+ {% endblock %}
+ </div>
<div id="main">
{% block notitle %}
<div id="smalltitle">
View
12 templates/blog/base.html
@@ -4,3 +4,15 @@
{{ block.super }}
<link rel='stylesheet' href='/media/css/blog.css'/>
{% endblock %}
+
+{% block left_of_content %}
+
+ {% for obj in ctx_projects|dictsortreversed:"time" %}
+ <div class="project-image">
+ <a href="{{ obj.get_absolute_url }}">
+ <img src="{{ obj.image.url }}" title="{{ obj.title }}"/>
+ </a>
+ </div>
+ {% endfor %}
+
+{% endblock %}

0 comments on commit eb1d43f

Please sign in to comment.