Changeset 84

Show
Ignore:
Timestamp:
07/01/07 00:28:35
Author:
sjudge
Message:

Changed to better display symbols etc.

Files:

Legend:

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

    r81 r84  
    6262    <div tal:repeat="categoryId python:here.getCategoriesToList(CatType)"> 
    6363        <li 
    64                 tal:define="category     python:here.getCategoryName(categoryId, CatType)"> 
    65             <h6> 
    66                 <span tal:condition="python:category == 'Text input Projects'"> 
    67                         <img tal:replace="structure here/textinput_32.gif" alt="Text Input Projects"/> 
    68                 </span> 
    69                 <span tal:condition="python:category == 'Accessing the Web'"> 
    70                         <img tal:replace="structure here/webaccess_32.gif" alt="Accessing the Web"/> 
    71                 </span> 
    72                 <span tal:condition="python:category == 'Using the Mouse'"> 
    73                         <img tal:replace="structure here/mouse_32.gif" alt="Using the Web"/> 
    74                 </span> 
    75                 <span tal:condition="python:category == 'Viewing the screen'"> 
    76                         <img tal:replace="structure here/viewing_32.gif" alt="Viewing the Screen"/> 
    77                 </span> 
    78                 <span tal:condition="python:category == 'Symbols'"> 
    79                         <img tal:replace="structure here/symbol_32.gif" alt="Symbols"/> 
    80                 </span> 
    81                 <span tal:condition="python:category == 'Alternative Access'"> 
    82                         <img tal:replace="structure here/altaccess_32.gif" alt="Alternative Access"/> 
    83                 </span> 
    84                 <span tal:condition="python:category == 'Learning and Eductation'"> 
    85                         <img tal:replace="structure here/education_32.gif" alt="Learning and Education"/> 
    86                 </span> 
    87                 <span tal:condition="python:category == 'Other need'"> 
    88                         <img tal:replace="structure here/other_32.gif" alt="Other need"/> 
    89                 </span> 
    90                 <span tal:condition="python:category == 'On Screen Keyboard Projects'"> 
    91                         <img tal:replace="structure here/keyboard_32.gif" alt="On Screen Keyboard Project"/> 
    92                 </span> 
    93                 <span tal:condition="python:category == 'Symol Library'"> 
    94                         <img tal:replace="structure here/symbollib_32.gif" alt="Symbol Library"/> 
    95                 </span> 
    96                 <span tal:condition="python:category == 'Text to Speech'"> 
    97                         <img tal:replace="structure here/texttospeech_32.gif" alt="Text to Speech"/> 
    98                 </span> 
    99                 <span tal:condition="python:category == 'Computer Automation'"> 
    100                         <img tal:replace="structure here/automation_32.gif" alt="Computer Automation"/> 
    101                 </span> 
    102                 <span tal:condition="python:category == 'Switch Input Software'"> 
    103                         <img tal:replace="structure here/switch_32.gif" alt="Switch Input"/> 
    104                 </span> 
    105                 <span tal:condition="python:category == 'Alternative and Augmentative Communication'"> 
    106                         <img tal:replace="structure here/aac_32.gif" alt="Alternative and Augmentative Communication"/> 
    107                 </span> 
    108                 <span tal:condition="python:category == 'Environmental Control'"> 
    109                         <img tal:replace="structure here/education_32.gif" alt="Environmental Control"/> 
    110                 </span> 
    111                 <span tal:condition="python:category == 'Educational and Learning'"> 
    112                         <img tal:replace="structure here/education_32.gif" alt="Educational and Learning"/> 
    113                 </span> 
    114                 <span tal:condition="python:category == 'Other function'"> 
    115                         <img tal:replace="structure here/other_32.gif" alt="Other function"/> 
    116                 </span> 
     64                tal:define="category     python:here.getCategoryName(categoryId, CatType); 
     65                            category_lower python: categoryId.lower()"> 
     66                     <h6> 
     67                         <img src="" alt="" tal:attributes="src string:${category_lower}_32.gif; alt string:${category}"/> 
    11768                    <a href="" 
    11869                       tal:condition= "python:Forge=='Forge'" 
     
    13283         </li> 
    13384    </div> 
     85 
    13486 
    13587    <form style="float: right" 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/by-category.pt

    r74 r84  
    9494                          tal:content="package/Title">Title</a> 
    9595                      </dt> 
    96                       Category: 
    97                         <span tal:repeat="cattype package/getCategoryTitles()"> 
    98                                 <span tal:condition="python:cattype == 'On Screen Keyboard Projects'"> 
    99                                         <img tal:replace="structure here/keyboard_16.gif" alt="On Screen Keyboard Project"/> 
    100                                 </span> 
    101                                 <span tal:condition="python:cattype == 'Symol Library'"> 
    102                                         <img tal:replace="structure here/symbollib_16.gif" alt="Symbol Library"/> 
    103                                 </span> 
    104                                 <span tal:condition="python:cattype == 'Text to Speech'"> 
    105                                         <img tal:replace="structure here/texttospeech_16.gif" alt="Text to Speech"/> 
    106                                 </span> 
    107                                 <span tal:condition="python:cattype == 'Computer Automation'"> 
    108                                         <img tal:replace="structure here/automation_16.gif" alt="Computer Automation"/> 
    109                                 </span> 
    110                                 <span tal:condition="python:cattype == 'Switch Input Software'"> 
    111                                         <img tal:replace="structure here/switch_16.gif" alt="Switch Input"/> 
    112                                 </span> 
    113                                 <span tal:condition="python:cattype == 'Alternative and Augmentative Communication'"> 
    114                                         <img tal:replace="structure here/aac_16.gif" alt="Alternative and Augmentative Communication"/> 
    115                                 </span> 
    116                                 <span tal:condition="python:cattype == 'Environmental Control'"> 
    117                                         <img tal:replace="structure here/education_16.gif" alt="Environmental Control"/> 
    118                                 </span> 
    119                                 <span tal:condition="python:cattype == 'Educational and Learning'"> 
    120                                         <img tal:replace="structure here/education_16.gif" alt="Educational and Learning"/> 
    121                                 </span> 
    122                                 <span tal:condition="python:cattype == 'Other function'"> 
    123                                         <img tal:replace="structure here/other_16.gif" alt="Other function"/> 
    124                                 </span> 
    125                         </span> 
    12696                         
    12797                    <dd tal:content="package/Description">Description</dd> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/portlet_categories.pt

    r81 r84  
    2121            <div> 
    2222 
    23                 <ul style="list-style-type: none; list-style-image: none; margin-left: 0;">                 
     23            <ul style="list-style-type: none; list-style-image: none; margin-left: 0;">                 
     24 
     25               <span tal:repeat="category here/getCategories"> 
     26                         <a href="" tal:attributes="href string:/Software/by-category/Repository/Function/${category}; 
     27                                                    title category" 
     28                                    tal:content="python: here.getCategoryName(category, 'Function')"> Category links</a> 
     29               </span> 
     30               <span tal:repeat="category here/getCategories_need"> 
     31                         <a href="" tal:attributes="href string:/Software/by-category/Repository/Need/${category}; 
     32                                                    title category"  
     33                                    tal:content="python: here.getCategoryName(category, 'Need')"> Category links</a> -  
     34               </span>     
     35            </ul> 
     36 
     37        </div> 
     38 
     39<p/> 
     40        <div> 
    2441 
    2542           <span tal:repeat="category here/getCategories"> 
    2643                         <a href="" tal:attributes="href string:/Software/by-category/Repository/Function/${category}; 
    2744                                                    title category"  
    28                                     tal:content="python: here.getCategoryName(category, 'Function')"> Category links</a> -  
     45                                    tal:define="categoryName python: here.getCategoryName(category, 'Function'); 
     46                                                category_lower python: category.lower()"> 
     47                          <img src="" alt="" tal:attributes="src string:${category_lower}_16.gif; alt string:${category}"/></a> 
    2948                      </span> 
    3049                      <span tal:repeat="category here/getCategories_need"> 
    3150                         <a href="" tal:attributes="href string:/Software/by-category/Repository/Need/${category}; 
    3251                                                    title category"  
    33                                     tal:content="python: here.getCategoryName(category, 'Need')"> Category links</a> -  
    34                       </span>     
    35             </ul> 
     52                                    tal:define="categoryName python: here.getCategoryName(category, 'Need'); 
     53                                                category_lower python: category.lower()"> 
     54                          <img src="" alt="" tal:attributes="src string:${category_lower}_16.gif; alt string:${category}"/></a> 
     55                      </span> 
    3656 
    37         </div> 
     57       </div> 
    3858 
    39             </tal:block> 
    40  
     59      </tal:block> 
    4160   
    42         </div> 
     61     </div> 
    4362 
    4463    </div> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/psc_project_view.pt

    r82 r84  
    3838            <img tal:replace="structure here/product_icon.gif" /> 
    3939            <span tal:replace="here/title_or_id">Title or id</span> 
     40             
    4041        </h1> 
    4142 
     
    8586        <p> You must read the <a href="/Info/disclaimer">disclaimer</a> before downloading.</p> 
    8687 
    87         <tal:noreleases tal:condition="not:latestrelease and not here.getDownloadPage()"> 
     88        <tal:noreleases tal:condition="python:not latestrelease and not here.getDownloadPage()"> 
    8889 
    8990            <p class="discreet">