source: trunk/skins/lemill/macros_messages.pt @ 3136

Revision 3136, 4.0 KB checked in by jukka, 9 years ago (diff)

Added chart.apis.google.com as external latex service and adjusted html escaping for latex code.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xmlns:tal="http://xml.zope.org/namespaces/tal"
3      xmlns:metal="http://xml.zope.org/namespaces/metal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      i18n:domain="lemill">
6
7  <head><title></title></head>
8
9  <body>
10
11
12<metal:draft define-macro="draft"><div class="portalMessage" i18n:domain="lemill" i18n:translate="text_draft_status">This learning resource is in draft status.</div></metal:draft>
13
14<metal:old_version define-macro="old_version"><div class="portalMessage" i18n:domain="lemill" i18n:translate="text_old_history_version">You are viewing old version from <span i18n:name="thetime" tal:define="old_version_time python: here.getTimeForOldHistory(context.REQUEST.get('version'))"  tal:content="python:DateTime(old_version_time).strftime('%d.%m.%Y %H:%M:%S')">Fri Oct 27 04:49:26 2006</span>.</div>
15</metal:old_version>
16
17
18<metal:deleted define-macro="deleted"><div class="portalMessage" i18n:domain="lemill" tal:define="note_text context/getDeletionReason | None"><span i18n:translate="this_is_deleted">This resource has been deleted.</span> <span tal:condition="note_text" i18n:translate="heading_reason_for_deletion">Reason for deletion: </span><span tal:replace="note_text" /></div></metal:deleted>
19
20
21<metal:private define-macro="private"><div class="portalMessage" i18n:translate="text_resource_is_private">This resource is private and visible only for its author.</div></metal:private>
22
23
24<metal:language_missing define-macro="language_missing">
25    <div class="portalMessage" i18n:domain="lemill"> <form tal:attributes="action string:${here_url}/updateLanguage" id="languageUpdater" method="post">
26            <span i18n:translate="text_res_language_missing">This resource doesn't have language defined. If you can, please help others to find it by telling us in which language it is.</span><br/><select name="lang" id="lang">
27            <option tal:attributes="value la" tal:content="python:context.script_getPrettyLanguage(la)" tal:repeat="la context/getLanguagelist" /></select><input type="hidden" name="minor_edit" value="1" /></form></div>
28<script type="text/javascript">
29$('select#lang').change(function() {this.form.submit();});
30</script>
31</metal:language_missing>
32
33<metal:missing_member_info define-macro="missing_member_info">
34    <div class="portalMessage" tal:define="lang context/getLanguage_skills; country context/getLocation_country; country python:test((not country) or country=='No country specified', '', country)">
35    <tal:both condition="python: not (lang or country)" i18n:translate="text_language_country_missing">
36    Please <a href="personalize_form">fill your country and language preferences</a>, so that the LeMill community can find you.
37    </tal:both>
38    <tal:language condition="python: country and not lang" i18n:translate="text_language_missing">
39    Please <a href="personalize_form">fill your language preferences</a>, so that LeMill knows which resources to show you.
40    </tal:language>
41    <tal:country condition="python: lang and not country">
42    <form tal:attributes="action string:${here_url}/updateCountry" id="countryUpdater" method="post">
43      <span i18n:translate="text_country_missing">Please select your country, so that the LeMill community can find you:</span>
44      <select name="country" id="country">
45        <option tal:attributes="value co" tal:content="co" tal:repeat="co context/getCountrylist" />
46      </select>
47     <input type="hidden" name="minor_edit" value="1" />
48    </form>
49    <script type="text/javascript">
50$('select#country').change(function() {this.form.submit();});
51</script>
52    </tal:country>
53    </div>   
54</metal:missing_member_info>
55
56<metal:piece_missing_title define-macro="piece_missing_title"><div class="portalMessage"> <span i18n:translate="text_piece_missing_title">This piece would benefit from a descriptive title or tags.</span> <a tal:attributes="href python:here_url+'/edit'" i18n:translate="text_piece_missing_title_please" href="edit">Please help by giving them.</a></div></metal:piece_missing_title>
57
58 
59  </body>
60
61</html>
Note: See TracBrowser for help on using the repository browser.