source: trunk/skins/lemill/front-page.pt @ 1368

Revision 1368, 4.0 KB checked in by pjotr, 13 years ago (diff)

References #1146, links to materials have to be served with view ... or users will be given a student or fullscreen view

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/front-page_template/macros/master"
4      i18n:domain="lemill">
5<body>
6
7<div metal:fill-slot="main" style="width:100%" tal:define="story_candidate python:here.lemill_tool.getStoryCandidate();
8story python:story_candidate['story'];">
9
10<table border="0" cellpadding="0" cellspacing="0" width="780">
11    <tr>
12        <td width="248" class="sidebar">
13            <div>
14                <a href="#" tal:attributes="href portal_url"><img src="" alt="LeMill" /></a>
15                <p i18n:translate="introduction">
16                Web community for <strong>finding</strong>, <strong>authoring</strong> and <strong>sharing</strong> learning resources
17                </p>
18            </div>
19
20            <div>
21                <p i18n:translate="new_to_lemill">
22                New to LeMill?             
23                </p>
24                <p tal:condition="isAnon" i18n:translate="join_or_tour">
25                <a href="join">Join</a> or <a href="content/tour">take a tour</a>
26                </p>
27                <p tal:condition="not:isAnon">
28                <a href="content/tour" i18n:translate="take_a_tour">Take a tour</a>
29                </p>
30            </div>
31        </td>
32        <td width="4">&nbsp;</td>
33        <td width="528" valign="top" class="learning_story">
34       
35        <table width="504" border="0" cellpadding="0" cellspacing="8">
36            <tr>
37                <td width="160" class="content_coverimage_cell">
38                                    <a href="#" tal:attributes="href string:${story_candidate/chcontent/absolute_url}/view">
39                    <img tal:attributes="src story_candidate/chcontent/coverImage/absolute_url | string:images/default_learningresource.png;
40                                        alt story_candidate/chcontent/Title | nothing;" src="images/default_learningresource.png" alt="Cover image" />
41                </a>
42                </td>
43                <td width="160" class="method_coverimage_cell">
44                <a href="#" tal:attributes="href story_candidate/method/absolute_url | nothing">
45                    <img tal:attributes="src story_candidate/method/coverImage/absolute_url | string: images/default_method.png;
46                                        alt story_candidate/method/Title | nothing;" src="images/default_method.png" alt="Cover image" />
47                </a>
48                </td>
49                <td width="160" class="tool_coverimage_cell">
50                <a href="#" tal:attributes="href story_candidate/tool/absolute_url | nothing">
51                    <img tal:attributes="src story_candidate/tool/coverImage/absolute_url | string: images/default_tool.png;
52                                        alt story_candidate/tool/Title | nothing;" src="images/default_tool.png" alt="Cover image" />
53                </a>
54                </td>
55            </tr>
56            <tr>
57                <td class="content_label_cell">
58                    <a href="content" i18n:translate="Content">Content</a>
59                </td>
60                <td class="method_label_cell">
61                    <a href="methods" i18n:translate="Method">Method</a>
62                </td>
63                <td class="tool_label_cell">
64                    <a href="tools" i18n:translate="Tool">Tool</a>
65                </td>
66            </tr>
67        </table>
68
69    <h2><b i18n:translate="heading_learning_story">Learning story</b><b tal:condition="story" tal:omit-tag="">:</b> <span tal:condition="story" tal:content="story/title" /></h2>
70
71    <div tal:condition="story">   
72    <p tal:replace="structure story/getBlurp" />
73    [<a href="" i18n:translate="continue_story" tal:attributes="href story/absolute_url">Continue...</a>]
74    </div>
75    <div tal:condition="not:story">
76    <p i18n:translate="no_story_explanation">Nobody has written a learning story about using these resources. Now it is your time to contribute.</p>
77    </div>
78    <tal:no_empties condition="python: story_candidate['chcontent'] and story_candidate['method'] and story_candidate['tool']">
79    <h2><a href="new_story" tal:attributes="href python:'new_story?content=%s&method=%s&tool=%s' % (story_candidate['chcontent'].absolute_url(), story_candidate['method'].absolute_url(), story_candidate['tool'].absolute_url())" i18n="write_your_learning_story">Write your learning story</a> <span i18n:translate="about_using_these_resources">about using these resources...</span></h2>
80    </tal:no_empties>
81
82</td>
83</tr>
84</table>
85</div>
86</body>
87</html>
88
Note: See TracBrowser for help on using the repository browser.