EduploneLearningSequence/skins/EduploneLearningSequence lsq_activity_view.pt,NONE,1.1 portlet_lsqworklist.pt,NONE,1.1 eduplone_activity_view.pt,1.10,NONE worklist_portlet.pt,1.3,NONE

Jens Klein <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneLearningSequence/skins/EduploneLearningSequence
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19189

Added Files:
	lsq_activity_view.pt portlet_lsqworklist.pt 
Removed Files:
	eduplone_activity_view.pt worklist_portlet.pt 
Log Message:
renamed files


--- eduplone_activity_view.pt DELETED ---

--- NEW FILE: portlet_lsqworklist.pt ---
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      i18n:domain="plone">
<body>
<div metal:define-macro="portlet"
       i18n:domain="plone"
       tal:omit-tag="" >
<div tal:condition="python: not isAnon and (user.has_role('eduploneLearner') or user.has_role('eduploneTutor'))"
       tal:define="portalObject here/portal_url/getPortalObject;
                   checkPerm python:here.portal_membership.checkPermission;
                   listContentsPermission python:checkPerm('List folder contents', here);
                   UserName python:user.getUserName();
                   ">
    <div class="portlet" 
         id="portlet-lsqworklist"
         tal:define="openflow python: container.portal_openflow;">
        <div class="padding">
            <h5 i18n:translate="box_activities">Activities for <span tal:replace="UserName">UserName</span></h5>
            <div class="portletBody"
                 tal:define="workitems python:openflow.Catalog(meta_type='Workitem',sort_on='priority', actor=UserName, status='active')">
                <tal:block tal:repeat="workitem workitems">            
                    <div tal:define="oddrow repeat/workitem/odd;
                                     wi workitem/getObject;"
                         tal:attributes="class python:test(oddrow, 'portletContent even', 'portletContent odd')">
                        <tal:block define="action python:openflow.getApplicationUrlWithParameters(wi.instance_id,wi.id);
                                           instanceworkitem python:openflow.getInstanceAndWorkitem(wi.instance_id, wi.id);
                                           w_instance python:instanceworkitem[0];
                                           w_item python:instanceworkitem[1];
                                           uid python:w_instance['uid']"
                                   condition="action">

                                 <div>
                                    <span><img tal:replace="structure portal/learningsequence_icon.gif" />&nbsp;<span tal:content="w_instance/title_or_id">Title</span></span>
                                 <div>
                                 <div>
                                    <span>
                                        <a href="" 
                                           tal:attributes="href action;
                                                           style python:'margin-left: 0.5em';">
                                            <img tal:replace="structure portal/activity_icon.gif" />&nbsp;show
                                        </a>
                                    </span>
                                 </div>
                                 <div>
                                    <span>
                                        <a href="" 
                                            tal:attributes="href python:here.portal_url()+'/lsq_complete_activity?uid='+w_instance['uid']+'&action=prev';
                                                            style python:'margin-left: 0.5em';"
                                            tal:condition="python: user.has_role('eduploneTutor')">
                                            <img tal:replace="structure portal/revokestep_icon.gif" />&nbsp;revoke activity
                                        </a>
                                    </span>
                                 </div>
                                 <div>
                                    <span>
                                        <a href="" 
                                            tal:attributes="href python:here.portal_url()+'/lsq_complete_activity?uid='+w_instance['uid']+'&action=next';
                                                            style python:'margin-left: 0.5em';">
                                            <img tal:replace="structure portal/finishstep_icon.gif" />&nbsp;finish activity
                                        </a>
                                    </span>
                                 </div>
                        </tal:block>
                    </div>
                </tal:block>
                <div class="portletContent odd" 
                     tal:condition="not:workitems" 
                     i18n:translate="message_no_activities_assigned">
                    No activities assigned yet.
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>


--- worklist_portlet.pt DELETED ---

--- NEW FILE: lsq_activity_view.pt ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master">
  <body>
    <div metal:fill-slot="main"
         tal:define="portal_type python:here.getPortalTypeName().lower();
                     view_template python:'%s_view' % portal_type;
                     view_macros python:path('here/%s/macros|nothing' % view_template);
                     body_macro view_macros/body|nothing;">
      <div metal:define-macro="main"
           tal:omit-tag="">

        <fieldset>
            <legend tal:content="structure python:here.getActivitytype()">Activity-type</legend>
            <h1 tal:content="here/title_or_id">                
                title or id
            </h1>
            <div class="documentDescription" tal:content="python:here.Description()" />
            <metal:block metal:use-macro="python: here.widget('text', mode='view', use_label=0)" />
        </fieldset>

        <tal:block tal:define="env python:here.getEnvironmentref();">
            <tal tal:condition="env">
                <tal metal:use-macro="here/eduplone_listing/macros/main" />
            </tal>
        </tal:block>
        
        <div metal:use-macro="here/document_byline/macros/byline">
          Get the byline - contains details about author and modification date.
        </div>
    
        <metal:block use-macro="view_macros/footer|default" />

      </div>
    </div>
  </body>
</html>



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.