Distances in threaded discussion are now logarithmic (in default template)
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 1549839.tpl
CommitLineData
51ff3226 1{if $template_event eq 'preview'}
2<table>
3 <tr>
4 <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
5 <td width='100%' valign='top'>
6 <table width='100%'>
7 <tr class='header'><td align='center'>PREVIEW of {$post_vars.node_name}</td></tr>
8 <tr><td>{$post_vars.node_content|preview}</td></tr>
9 </table>
10</table>
11{* end of preview *}
12{elseif $template_event eq 'filter_by'}
13{get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
14{elseif $node.node_user_subchild_count eq true}
15{get_threaded_children offset=0 link='yes' listing_amount=23232323232 time=$node.last_visit time=$node.last_visit orderby=$listing_order }
16<!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>-->
17{else}
18{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}
19{/if}
20
21{foreach from=$get_threaded_children item=child}{if $child.template_id neq 1549834 and $child.external_link neq "session://fook"}
22<table width='666'>
23 <tr>
24{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}
25{*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*}
26 <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td>
27 </tr>
28{*/if*}
29 <tr>
673568c7 30<!--XXX test oflogarithmic threading (original (x-y)-8 )-->
31 <td width='{math equation="10*log(3+(x-y))-8" x=$child.depth y=$node.vector_depth}%'></td>
51ff3226 32 <td valign='top' rowspan='2'>
33{* put.Ty hack *}
34{if $child.synapse_creator neq ''}
35 <img src='{get_image_link id=$child.synapse_creator}' width='50' hspace='5' alt='SYNAPSE CREATOR' />
36{else}
37 <img src='{get_image_link id=$child.node_creator}' width='50' hspace='5' alt='{$child.login}' onclick="km();sm('{$child.login}','{$child.node_creator}','{$node.node_id}')" />
38{/if}
39{*end of put.Ty hack *}
40 </td>
41 <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'>
42 <table class='bordered' width='100%'><tr class='header'>
43 <td>
44 &nbsp;<a href='/id/{$child.node_creator}'>{$child.login}</a>
45{if $child.user_action neq false}
46 &nbsp;[lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>]
47{/if}
48&nbsp;&nbsp;<input type='checkbox' value='{$child.node_id}' name='node_chosen[]'>
49&nbsp;&nbsp;{$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"}
50{if $child.node_updated} (modif: {$child.node_updated|date_format:"%d.%m.%Y. - %H:%M:%S"}){/if}
51{if $child.k > 0} [<span class='most_important'>{$child.k}K</span>] {/if}
52{if $child.node_created > $node.last_visit}<span class='most_important'>&nbsp;&nbsp;NEW</span>{/if}
53{if $child.node_status eq 'linked'}
54&nbsp;<span class='important'>HARDLINK</span>
55{/if}
56{if $child.node_updated > $node.last_visit}<span class='most_important'>!!CONTENT CHANGED!!</span>{/if}
57{if $bookmarks.last_visit eq true and $child.lastdescendant_created > $bookmarks.last_visit}<span class='most_important'>!!NEW DESCENDANT!!</span>{/if}
58
59
60<div style='text-align:center;'>
61{if $child.node_name eq ''}
62<a href='/id/{$child.node_id}'>enter node {$child.node_id}</a>
63{else}
64<a href='/id/{$child.node_id}'>{$child.node_name|stripslashes}</a>
65{/if}
66{if $child.node_creator eq $user_id}| <a href='/id/{$child.node_id}/1961033'>conf</a>{/if}
67</div></td></tr>
68<tr><td>{if $permissions.r}{$child.node_content|stripslashes|nl2br|replace:'...':'&hellip;'}{else}you don't have permissions for viewing this data node{/if}</td></tr>
69</table></td>
70{/if}{*IGNORE USER CONDITION end*}
71</tr>
72</table>
73
74<br>{/if}
75{/foreach}
76
77<table align='center'><tr>
78<td><input type='hidden' name='get_children_offset' value='{$offset}'></td>
79<td><input type='submit' name='get_children_move' value='<'></td>
80<td><input type='submit' name='get_children_move' value='<<'></td>
81<td><input name='get_children_move' type='submit' value='>>'></td>
82<td><input type='submit' name='get_children_move' value='>'></td>
673568c7 83</tr></table>
This page took 0.175032 seconds and 4 git commands to generate.