Ignore:
Timestamp:
Mar 17, 2011, 8:25:13 PM (13 years ago)
Author:
mistic100
Message:

[extensions] Contest Results

  • New bloc for PWG Stuffs
  • Use new admin links and javascript implementation
  • Distinguish pending and running contests (both pending before)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/template/cr_main.tpl

    r9572 r9745  
    1 {combine_css id='cr_style' path=$CR_PATH|@cat:'template/style.css'}
     1{combine_css path=$CR_PATH|@cat:'template/style.css'}
    22
    33{$MENUBAR}
     
    2626{else}
    2727        <ul class="thumbnailCategories">
    28         {foreach from=$contests item=contest}
    29                 <li>
    30                         <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}">
     28                {foreach from=$contests item=contest}
     29                <li {if !$contest.VISIBLE}class="novisible"{/if}>
     30                        <div class="thumbnailCategory">
    3131                                <div class="illustration">
    32                                 {if !$contest.FINISHED == 'pending'}
    3332                                        <a href="{$contest.URL}">
    34                                         {if !empty($contest.LOGO)}
     33                                        {if $contest.STATUS != 'finished' AND !empty($contest.LOGO)}
    3534                                                <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;">
     35                                        {elseif !empty($contest.RESULTS.1.TN_SRC)}
     36                                                <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}">
    3637                                        {/if}
    3738                                        </a>
    38                                 {else}
    39                                         <a href="{$contest.URL}">
    40                                                 <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}">
    41                                         </a>
    42                                 {/if}
    4339                                </div>
    4440                                <div class="description">
    45                                         <h3>
    46                                                 <a href="{$contest.URL}">{$contest.NAME}</a>
    47                                                 {if $contest.FINISHED}
    48                                                         <span class="CR_finished">({'CR_finished'|@translate})</span>
    49                                                 {else}
    50                                                         <span class="CR_finished">({$contest.DAYS} {'CR_days'|@translate})</span>
    51                                                 {/if}
    52                                         </h3>
     41                                        <h3><a href="{$contest.URL}">{$contest.NAME}</a></h3>
    5342                                        <div class="text">
    5443                                                <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p>
     44                                                <span class="CR_finished">({$contest.DAYS})</span>
    5545                                                <p>
    56                                                 {if !$contest.FINISHED}
    57                                                         {if !empty($contest.SUMMARY)}
    58                                                                 {$contest.SUMMARY}
    59                                                         {/if}
     46                                                {if $contest.STATUS != 'finished' AND !empty($contest.SUMMARY)}
     47                                                        {$contest.SUMMARY}
    6048                                                {else}
    6149                                                        {foreach from=$contest.RESULTS item=result}
     
    6856                        </div>
    6957                </li>
    70         {/foreach}
     58                {/foreach}
    7159        </ul>
    7260{/if}
Note: See TracChangeset for help on using the changeset viewer.