Skip to content

Commit

Permalink
Now the top clicked report displays the admin html correctly :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jj committed Sep 12, 2009
1 parent 37effd9 commit 36ee0f8
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 35 deletions.
35 changes: 0 additions & 35 deletions external_links/templates/external_links/links_report.html

This file was deleted.

63 changes: 63 additions & 0 deletions external_links/templates/external_links/top_links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% extends "admin/base_site.html" %}
{% load adminmedia admin_list i18n %}
{% block title %}
{% trans "Top clicked links" %} {{block.super}}
{% endblock %}

{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
{% if cl.formset %}
<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
<script type="text/javascript" src="../../jsi18n/"></script>
{% endif %}
{{ media }}
{% if not actions_on_top and not actions_on_bottom %}
<style>
#changelist table thead th:first-child {width: inherit}
</style>
{% endif %}
{% endblock %}

{% block bodyclass %}change-list{% endblock %}

{% if not is_popup %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="../../../">Home</a> &rsaquo;
<a href="../../">External_Links</a> &rsaquo;
<a href="../">Link clicks</a> &rsaquo;
Top links
</div>
{% endblock %}
{% endif %}

{% block coltype %}flex{% endblock %}

{% block content %}

<h1>{% trans "Top clicked links" %}</h1>

<div id="content-main">
<div id="changelist" class="module">
<table cellspacing="0">
<thead>
<tr><th>Link</th><th>Count</th></tr>
</thead>
<tbody>

{% for link in object_list %}
<tr class="row{%cycle 1,2%}"><th><a href="../external_links/linkclick/?q={{link.link|urlencode}}" title="View click
details for &quot;{{link.link}}&quot;">{{link.link}}</a></th><td>{{link.link__count}}</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if pagination_required %}
{# how to paginate a valuesqueryset?? #}
<p class="paginator">
</p>
{% endif %}

{% endblock %}

0 comments on commit 36ee0f8

Please sign in to comment.