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

Revision 1372, 4.1 KB checked in by jukka, 13 years ago (diff)

Front-page works with empty lemill-instance now.

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