Reworked template.
[gruta.git] / templates / art5 / _story_footer
blob30b26224c725a9f9442b12a2817599e5e4dea1a0
1 <div class = 'story_footer'>
3     <span class = 'story_link'>
4         <{link {url 'STORY' 'topic' $0 'id' $1} '»'}>
5     </span>
7         <{if {is_topic_editor $0} {
8                 {if cfg_top_ten_num {
9                         "<span class = 'hits'> · ("
10                         @"Hits:"
11                         ' '
12                         {story_hits $0 $1}
13                         ')</span>'
14                         }
15                 }
16                 "<span class = 'edit_link'> · "
17                 {link_to_edit_story $0 $1}
18                 "</span>"
19                 }
20         }>
22         <span class = 'date_link'> ·
23                 <{link
24                         {url 'SEARCH_BY_DATE' 'from' 
25                                 {story_date '%y%m%d000000' $0 $1}
26                         'to'
27                                 {story_date '%y%m%d235959' $0 $1}
28                         }
29                         {story_date {or cfg_story_date_format cfg_date_format} $0 $1}
30                 }>
31         </span>
33     <span class = 'topic_link'> ·
34     <{link {url 'TOPIC' 'topic' $0} {topic_name $0}}>
35     </span>
37     <span class = 'comment_link'>
38     <{if {size {story_comments $0 $1}} {
39         {?
40             " · "
41             {link
42                 {
43                     ?
44                     {url 'STORY' 'topic' $0 'id' $1}
45                     '#comments'
46                 }
47                 {
48                     ?
49                     {size {story_comments $0 $1}}
50                     ' '
51                     @"comments"
52                     }
53                 }
54             }
55         }
56         {if {and {not cfg_disable_comments} {story_has_comments $0 $1}} {
57             {?
58                 " · "
59                 {link
60                     {?
61                         {url 'STORY' 'topic' $0 'id' $1}
62                         '#comments'
63                     }
64                     @"Add a comment"
65                 }
66             }
67         }
68     }>
69     </span>
71         <span class = 'tags'>
72         <{foreach {story_tags $0 $1}
73                 {link {url 'SEARCH_BY_TAG' 'tag' $0} $0}
74                 ', '
75         }>
76         </span>
77 </div>