Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modified: static/css/styles.css

	modified:   templates/entry.html
  • Loading branch information...
commit e4500a36ec6ff8481eaa5471d4f8a224d5daf56c 1 parent 767c4d0
David Shieh authored
Showing with 69 additions and 37 deletions.
  1. +55 −0 static/css/styles.css
  2. +14 −37 templates/entry.html
View
55 static/css/styles.css
@@ -94,6 +94,7 @@ body {
}
.blog_each > div {
font-size:14px;
+ margin:20px 0;
}
.blog_each > div > p {
margin:15px 0;
@@ -127,3 +128,57 @@ body {
text-align:center;
}
+/** comment style **/
+#comments h2 {
+ font-size:16px;
+ color:#97DB72;
+ margin:10px 0;
+}
+.comment {
+ margin:20px 0;
+}
+.comment span {
+ float:right;
+ margin-right:20px;
+ font-size:12px;
+}
+.comment h1 img {
+ width:50px;
+ margin:5px;
+}
+.comment h1,
+.comment h2,
+.comment h3 {
+ float:left;
+}
+.comment h2,
+.comment h3 {
+ width:500px;
+ font-size:14px;
+}
+.comment p {
+ clear:both;
+ font-size:14px;
+}
+#comment_form {
+ border-top:1px dashed #FF9933;
+ margin-top:10px;
+ padding:10px;
+}
+#comment_form h2 {
+ color:#F93;
+}
+#comment_form p {
+ margin:10px;
+}
+#comment_form p label {
+ padding-left:20px;
+ font-size:14px;
+}
+#comment_form p input {
+ width:200px;
+}
+#comment_form textarea {
+ width:500px;
+ height:150px;
+}
View
51 templates/entry.html
@@ -9,12 +9,12 @@
{% if p.pages > 1 %}
<div id="page_link">
{% if p.page > 1 %}
- <span id="pre_page"><a href="/entry/{{ entry.slug }}/?page={{ p.prev_page }}">上一页</a></span>
+ <span id="pre_page"><a href="/entry/{{ entry.slug }}/?page={{ p.prevPage }}">上一页</a></span>
{% endif %}
{% if p.page < p.pages %}
- <span id="next_page"><a href="/entry/{{ entry.slug }}/?page={{ p.next_page }}">下一页</a></span>
+ <span id="next_page"><a href="/entry/{{ entry.slug }}/?page={{ p.nextPage }}">下一页</a></span>
{% endif %}
- <span id="cur_page">{{ p.page }}/{{ p.pages }}</span>
+ <p id="cur_page">{{ p.page }}/{{ p.pages }}</p>
</div>
{% endif %}
{% for comment in entry.comments %}
@@ -28,43 +28,20 @@
{% endfor %}
{% endif %}
<div id="comment_form">
- <h2>我想留言</h2>
+ <h2>我想说点什么...</h2>
<form action="/entry/{{ entry.slug }}/" method="POST">
- <input type="hidden" name="id" value="{{ entry.entryId }}" />
- <table>
- <tr>
- <th>昵称 *</th>
- <td><input type="text" name="username" value="{{ f.username.value|notnull }}">{{ f.username.note|formnote }}</td>
- </tr>
- <tr>
- <th>Email地址 *</th>
- <td><input type="text" name="email" value="{{ f.email.value|notnull }}">{{ f.email.note|formnote }}</td>
- </tr>
- <tr>
- <th>个人网站</th>
- <td><input type="text" name="url" value="{{ f.url.value|notnull }}">{{ f.url.note|formnote }}</td>
- </tr>
- <tr>
- <th>留言内容</th>
- <td><textarea name="comment">{{ f.comment.value|notnull }}</textarea>{{ f.comment.note|formnote }}</td>
- </tr>
- <tr>
- <th>&nbsp;</th>
- <td><img src="/captcha/" /></td>
- </tr>
- <tr>
- <th>Captcha(*)</th>
- <td><input type="text" name="captcha" value="{{ f.captcha.value|notnull }}">{{ f.captcha.note|formnote }}</td>
- </tr>
- <tr>
- <td>&nbsp;</td>
- <td><input type="submit" value="发表留言" style="width:auto;" /></td>
- </tr>
- </table>
+ <p><input type="text" name="username" value="{{ f.username.value|notnull }}">
+ <label>昵称 *</label>{{ f.username.note|formnote }}</p>
+ <p><input type="text" name="email" value="{{ f.email.value|notnull }}">
+ <label>Email地址 *</label>{{ f.email.note|formnote }}</p>
+ <p><input type="text" name="url" value="{{ f.url.value|notnull }}">
+ <label>个人网站</label>{{ f.url.note|formnote }}</p>
+ <p><textarea name="comment">{{ f.comment.value|notnull }}</textarea>{{ f.comment.note|formnote }}</p>
+ <p><input type="text" name="captcha" value="{{ f.captcha.value|notnull }}">
+ <label><img src="/captcha/" /></label>{{ f.captcha.note|formnote }}</p>
+ <p><input type="submit" value="发表留言" style="width:auto;" /></p>
</form>
</div>
</div>
</div>
-{% include "_leftbar.html" %}
-<br class="clearfloat" />
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.