Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Xie
committed
Jun 6, 2010
1 parent
43a04e6
commit 21cd9bc
Showing
16 changed files
with
232 additions
and
113 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -10,4 +10,7 @@ | |
#edit_entry form table td > span { | ||
color: red; | ||
padding: 5px; | ||
} | ||
} | ||
.actions { | ||
text-align:center; | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -1,11 +1,26 @@ | ||
{% extends "base.html" %} | ||
{% block title %}首页{% endblock %} | ||
{% block content %} | ||
<ul> | ||
<li><a href="/admin/entry/list/">现在共有 {{ entryNum }} 篇文章</a></li> | ||
<li><a href="/admin/comment/list/">现在共有 {{ commentNum }} 条评论</a></li> | ||
<li><a href="/admin/category/list/">现在共有 {{ categoryNum }} 个分类</a></li> | ||
<li><a href="/admin/tag/list/">现在共有 {{ tagNum }} 个标签</a></li> | ||
<li><a href="/admin/link/list/">现在共有 {{ linkNum }} 个链接</a></li> | ||
</ul> | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('#topmenu').find('li:eq(0)').addClass('current'); | ||
}); | ||
</script> | ||
<table> | ||
<tr> | ||
<td><a href="/admin/entry/list/">现在共有 {{ entryNum }} 篇文章</a></td> | ||
</tr> | ||
<tr> | ||
<td><a href="/admin/comment/list/">现在共有 {{ commentNum }} 条评论</a></td> | ||
</tr> | ||
<tr> | ||
<td><a href="/admin/tag/list/">现在共有 {{ tagNum }} 个标签</a></td> | ||
</tr> | ||
<tr> | ||
<td><a href="/admin/link/list/">现在共有 {{ linkNum }} 个链接</a></td> | ||
</tr> | ||
<tr> | ||
<td><a href="/admin/page/list/">现在共有 {{ pageNum }} 个链接</a></td> | ||
</tr> | ||
</table> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,6 +1,28 @@ | ||
<%inherit file="base.html" /> | ||
<%def name="title()">标签管理</%def> | ||
|
||
<form action="/admin/tag/add/" method="POST"> | ||
${ f.render() } | ||
</form> | ||
{% extends "base.html" %} | ||
{% block title %}添加新地址{% endblock %} | ||
{% block content %} | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('#topmenu').find('li:eq(4)').addClass('current'); | ||
}); | ||
</script> | ||
<div id="edit_link"> | ||
<form action="/admin/link/add/" method="POST"> | ||
<table> | ||
<tr> | ||
<th><label>名称</label></th> | ||
<td><input type="text" name="name" value="{{ f.name.value | notnull }}" /><span>{{ f.name.note | notnull }}</span></td> | ||
</tr> | ||
<tr> | ||
<th><label>地址</label></th> | ||
<td><input type="text" name="url" value="{{ f.url.value | notnull }}" /><span>{{ f.url.note | notnull }}</span></td> | ||
</tr> | ||
<tr> | ||
<th><label>描述</label></th> | ||
<td><input type="text" name="description" value="{{ f.description.value | notnull }}" /></td> | ||
</tr> | ||
</table> | ||
<p><input type="submit" value="添加" /></p> | ||
</form> | ||
</div> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,6 +1,28 @@ | ||
<%inherit file="base.html" /> | ||
<%def name="title()">修改分类 - 分类管理</%def> | ||
|
||
<form action="/admin/category/edit/${ id }/" method="POST"> | ||
${ f.render() } | ||
</form> | ||
{% extends "base.html" %} | ||
{% block title %}修改地址{% endblock %} | ||
{% block content %} | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('#topmenu').find('li:eq(4)').addClass('current'); | ||
}); | ||
</script> | ||
<div id="edit_link"> | ||
<form action="/admin/link/edit/{{ link.id }}/" method="POST"> | ||
<table> | ||
<tr> | ||
<th><label>名称</label></th> | ||
<td><input type="text" name="name" value="{{ f.name.value | notnull }}" /><span>{{ f.name.note | notnull }}</span></td> | ||
</tr> | ||
<tr> | ||
<th><label>地址</label></th> | ||
<td><input type="text" name="url" value="{{ f.url.value | notnull }}" /><span>{{ f.url.note | notnull }}</span></td> | ||
</tr> | ||
<tr> | ||
<th><label>描述</label></th> | ||
<td><input type="text" name="description" value="{{ f.description.value | notnull }}" /></td> | ||
</tr> | ||
</table> | ||
<p><input type="submit" value="修改" /></p> | ||
</form> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.