Permalink
Browse files

new file: davidblog/templates/admin/link_list.html

	modified:   davidblog/admin.py
	modified:   davidblog/adminviews.py
	modified:   davidblog/forms.py
	modified:   davidblog/models.py
	modified:   davidblog/static/admin/css/admin.css
	modified:   davidblog/templates/admin/base.html
	modified:   davidblog/templates/admin/entry_add.html
	modified:   davidblog/templates/admin/entry_edit.html
	modified:   davidblog/templates/admin/entry_list.html
	modified:   davidblog/templates/admin/index.html
	modified:   davidblog/templates/admin/link_add.html
	modified:   davidblog/templates/admin/link_edit.html
	modified:   davidblog/templates/admin/page_add.html
	modified:   davidblog/templates/admin/page_edit.html
	modified:   davidblog/templates/admin/page_list.html
  • Loading branch information...
1 parent 44f87d6 commit 43a04e6612cd6325f1477aef4de2267577d2f6ba David Xie committed Jun 4, 2010
Showing with 30 additions and 0 deletions.
  1. +30 −0 davidblog/templates/admin/link_list.html
@@ -0,0 +1,30 @@
+{% extends 'base.html' %}
+{% block title %}日志列表{% endblock %}
+{% block content %}
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('#topmenu').find('li:eq(4)').addClass('current');
+ });
+</script>
+<table>
+ <tr>
+ <th>#</th>
+ <th>名称</th>
+ <th>地址</th>
+ <th>操作</th>
+ </tr>
+ {% for one in links %}
+ <tr>
+ <td>{{ one.id }}</td>
+ <td>{{ one.name }}</td>
+ <td>{{ one.url }}</td>
+ <td class="actions">
+ <a href="/admin/link/edit/{{ one.id }}/">修改</a> |
+ <a href="/admin/link/del/{{ one.id }}/">删除</a>
+ </td>
+ </tr>
+ {% endfor %}
+</table>
+
+<p><a href="/admin/link/add/">添加新地址</a></p>
+{% endblock %}

0 comments on commit 43a04e6

Please sign in to comment.