[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/nzo - login_success.pt:1.1

Brian Lloyd brian at zope.com
Mon Aug 4 20:47:21 EDT 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/nzo
In directory cvs.zope.org:/tmp/cvs-serv16386

Added Files:
	login_success.pt 
Log Message:
added overridden login_success

=== Added File Products/ZopeOrg-NV/skins/nzo/login_success.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"
      i18n:domain="plone">

<body>

<tal:block tal:condition="exists: here/portal_skins | nothing"
     tal:replace="nothing">

    <tal:block tal:condition="here/portal_skins/updateSkinCookie | nothing"
               tal:define="dummy here/setupCurrentSkin" />
    

</tal:block>

  <metal:block fill-slot="base">
      <tal:block tal:define="dummy python:request.set('disable_border', 1)"
                 tal:replace="nothing">
      Disable the tabs
      </tal:block>
  </metal:block>


<div metal:fill-slot="main">

    <div tal:define="p_props here/portal_properties/site_properties;
                     member here/portal_membership/getAuthenticatedMember;">
		
            <div tal:condition="python: not(member.login_time == here.ZopeTime('2000/01/01') and here.validate_email)">
                <metal:block tal:on-error="nothing"
		                     tal:define="d_reg python: member.setProperties(last_login_time=member.login_time); 
                                         ereg python: member.setProperties(login_time=here.ZopeTime());
                                         global actions python: here.portal_actions.listFilteredActionsFor(here);">
                </metal:block>
				
                <div tal:define="came_from request/came_from|nothing" tal:condition="came_from">
                    <div tal:define="not_allowed python:('login','login_success','login_password','login_failed','login_form','logged_in','logged_out','registered','mail_password','mail_password_form','join_form','require_login');"
                         tal:condition="python:came_from.split('?')[0].split('/')[-1:][0] not in not_allowed">
                         <div tal:define="dummy python: request.RESPONSE.redirect(came_from)" />
                    </div>
                </div>

                <h1 i18n:translate="heading_you_are_now_logged_in">You are now logged in</h1>
                
                <p i18n:translate="description_logged_in_explain">
                You will notice that the top right bar has changed, it now
                contains several personalized items. These will stay there
                as long as you are logged in, and allow you to control your
                settings and your personal area.
                </p>
                
                <p i18n:translate="description_newbie_pointers">
                You might want to head over to
                
                    <span i18n:name="your_folder">
                        <a href="" 
                           i18n:translate="description_newbie_pointers_yourfolder_link"
                           tal:define="mystuff python:[a['url'] for a in actions['user'] if a['id']=='mystuff']"
                           tal:condition="mystuff" tal:attributes="href python:mystuff.pop()"
                           >your folder</a>
                    </span>
                                
                and add some content, or
                 
                    <span i18n:name="set_up_your_preferences">
                        <a href="" 
                           i18n:translate="description_newbie_pointers_preferences_link"
                           tal:define="prefs python:[a['url'] for a in actions['user'] if a['id']=='preferences']"
                           tal:condition="prefs" tal:attributes="href python:prefs.pop()"
                           >set up your Preferences</a></span>.
                
                </p>

                <tal:block
                 tal:define="results python:[];
                             Batch python:modules['Products.CMFPlone'].Batch;
                             DateTime python:modules['DateTime'].DateTime;
                             b_start python:request.get('b_start',0);">
                    
                    <form name="searchresults" action="" method="post" tal:condition="results"
                                      tal:define="batch python:Batch(results, 15, int(b_start), orphan=1)">

                        <h1 i18n:translate="heading_items_published_since_last_login">Items published since your last login</h1>
                        
                        <table class="listing" id="sortable">
                        
                            <thead>
                                <tr>
                                    <th i18n:translate="listingheader_title">Title</th>
                                    <th i18n:translate="listingheader_type">Type</th>
                                    <th i18n:translate="listingheader_modified">Modified</th>
                                    <th i18n:translate="listingheader_author">Author</th>
                                    <th i18n:translate="listingheader_description">Description</th>
                                </tr>
                            </thead>
                            
                            <tbody>
                                <tal:block tal:repeat="result batch">
                                <tr tal:define="oddrow repeat/result/odd;
                                                result_url result/getURL;
                                                url string:$result_url/view;" 
		                                        tal:attributes="class python:test(oddrow, 'even', 'odd')">
                                    <td>
                    		         <a href="#" 
                                        tal:attributes="href url">
                                        <img src="#" 
                                             height="16"
                                             width="16"
                                             alt="dummy"
                                             tal:replace="structure python:path('here/%s' % result.getIcon)" /></a>&nbsp;<a 
                                        href="#" tal:attributes="href url"
                                        tal:content="result/Title|result/id" />
                                    </td>      
                                    <td i18n:translate="" tal:content="result/Type">Type</td>      
                                    <td tal:content="python:here.toPortalTime(result.ModificationDate, long_format=1)">Modification Date</td>                                    <td tal:content="result/Creator">Author</td>      
                                    <td tal:content="result/Description">Description</td>      
                                </tr>
                                </tal:block>
                            </tbody>
                        
                        </table>

                
                    </form>
                
                </tal:block>

		</div>

	</div>

</div>

</body>
</html>






More information about the zopeorg-checkins mailing list