root/yapcasia2008/actdocs/templates/core/user/show

Revision 2672 (checked in by miyagawa, 12 years ago)

merge to 2671

Line 
1 <div class="vcard">
2   <div class="picture small avator">
3     [% IF photo_name %]
4     <img alt="{{Name}}" src="/[% global.config.general_dir_photos %]/[% photo_name %]" class="photo" />
5     [% ELSE %]
6     <img alt="{{Name}}" src="/ya2008/css/themes/ya2008/images/no_photo.png" width="200" height="200" />
7     [% END %]
8   </div>
9 <dl>
10 <!-- name -->
11 <dt>{{Name}}</dt>
12 <dd class="n">
13 [% "<strong>" IF committed %]
14   [% IF pseudonymous %]
15   [% nick_name %]
16   [% ELSE %]
17   [% IF first_name.match('[\p{Han}\p{Hiragana}]') %]
18   <span class="family-name">[% last_name %]</span><span class="given-name">[% first_name %]</span>
19   [% ELSE %]
20   <span class="given-name">[% first_name %]</span>
21   <span class="family-name">[% last_name %]</span>
22   [% END %]
23   [% "(&lrm;${nick_name}&lrm;)" IF nick_name %]
24   [% END %]
25 [% "</strong>" IF committed %]
26 </dd>
27 <!-- /name -->
28 <!-- country -->
29 <dt>{{Country}}</dt>
30 <dd class="adr">[%- IF town %]<span class="region">[% town%]</span>, [% END %]<span class="country-name">[% country %]</span></dd>
31 <!-- /country -->
32 [%- IF pm_group %]
33 <!-- pm -->
34 <dt>{{Perl mongers group}}</dt>
35 <dd>[% IF pm_group_url %]<a href="[% pm_group_url %]">[% pm_group %]</a>[% ELSE %][% pm_group %][% END %]</dd>
36 <!-- /pm -->
37 [% END %]
38 [% IF company %]
39 <!-- company -->
40 <dt>{{Company}}</dt>
41 <dd>[% "<a href=\"$company_url\" class=\"org\">" IF company_url %][% company %][% '</a>' IF company_url %]</dd>
42 <!-- /company -->
43 [% END %]
44 [%- IF web_page %]
45 <!-- web -->
46 <dt>{{Web page}}</dt>
47 <dd><tt><a href="[% web_page %]" class="url">[% web_page %]</a></tt></dd>
48 <!-- /web -->
49 [% END %]
50 [%- IF not email_hide or global.request.user.is_orga %]
51 <!-- email -->
52 <dt>{{Email}}</dt>
53 <dd><tt><a href="mailto:[% email %]" class="email">[% email %]</a></tt></dd>
54 <!-- /email -->
55 [% END %]
56 [%- IF im %]
57 <!-- im -->
58 <dt>{{IM}}</dt>
59 <dd>[% im %]</dd>
60 <!-- /im -->
61 [% END %]
62 [%- IF pause_id %]
63 <!-- pause_id -->
64 <dt>Pause id</dt>
65 <dd><a href="http://search.cpan.org/author/[% pause_id %]/">[% pause_id %]</a></dd>
66 <!-- /pause_id -->
67 [% END %]
68 [%- IF monk_id %]
69 <!-- monk_id -->
70 <dt>Perlmonks id</dt>
71 <dd><a href="http://perlmonks.org/index.pl?node_id=[% monk_id %]" >[% monk_name OR monk_id %]</a></dd>
72 <!-- monk_id -->
73 [% END %]
74 [%- IF gpg_key_id %]
75 <!-- gpg_key -->
76 <dd>{{GPG key ID}}</dd>
77 <dt><a href="http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x[% gpg_key_id %]">0x[% gpg_key_id %]</a></dd>
78 <!-- /gpg_key -->
79 [% END %]
80 [%- IF bio.keys.size %]
81 <!-- bio -->
82 <dt>{{Bio}}</dt>
83 [% FOREACH lang = bio.keys %]
84 <dd>
85 [% global.config.languages.$lang.name | ucfirst %]
86 <p>[% bio.$lang | replace('\n', '<br />') %]</p>
87 </dd>
88 [% END %]
89 <!-- /bio -->
90 [% END %]
91 </dl>
92
93 [% IF talks.size %]
94 <dl id="talks">
95 <!-- talk -->
96 <dt>[% loc('Talk', talks.size) %]
97   [% accepted = 0;
98   FOREACH t = talks; IF t.accepted; accepted = 1; LAST; END; END;
99   IF accepted %]
100   <span class="memo">({{Accepted talks are shown in bold type.}})</span>
101   [% END %]
102 </dt>
103 <dd>
104   <ul>
105     [% FOREACH t = talks %]
106     <li>[% talk_link(t) %] <span class="time">([% IF t.duration ; t.duration %]{{minutes}}[% ELSE %]{{Lightning talk}}[% END %])</span>[% talk_modify_link(t) %]</li>
107     [% END %]
108   </ul>
109 </dd>
110 </dl>
111 <!-- /talk -->
112 [% END %]
113
114 [% IF conferences.size %]
115 <dl id="other-act-conferences">
116 <dt>{{Other Act conferences:}}</dt>
117 <dd>
118   <ul>
119     [% FOREACH c = conferences %]<li><a href="[% c.url %]user/[% user_id %]">[% c.name %]</a>[% END %]
120   </ul>
121 </dd>
122 </dl>
123 [% END %]
124
125 [% IF global.request.user.is_treasurer && !committed %]
126 <div><a href="[% make_uri('payment') %]?user_id=[% user_id %]">{{enter payment}}</a></div>
127 [% END %]
128
129 </div>
130
Note: See TracBrowser for help on using the browser.