Skip to content

Instantly share code, notes, and snippets.

@cmelbye
Created November 23, 2010 01:17
Show Gist options
  • Save cmelbye/711068 to your computer and use it in GitHub Desktop.
Save cmelbye/711068 to your computer and use it in GitHub Desktop.
{% if user %}
<div class="left_column">
{% block content %}
{% endblock %}
</div>
<div class="right_column">
<div class="sidebar_header user_info">
<h2>Welcome.</h2>
</div>
<div class="sidebar_content">
<div class="blog_title"><%= current_user.blog_title %></div>
<ul>
<li><a href="/dashboard">dashboard</a></li>
<li><a href="http://foo.squidd.me">visit your blog</a></li>
<li><a href="/settings">settings</a></li>
<li><a href="/logout">log out</a></li>
</ul>
<div class="blog_title">Followers</div>
<ul>
<li>you have <a href="#">0 followers</a></li>
<il>you're following <a href="#">0 people</a></li>
</ul>
</div>
</div>
{% else %}
{% block content %}
{% endblock %}
{% endif %}
@relrod
Copy link

relrod commented Nov 23, 2010

Some kind of mix of Django template and ERB? O.o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment