Skip to content

Commit

Permalink
Merge of NRB's template work
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Mar 14, 2011
1 parent fe08d99 commit 101645e
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
==============

* Add unique constraint to slug field
* Relocated partial templates to 'includes' directories.
* Search box on every page
* Sorting

Expand Down
5 changes: 4 additions & 1 deletion CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ Contributors
Andrii Kurinny
James Punteney
Jonas Obrist
Taavi Taijala
Nolan Bruabker
Preston Holmes
Taavi Taijala


Empty file.
File renamed without changes.
4 changes: 2 additions & 2 deletions templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ <h1>{% trans "Log In" %}</h1>
</fieldset>
</form>

{% include "account/_trouble_ticket.html" %}
{% include "account/includes/_trouble_ticket.html" %}
{% endblock %}

{% block extra_body %}
<script>
$("#id_username").focus();
</script>
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions templates/account/password_reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ <h1>{% trans "Password Reset" %}</h1>
</fieldset>
</form>

{% include "account/_trouble_ticket.html" %}
{% include "account/includes/_trouble_ticket.html" %}
{% endblock %}

{% block extra_body %}
<script>
$("#id_email").focus();
</script>
{% endblock %}
{% endblock %}
4 changes: 2 additions & 2 deletions templates/account/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>{% trans "Sign Up" %}</h1>
{% url privacy as privacy_url %}
<p>{% blocktrans %}By clicking "Sign Up", you are indicating that you have read and agree to the <a href="{{ terms_url }}">Terms of Use</a>.{% endblocktrans %}</p>

{% include "account/_trouble_ticket.html" %}
{% include "account/includes/_trouble_ticket.html" %}

{% endif %}
{% endblock %}
Expand All @@ -47,4 +47,4 @@ <h1>{% trans "Sign Up" %}</h1>
});
</script>
{% endblock %}
{% endcomment %}
{% endcomment %}
17 changes: 0 additions & 17 deletions templates/package/_package_row.html

This file was deleted.

4 changes: 2 additions & 2 deletions templates/package/ajax_package_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h2>{% if packages.count %}Packages{% else %}No packages found{% endif %}</h2>
<p class="editable-cell">Click a package to add it to the grid.</p>
{% endif %}
{% for package in packages %}
{% include "package/_package.html" %}
{% include "package/includes/_package.html" %}
{% endfor %}
<script type="text/javascript">

Expand All @@ -23,4 +23,4 @@ <h2>{% if packages.count %}Packages{% else %}No packages found{% endif %}</h2>
{% endfor %}

</script>
</div>
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions templates/package/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ <h2>Comparison Grids</h2>
{% if forloop.last %}
<div id="package-gridname">
<a class="awesome forestgreen" id="find-a-grid" href="#">Find another grid to join!</a>
{% include "package/_attach_grid.html" %}
{% include "package/includes/_attach_grid.html" %}
</div>

{% endif %}
{% empty %}
<div id="package-gridname">
<a class="awesome forestgreen" id="find-a-grid" href="#">Find a grid to join!</a>
{% include "package/_attach_grid.html" %}
{% include "package/includes/_attach_grid.html" %}
</div>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion templates/package/package_archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>Latest 15 packages added</h1>

<div id="packages">
{% for package in latest %}
{% include "package/_package.html"%}
{% include "package/includes/_package.html"%}
{% endfor %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/package/package_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1><a href="{% url home %}">home</a> / <a href="{% url packages %}">packages</a
<script src="{{ STATIC_URL }}js/urlify.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
{% include "package/_package_form.js" %}
{% include "package/includes/_package_form.js" %}
});
</script>

Expand Down
2 changes: 1 addition & 1 deletion templates/searchv1/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2>{% if packages.count %}Packages{% else %}No packages found{% endif %}</h2>
<a href="{% url latest_packages %}">latest</a> <a href="{% url packages %}">all</a>
</p>
{% for package in packages %}
{% include "package/_package.html"%}
{% include "package/includes/_package.html"%}
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 101645e

Please sign in to comment.