forked from cartwheelweb/packaginator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start using flatblocks to make site generic and not specific to djang…
…o packages
- Loading branch information
Showing
10 changed files
with
269 additions
and
24 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,83 @@ | ||
[ | ||
{ | ||
"pk": 1, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "Django Packages", | ||
"header": "", | ||
"slug": "site.name" | ||
} | ||
}, | ||
{ | ||
"pk": 2, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "We're sorry but a server error has occurred. We've been notified and will look into it as soon as possible.\"\r\n<br />\r\nPerhaps you would like to <a href=\"http://github.com/djangopackages/djangopackages/issues\">create a ticket?</a>", | ||
"header": "Server Error!", | ||
"slug": "error.404" | ||
} | ||
}, | ||
{ | ||
"pk": 3, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "We're sorry but a server error has occurred. We've been notified and will look into it as soon as possible.\"\r\n<br />\r\nPerhaps you would like to <a href=\"http://github.com/djangopackages/djangopackages/issues\">create a ticket?</a>", | ||
"header": "Server Error!", | ||
"slug": "error.500" | ||
} | ||
}, | ||
{ | ||
"pk": 4, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "Django", | ||
"header": "", | ||
"slug": "site.package_type" | ||
} | ||
}, | ||
{ | ||
"pk": 5, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "Django Packages is a directory of reusable apps, sites, tools, and more for your Django projects.", | ||
"header": "", | ||
"slug": "site.description" | ||
} | ||
}, | ||
{ | ||
"pk": 6, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "We have sent you an e-mail. If you do not receive it within a few minutes, contact us at <a href=\"mailto:[email protected]\">[email protected]</a>.", | ||
"header": "", | ||
"slug": "email.text" | ||
} | ||
}, | ||
{ | ||
"pk": 7, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "Hosted By:<a href=\"http://www.cartwheelweb.com/\">Cartwheel, LLC</a>. Powered by <a href=\"http://www.djangoproject.com/\">Django</a>, <a href=\"http://www.pinaxproject.com/\">Pinax</a> and <a href=\"/grids/g/this-site/\">these fine packages</a>.", | ||
"header": "", | ||
"slug": "footer.text" | ||
} | ||
}, | ||
{ | ||
"pk": 8, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "© 2010 <a href=\"http://pydanny.com\">Daniel Greenfeld</a> & <a href=\"http://www.audreymroy.com\">Audrey Roy</a>", | ||
"header": "", | ||
"slug": "copyright.text" | ||
} | ||
}, | ||
{ | ||
"pk": 9, | ||
"model": "flatblocks.flatblock", | ||
"fields": { | ||
"content": "If you have any problems, please <a href=\"http://github.com/djangopackages/djangopackages/issues\">submit a ticket</a>.", | ||
"header": "", | ||
"slug": "issue.text" | ||
} | ||
} | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ bzr==2.3.1 | |
launchpadlib==1.9.8 | ||
coverage==3.4 | ||
django-coverage==1.1.1 | ||
django-flatblocks==0.5.0 |
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 |
---|---|---|
|
@@ -186,6 +186,7 @@ | |
"tastypie", | ||
"reversion", | ||
"django_sorting", | ||
"flatblocks", | ||
|
||
# Pinax | ||
"pinax.apps.account", | ||
|
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,20 +1,14 @@ | ||
{% extends "site_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load flatblock_tags %} | ||
|
||
{% block head_title %}{% trans "Not Found" %}{% endblock %} | ||
|
||
{% block body %} | ||
<div id="error-404"> | ||
<img src="{{ STATIC_URL }}img/logo_501x316.png" /> | ||
|
||
<p>{% trans "We're sorry but that page could not be found." %} | ||
|
||
Perhaps you would like to create a new | ||
<a href="{% url add_package%}">package</a> or | ||
<a href="{% url add_grid %}">grid?</a> | ||
|
||
</p> | ||
{% flatblock 'error.404' | blocktrans %} | ||
</div> | ||
|
||
{% endblock %} |
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,19 +1,14 @@ | ||
{% extends "site_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load flatblock_tags %} | ||
|
||
{% block head_title %}{% trans "Server Error" %}{% endblock %} | ||
|
||
{% block body %} | ||
<div id="error-404"> | ||
<img src="{{ STATIC_URL }}img/logo_501x316.png" /> | ||
|
||
<h2>Server Error!</h2> | ||
|
||
<p>{% trans "We're sorry but a server error has occurred. We've been notified and will look into it as soon as possible." %} | ||
<br /> | ||
Perhaps you would like to <a href="http://github.com/djangopackages/djangopackages/issues">create a ticket?</a> | ||
</p> | ||
{% flatblock 'error.500' | blocktrans %} | ||
</div> | ||
|
||
{% endblock %} |
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,3 +1,4 @@ | ||
{% load i18n %} | ||
{% load flatblock_tags %} | ||
|
||
<p>{% blocktrans %}If you have any problems, please <a href="http://github.com/djangopackages/djangopackages/issues">submit a ticket</a>.{% endblocktrans %}</p> | ||
<p>{% plain_flatblock 'issue_text' | blocktrans %}</p> |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
{% load i18n %} | ||
{% load account_tags %} | ||
{% load flatblock_tags %} | ||
|
||
{% block head_title %}{% trans "Password Reset" %}{% endblock %} | ||
|
||
|
@@ -12,5 +13,5 @@ <h1>{% trans "Password Reset" %}</h1> | |
<p><span class="warning">{% trans "Note" %}</span>: {% user_display user as user_display %}{% blocktrans %}you are already logged in as {{ user_display }}.{% endblocktrans %}</p> | ||
{% endif %} | ||
|
||
<p>{% blocktrans %}We have sent you an e-mail. If you do not receive it within a few minutes, contact us at <a href="mailto:[email protected]">[email protected]</a>.{% endblocktrans %}</p> | ||
<p>{% plain_flatblock 'email.text' | blocktrans %}</p> | ||
{% endblock %} |
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