updates
This commit is contained in:
+15
-8
@@ -5,16 +5,17 @@
|
||||
<title>{% block title %}{{title}}{% endblock %}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{%block css %}styles.css{%endblock%}">
|
||||
{% block scripts %}
|
||||
<script src="jquery.js"></script>
|
||||
<script src="jquery.tablesorter.js"></script>
|
||||
<script src="jquery-latest.js"></script>
|
||||
<script src="jquery.tablesorter.min.js"></script>
|
||||
<script src="script.js"></script>
|
||||
{% endblock scripts %}
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}<h1>{{title}}</h1>{% endblock %}
|
||||
{% block info %}<p class="info">Last updated {{timestamp}}</p>{% endblock %}
|
||||
{% block namefilter %}
|
||||
<div id="namefilter">
|
||||
<input type="text" id="namefilterinput" placeholder="name filter" autofocus >
|
||||
<input type="text" id="namefilterinput" value="" placeholder="name filter" autofocus >
|
||||
</div>
|
||||
<script>
|
||||
|
||||
@@ -46,16 +47,22 @@ var namefilter = (function (opts) {
|
||||
return ret;
|
||||
})();
|
||||
|
||||
$("#namefilterinput").on("keyup", function (e) { namefilter($(this).val()); })
|
||||
$("#namefilterinput").bind("keyup", function (e) { namefilter($(this).val()); })
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("table.listing").tablesorter();
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
<table class="listing">
|
||||
<table class="listing tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>link</th>
|
||||
<th>pad name</th>
|
||||
<th>pad name (click to view archived page)</th>
|
||||
<th>group</th>
|
||||
<th>last edited</th>
|
||||
<th>size</th>
|
||||
@@ -66,8 +73,8 @@ $("#namefilterinput").on("keyup", function (e) { namefilter($(this).val()); })
|
||||
<tr>
|
||||
<td class="pad_url"><a class="edit" href="{{ pad.url }}">edit</a></td>
|
||||
<td class="pad_name"><a href="{{ pad.html_path }}">{{ pad.pad_name }}</a></td>
|
||||
<td class="pad_group">{{ pad.group_id }}</td>
|
||||
<td class="pad_last_edited">{{ pad.last_edited }}</td>
|
||||
<td class="pad_group">{{ pad.group_name|default(pad.group_id) }}</td>
|
||||
<td class="pad_last_edited">{{ pad.last_edited_str }}</td>
|
||||
<td class="pad_size">{{ pad.text_length_human }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user