Browse Source

Signed-off-by: zry <admin@z-touhou.org>

zry 8 years ago
parent
commit
b78c5782e0
3 changed files with 91 additions and 63 deletions
  1. 1 0
      swyzxwb_photovote/urls.py
  2. 3 0
      swyzxwb_photovote/views.py
  3. 87 63
      templates/vote/pw.xlsgendown.html

+ 1 - 0
swyzxwb_photovote/urls.py

@@ -9,6 +9,7 @@ from swyzxwb_photovote.views import *
 urlpatterns = patterns('',
     url(r'^$',Home),
     url(r'^admin/$',Admin),
+    url(r'^about/$',About, name="aboutus"),
     url(r'^accounts/',include('UserManage.urls' )),
     url(r'^vote/',include('vote.urls' )),
     #static

+ 3 - 0
swyzxwb_photovote/views.py

@@ -15,3 +15,6 @@ def Admin(request):
 
 def Home(request):
 	return render_to_response('home.html',locals(),RequestContext(request))
+
+def About(request):
+	return render_to_response('about.html',locals(),RequestContext(request))

+ 87 - 63
templates/vote/pw.xlsgendown.html

@@ -27,76 +27,100 @@
             <code>参赛作品导入</code>
             页面导入,然后通知网站管理员(如果您不是)将作品文件通过FTP上传。
         </div>
-        <div class="panel panel-default">
-            <div class="panel-heading">
-                <h3 class="panel-title">空表填写说明</h3>
-            </div>
-            <div class="panel-body">
-                <p>
-                    下载空表并打开后,将参赛作品的信息填入表内,并将作品重命名为空表内生成好的文件名。如果作品文件的扩展名不是jpg,请修改
-                    <code>扩展名</code>
-                    字段。
-                </p>
-                <p>以下是各个字段的功能说明:</p>
-                <table class="table table-bordered">
-                    <thead>
-                        <tr>
-                            <th>#</th>
-                            <th>字段名称</th>
-                            <th>说明</th>
-                            <th>示例</th>
-                        </tr>
-                    </thead>
-                    <tbody>
-                        <!-- 
+    </center>
+    <div class="panel panel-default">
+        <div class="panel-heading">
+            <h3 class="panel-title">空表填写说明</h3>
+        </div>
+        <div class="panel-body">
+            <p>
+                下载空表并打开后,将参赛作品的信息填入表内,并将作品重命名为空表内生成好的文件名。如果作品文件的扩展名不是jpg,请修改
+                <code>扩展名</code>
+                字段。
+            </p>
+            <p>以下是各个字段的功能说明:</p>
+            <table class="table table-bordered">
+                <thead>
+                    <tr>
+                        <th>#</th>
+                        <th>字段名称</th>
+                        <th>说明</th>
+                        <th>示例</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    <!-- 
                         ws.write(0,0,u'作品ID')
                         ws.write(0,1,u'参赛者用户名')
                         ws.write(0,2,u'作品标题')
                         ws.write(0,3,u'作品描述')
                         ws.write(0,4,u'文件名')
                         ws.write(0,5,u'文件扩展名')
-                        -->
-                        <tr>
-                            <th scope="row">1</th>
-                            <td>作品ID</td>
-                            <td>自动生成的作品ID,请不要修改该字段</td>
-                            <td><code>d9bc2b3e-f050-429e-b211-33e9633a59a9</code></td>
-                        </tr>
-                        <tr>
-                            <th scope="row">2</th>
-                            <td>参赛者用户名</td>
-                            <td>填写参赛者的用户名</td>
-                            <td><code>root</code>、<code>20180101</code></td>
-                        </tr>
-                        <tr>
-                            <th scope="row">3</th>
-                            <td>作品标题</td>
-                            <td>参赛作品的标题</td>
-                            <td><code>绮丽幻想乡</code>、<code>雾之湖风光</code>、<code>庄严的红魔馆</code></td>
-                        </tr>
-                        <tr>
-                            <th scope="row">4</th>
-                            <td>作品描述</td>
-                            <td>参赛作品的文字介绍</td>
-                            <td><code>这幅作品拍摄于夜晚的红魔馆,猩红色的雾气之下隐隐透出红魔馆的灯光,有着独特的朦胧美感。</code></td>
-                        </tr>
-                        <tr>
-                            <th scope="row">5</th>
-                            <td>文件名</td>
-                            <td>自动生成的作品文件名,请不要修改该字段,而是将参赛作品的文件名修改成该文件名,扩展名保持不变</td>
-                            <td><code>1f92d94aded6b9c71222f100821f5138</code></td>
-                        </tr>
-                        <tr>
-                            <th scope="row">6</th>
-                            <td>文件扩展名</td>
-                            <td>参赛作品的扩展名</td>
-                            <td><code>png</code>、<code>jpg</code>、<code>gif</code>、<code>tif</code></td>
-                        </tr>
-                    </tbody>
-                </table>
-            </div>
+                    -->
+                    <tr>
+                        <th scope="row">1</th>
+                        <td>作品ID</td>
+                        <td>自动生成的作品ID,请不要修改该字段</td>
+                        <td>
+                            <code>d9bc2b3e-f050-429e-b211-33e9633a59a9</code>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th scope="row">2</th>
+                        <td>参赛者用户名</td>
+                        <td>填写参赛者的用户名</td>
+                        <td>
+                            <code>root</code>
+                            、
+                            <code>20180101</code>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th scope="row">3</th>
+                        <td>作品标题</td>
+                        <td>参赛作品的标题</td>
+                        <td>
+                            <code>绮丽幻想乡</code>
+                            、
+                            <code>雾之湖风光</code>
+                            、
+                            <code>庄严的红魔馆</code>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th scope="row">4</th>
+                        <td>作品描述</td>
+                        <td>参赛作品的文字介绍</td>
+                        <td>
+                            <code>这幅作品拍摄于夜晚的红魔馆,猩红色的雾气之下隐隐透出红魔馆的灯光,有着独特的朦胧美感。</code>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th scope="row">5</th>
+                        <td>文件名</td>
+                        <td>自动生成的作品文件名,请不要修改该字段,而是将参赛作品的文件名修改成该文件名,扩展名保持不变</td>
+                        <td>
+                            <code>1f92d94aded6b9c71222f100821f5138</code>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th scope="row">6</th>
+                        <td>文件扩展名</td>
+                        <td>参赛作品的扩展名</td>
+                        <td>
+                            <code>png</code>
+                            、
+                            <code>jpg</code>
+                            、
+                            <code>gif</code>
+                            、
+                            <code>tif</code>
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
         </div>
-    </center>
+    </div>
     <a class="btn btn-lg btn-primary" href="{% url 'addxlsuserurl' %}">前往参赛作品导入页面</a>
 </div>
 {% endblock %}