Skip to content
Browse files

忘记了add模板文件

  • Loading branch information...
1 parent d59a265 commit a3c6d1cb9a5aa342eb2c585ddea2931fc4221db4 @laiwei committed Apr 18, 2012
Showing with 55 additions and 0 deletions.
  1. +55 −0 past/templates/pdf.html
View
55 past/templates/pdf.html
@@ -0,0 +1,55 @@
+{% extends "layout.html" %}
+
+{% import "blocks.html" as blocks %}
+
+{% block content_block %}
+ <div id="sidebar"></div>
+ <div id="rightbar">
+ {{blocks.rightbar_intros_block(intros)}}
+ <div class="sep10"></div>
+ {{blocks.rightbar_feedback_block()}}
+ </div>
+
+ <div id="middlebar">
+ <!--提醒-->
+ {{ blocks.notification_block() }}
+
+ <!--PDF下载列表-->
+ <div class="box">
+ <div class="cell"><a href="/i">首页</a> &gt; PDF下载 [PDF会按月归档,下载链接如下]</div>
+ {% for year in files_dict.keys()|sort(reverse=True)%}
+ <div class="cell">{{year}}年</div>
+ <div class="cell"><table>
+ <tr height="30px">
+ {%for i in [0,1,2,3,4,5]%}
+ {% if files_dict[year][i]%}
+ {%set date = files_dict[year][i][0]%}
+ {%set filename = files_dict[year][i][1]%}
+ <td width="100px" align="left"><a href="/pdf_down/{{filename}}">{{date.month}}月</a></td>
+ {% else%}
+ <td width="100px" align="left"></td>
+ {% endif%}
+ {%endfor%}
+ </tr>
+
+ {%if files_dict[year]|length > 6%}
+ <tr height="30px">
+ {%for i in [6,7,8,9,10,11]%}
+ {% if files_dict[year][i]%}
+ {%set date = files_dict[year][i][0]%}
+ {%set filename = files_dict[year][i][1]%}
+ <td width="100px" align="left"><a href="/pdf_down/{{filename}}">{{date.month}}月</a></td>
+ {% else%}
+ <td width="100px" align="left"></td>
+ {% endif%}
+ {%endfor%}
+ </tr>
+ {%endif%}
+ </table></div>
+ {%endfor%}
+ <div class="inner">
+ <span class="fade">说明:PDF每月会生成一个单独的文件,如果你想将多个PDF文件合并为一个,请下载各个PDF文件后,使用PDF编辑软件进行编辑合并</span>
+ </div>
+ </div>
+ </div>
+{% endblock %}

0 comments on commit a3c6d1c

Please sign in to comment.
Something went wrong with that request. Please try again.