-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernhard Posselt
committed
Jun 25, 2016
1 parent
007e192
commit 7810eda
Showing
5 changed files
with
75 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends 'base.html' %} | ||
{% load i18n %} | ||
{% load staticfiles %} | ||
|
||
{% block content %} | ||
<div class="row"> | ||
<div class="col-sm-3"> | ||
{% if categories %} | ||
<h2>Categories</h2> | ||
<ul id="sidebar" class="nav nav-pills nav-stacked"> | ||
<li class="{% if cat.id == current_category.id %}active{% endif %}"> | ||
<a href="{% url 'home' %}">{% trans 'All Apps' %}</a> | ||
</li> | ||
{% for cat in categories %} | ||
<li class="{% if cat.id == current_category.id %}active{% endif %}"> | ||
<a href="{% url 'category_list_category' cat.id %}">{{cat.name }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
<div class="col-sm-9"> | ||
{% block apps %}{% endblock apps %} | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{% extends "base.html" %} | ||
{% extends 'app/base.html' %} | ||
|
||
{% block content %} | ||
{% block apps %} | ||
<div class="jumbotron"> | ||
<h1>{{ current_category.name }}</h1> | ||
<p>{{ current_category.description }}</p> | ||
<h1>{{ current_category.name }}</h1> | ||
<p>{{ current_category.description }}</p> | ||
</div> | ||
{% for app in object_list %} | ||
<div class="col-sm-4"> | ||
<div class="well"> | ||
<h3><a href="{%url 'app_detail' id=app.id %}">{{ app.name }}</a></h3> | ||
{{ app.description }} | ||
</div> | ||
</div> | ||
{% for app in object_list %} | ||
<div class="col-sm-4"> | ||
<div class="well"> | ||
<h3><a href="{% url 'app_detail' id=app.id %}">{{ app.name }}</a></h3> | ||
{{ app.description }} | ||
</div> | ||
</div> | ||
{% if forloop.counter|divisibleby:4 %} | ||
</div> | ||
<div class="row"> | ||
<div class="row"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endblock content %} | ||
{% endfor %} | ||
|
||
{% endblock apps %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters