-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now the top clicked report displays the admin html correctly :)
- Loading branch information
jj
committed
Sep 12, 2009
1 parent
37effd9
commit 36ee0f8
Showing
2 changed files
with
63 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -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> › | ||
<a href="../../">External_Links</a> › | ||
<a href="../">Link clicks</a> › | ||
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 "{{link.link}}"">{{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 %} |