source: pycgibattler/trunk/templates/20character.tmpl @ 62

Revision 62, 2.5 KB checked in by atzm, 13 years ago (diff)

change directory structure

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/plain; charset=utf-8
Line 
1## $Id$
2#encoding UTF-8
3#import os
4#import time
5#import urllib
6#import xml.sax.saxutils
7#include $os.path.expanduser($config.get('template', 'header'))
8
9#for $e in $entries
10      <div class="day">
11        <h2>
12          <span class="date">
13            [$time.strftime('%Y/%m/%d %H:%M:%S', time.localtime($e.mtime))] 登録
14          </span>
15        </h2>
16        <div class="body">
17          <div class="section">
18            <h3><span class="sanchor">■</span> 名前</h3>
19            <p><a href="http://www.google.co.jp/images?q=$urllib.quote_plus('"' + $e.warrior.name() + '"')">$e.warrior.name()</a></p>
20
21            <h3><span class="sanchor">■</span> ステータス</h3>
22            <table class="stat">
23              <tr>
24                <th>HP</th>
25                <th>SP</th>
26                <th>攻撃力</th>
27                <th>集中力</th>
28                <th>防御力</th>
29                <th>素早さ</th>
30                <th>運</th>
31              </tr>
32              <tr>
33                <td class="right">$e.warrior.hitpoint()</td>
34                <td class="right">$e.warrior.skillpoint()</td>
35                <td class="right">$e.warrior.strength()</td>
36                <td class="right">$e.warrior.concentration()</td>
37                <td class="right">$e.warrior.defense()</td>
38                <td class="right">$e.warrior.agility()</td>
39                <td class="right">$e.warrior.luck()</td>
40              </tr>
41            </table>
42
43            <h3><span class="sanchor">■</span> 必殺技</h3>
44            <table class="stat">
45              <tr>
46                <th>名前</th>
47                <th>タイプ</th>
48                <th>レベル</th>
49                <th>消費 SP</th>
50              </tr>
51  #for $skill in $e.skills
52              <tr>
53                <td class="left"><a href="http://www.google.co.jp/images?q=$urllib.quote_plus('"' + $skill.name() + '"')">$skill.name()</a></td>
54                <td class="center">$(str($skill.skilltype()).split('.')[-1])</td>
55                <td class="right">$skill.level()</td>
56                <td class="right">$skill.point()</td>
57              </tr>
58  #end for
59            </table>
60
61            <h3><span class="sanchor">■</span> コード</h3>
62            <pre style="max-height: 25em; overflow: auto;">$xml.sax.saxutils.escape($e.code)</pre>
63          </div>
64        </div>
65      </div>
66#end for
67
68      <div class="footer">
69        コードの著作権はそれぞれの著作者に帰属します.
70      </div>
71
72#include $os.path.expanduser($config.get('template', 'footer'))
Note: See TracBrowser for help on using the repository browser.