Changeset 61

Show
Ignore:
Timestamp:
05/02/06 00:10:27
Author:
sjudge
Message:

to allow forge style sheets. Need to fix forge_product_view.pt to allow viewing of related software...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/browse.pt

    r58 r61  
    66 
    77<head> 
    8     <metal:css fill-slot="css_slot"> 
    9         <style type="text/css" media="all" 
    10                tal:content="string:@import url($portal_url/plonesoftwarecenter.css);"></style> 
     8    <metal:css fill-slot="css_slot" tal:define="Forge python:request.traverse_subpath and request.traverse_subpath[0] or nothing;"> 
     9      <style type="text/css" media="all" 
     10             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
     11      <style type="text/css" media="all" 
     12             tal:condition="python:Forge=='Forge'" 
     13             tal:content="string: @import url($portal_url/forge.css);"></style> 
    1114    </metal:css> 
    1215 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/by-category.pt

    r58 r61  
    99        <tal:border define="dummy python:request.set('disable_border', 1)"/> 
    1010    </metal:top> 
    11     <metal:css fill-slot="css_slot"> 
     11     
     12    <metal:css fill-slot="css_slot" tal:define="Forge python:request.traverse_subpath and request.traverse_subpath[0] or nothing;"> 
    1213      <style type="text/css" media="all" 
    1314             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
     15      <style type="text/css" media="all" 
     16             tal:condition="python:Forge=='Forge'" 
     17             tal:content="string: @import url($portal_url/forge.css);"></style> 
    1418    </metal:css> 
     19     
    1520    <metal:override fill-slot="column_two_slot" /> 
    1621</head> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/forge_product_view.pt

    r58 r61  
    1010             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
    1111      <style type="text/css" media="all" 
    12              tal:content="string: @import url($portal_url/Forge/ploneForgeCustom.css);"></style> 
     12             tal:content="string: @import url($portal_url/forge.css);"></style> 
    1313    </metal:css> 
    1414     
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/forge_view.pt

    r58 r61  
    77<head> 
    88    <metal:css fill-slot="css_slot"> 
    9         <style type="text/css" media="all" 
    10                tal:content="string:@import url($portal_url/plonesoftwarecenter.css);"></style> 
    11         <style type="text/css" media="all" 
    12              tal:content="string: @import url($portal_url/Forge/ploneForgeCustom.css);"></style> 
    13   
     9      <style type="text/css" media="all" 
     10             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
     11      <style type="text/css" media="all" 
     12             tal:content="string: @import url($portal_url/forge.css);"></style> 
    1413    </metal:css> 
    15  
    1614    <metal:override fill-slot="column_two_slot" /> 
    1715 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/listing.pt

    r58 r61  
    99        <tal:border define="dummy python:request.set('disable_border', 1)"/> 
    1010    </metal:top> 
    11     <metal:css fill-slot="css_slot"
     11    <metal:css fill-slot="css_slot" tal:define="Forge python:request.traverse_subpath and request.traverse_subpath[0] or nothing;"
    1212      <style type="text/css" media="all" 
    1313             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
     14      <style type="text/css" media="all" 
     15             tal:condition="python:Forge=='Forge'" 
     16             tal:content="string: @import url($portal_url/forge.css);"></style> 
    1417    </metal:css> 
    1518    <metal:override fill-slot="column_two_slot" /> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/psc_project_view.pt

    r58 r61  
    66 
    77<head> 
    8  
    9     <div tal:define="Forge python:request.traverse_subpath and request.traverse_subpath[0] or nothing;"> 
    10     </div> 
    11  
    128    <metal:css fill-slot="css_slot"> 
    139      <style type="text/css" media="all" 
    14              tal:content="string: @import url($portal_url/plonesoftwarecenter.css);" 
    15              tal:condition="python:Forge=='Forge'"></style> 
     10             tal:content="string: @import url($portal_url/plonesoftwarecenter.css);"></style> 
    1611    </metal:css> 
    1712</head> 
     
    2217 
    2318  <div metal:define-macro="main" tal:define="latestrelease here/getLatestRelease; 
    24                                              herePath python:'/'.join(here.getPhysicalPath()); 
    25                                              Forge python:request.traverse_subpath and request.traverse_subpath[0] or nothing"> 
     19                                             herePath python:'/'.join(here.getPhysicalPath())"> 
    2620 
    2721        <tal:syndicate condition="syntool/isSiteSyndicationAllowed"> 
     
    4337            <span tal:replace="here/title_or_id">Title or id</span> 
    4438        </h1> 
    45  
    46         <h2 class="documentDescription" tal:condition="python:Forge=='Forge'"> 
    47         This is a FORGE PAGE!!!!! 
    48         </h2> 
    4939 
    5040       <div class="discreet"> 
     
    174164 
    175165        <div class="visualClear"></div> 
     166 
     167        <div:related tal:define="relatedSoftware here/getResourceSoftware" 
     168                     tal:condition="relatedSoftware"> 
     169 
     170        <dl> 
     171            <dt class="portletHeader"><span i18n:translate="box_related_software">Related Software</span></dt> 
     172 
     173                <dd class="portletItem odd" > 
     174                    <ul class="visualNoMarker"> 
     175                        <li tal:repeat="related relatedSoftware"> 
     176                            <a href="" 
     177                               tal:attributes="href string:${related/url}"> 
     178                               <img src="" alt="" 
     179                                    tal:attributes="src string:$portal_url/${related/icon};alt here/Title" /> 
     180                               &nbsp;<span tal:replace="related/title">Object related by keyword</span> 
     181                            </a> 
     182                        </li> 
     183                    </ul> 
     184                </dd> 
     185        </dl> 
     186         
     187        </div:related> 
    176188  
    177189  
     
    189201                <p> Interested in helping to devlop this project?  Go to the <a href="" tal:attributes="href string:$here_url/forge_view">forge page</a> for more information. </p> 
    190202            </div> 
    191  
    192         <div class="visualClear"></div> 
    193          
    194         <div metal:use-macro="here/document_relateditems/macros/relatedItems"> 
    195             show related items if they exist 
    196         </div> 
    197203         
    198204        <div class="visualClear"></div>