source: indico/indico/MaKaC/webinterface/tpls/events/meetings/cdsagenda/include/Header.tpl @ d837d1

hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.98b2v0.99v1.0v1.1
Last change on this file since d837d1 was d837d1, checked in by Jose Benito <jose.benito.gonzalez@…>, 22 months ago

[FTR] Translation of XSLT templates to TPL.

  • Removed old css and xslt not used.
  • Added access checking in the material.
  • In the administrative tab xslt or tpl can be choosen.
  • ConferenceOtherViews? changed to use the new engine.
  • Small changes to the styles interface.
  • Closes #677.
  • Added delete minutes from #500.
  • Changed order of VS and CR from #804.
  • Property mode set to 100644
File size: 6.9 KB
Line 
1<%page/>
2<%namespace name="common" file="${context['INCLUDE']}/Common.tpl"/>
3
4<table width="100%" border="0" bgcolor="white" cellpadding="1" cellspacing="1">
5<tr>
6  <td valign="top" align="left">
7    <table border="0" bgcolor="gray" cellspacing="1" cellpadding="1" width="100%">
8    <tr>
9      <td colspan="1">
10    <table border="0" cellpadding="2" cellspacing="0" width="100%" class="headerselected" bgcolor="#000060">
11    <tr>
12          <td width="35">
13            <img src="images/meeting.png" width="32" height="32" alt="lecture"/>
14          </td>
15          <td class="headerselected" align="right">
16            <span style="font-weight:bold;">
17                <div style="float: left; height: 15px; width: 15px; padding-top: 7px;">
18                    <%include file="${INCLUDE}/ManageButton.tpl" args="item=conf, manageLink=False, alignRight=True"/>
19                </div>
20            <span class="confTitle">
21                ${conf.getTitle()}
22            </span>
23            </span>
24            <span style="font-size:x-small;">
25            % for rn in conf.getReportNumberHolder().listReportNumbers():
26                <br/>${rn[1]}
27            % endfor
28            </span>
29          </td>
30        </tr>
31        </table>
32      </td>
33    </tr>
34    <tr>
35      <td>
36        <table border="0" bgcolor="#f0c060" cellpadding="2" cellspacing="0" width="100%" >
37        <tr>
38          <td valign="top" align="right"  class="headerTitle">
39              Date/Time:
40          </td>
41          <td style="width:90%" class="headerInfo">
42            ${common.renderEventTime2(startDate, endDate, timezone)}
43          </td>
44        </tr>
45        % if getLocationInfo(conf) != ('', '', ''):
46        <tr>
47          <td valign="top" align="right"  class="headerTitle">
48            Location:
49          </td>
50          <td class="headerInfo">
51               ${common.renderLocation(conf)}
52          </td>
53        </tr>
54        % endif
55
56        % if conf.getChairList() or conf.getChairmanText():
57        <tr>
58          <td valign="top" align="right"  class="headerTitle">
59            Chairperson:
60          </td>
61          <td class="headerInfo">
62             ${common.renderUsers(conf.getChairList(), unformatted=conf.getChairmanText(), spanClass='', title=False)}
63          </td>
64        </tr>
65        % endif
66
67        % if conf.getSupportEmail():
68        <tr>
69          <td valign="top" align="right"  class="headerTitle">
70                  ${supportEmailCaption}
71          </td>
72          <td class="headerInfo">
73                  ${conf.getSupportEmail()}
74          </td>
75        </tr>
76        % endif
77
78        % if conf.getDescription():
79        <tr>
80          <td valign="top" align="right"  class="headerTitle">
81            Description:
82          </td>
83          <td class="fixPreOverflow" class="headerInfo">
84            ${common.renderDescription(conf.getDescription())}
85          </td>
86        </tr>
87        %endif
88
89        % if participants:
90        <tr>
91          <td valign="top" align="right" class="headerTitle">
92            Participants:
93          </td>
94          <td class="headerInfo" style="font-style:italic;">
95            ${participants}
96          </td>
97        </tr>
98        % endif
99        % if registrationOpen:
100        <tr>
101          <td valign="top" align="right" class="headerTitle">
102                Want to participate:
103          </td>
104          <td style="font-size:x-small;font-style:italic;">
105            <a href="${urlHandlers.UHConfParticipantsNewPending.getURL(conf)}">Apply here</a>
106          </td>
107        </tr>
108        % endif
109        % if len(conf.getAllMaterialList()) > 0:
110         <tr>
111          <td valign="top" align="right" class="headerTitle">
112            Material:
113          </td>
114          <td>
115            % for material in conf.getAllMaterialList():
116                % if material.canView(accessWrapper):
117                    <%include file="${INCLUDE}/Material.tpl" args="material=material"/>
118                % endif
119            % endfor
120          </td>
121        </tr>
122        % endif
123        </table>
124      </td>
125    </tr>
126    </table>
127  </td>
128  <td align="right" valign="top">
129    <table border="0" bgcolor="gray" cellspacing="1" cellpadding="1">
130        % if conf.getNumberOfSessions() !=0:
131            <tr>
132                <td>
133                    <table bgcolor="white" cellpadding="2" cellspacing="0" border="0" width="100%">
134                        <% contSessions = 0 %>
135                        % for item in entries:
136                            % if getItemType(item)=="Session":
137                            <% session = item.getSession() %>
138                                <tr>
139                                    <td valign="top" class="headerselected" bgcolor="#000060">
140                                        <span style="font-size:x-small;color:white;">
141                                            % if getDate(session.getAdjustedStartDate(timezone)) == getDate(session.getAdjustedEndDate(timezone)):
142                                                ${prettyDate(session.getAdjustedStartDate(timezone))}&nbsp;${getTime(session.getAdjustedStartDate(timezone))}
143                                                % if getTime(session.getAdjustedEndDate(timezone)) != '00:00':
144                                                    ->${getTime(session.getAdjustedEndDate(timezone))}
145                                                % endif
146                                            % else:
147                                                ${prettyDate(session.getAdjustedStartDate(timezone))}&nbsp;${getTime(session.getAdjustedStartDate(timezone))}->${prettyDate(session.getAdjustedEndDate(timezone))}&nbsp;${getTime(session.getAdjustedEndDate(timezone))}
148                                            % endif
149                                        </span>
150                                    </td>
151                                    <% bgcolor="#E4E4E4" if contSessions % 2 == 1 else "#F6F6F6" %>
152                                    <td valign="top" bgcolor=${bgcolor}>
153                                    <a href="#session.getId()">
154                                        <span style="font-size:x-small">
155                                            ${session.getTitle() if session.getTitle!='' else "no title"}
156                                        </span>
157                                    </a>
158                                    <span style="font-size:x-small">
159                                        % if getLocationInfo(item)!= getLocationInfo(conf):
160                                           (${getLocationInfo(item)[1]})
161
162                                        % endif
163                                    </span>
164                                    &nbsp;
165                                    </td>
166
167                                    <td valign="top" align="right" bgcolor=${bgcolor}>&nbsp;</td>
168                                </tr>
169                            <% contSessions +=1 %>
170                            % endif
171                            % endfor
172    </table>
173    </td></tr>
174    % endif
175</table>
176    </td>
177</tr>
178</table>
179
Note: See TracBrowser for help on using the repository browser.