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

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

update profile screen HTML

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