Dotclear

source: inc/admin/default-templates/posts_cols.html.twig @ 1524:913f5a36bbb0

Revision 1524:913f5a36bbb0, 1.0 KB checked in by Dsls, 12 years ago (diff)

columns selection is now functional in admin lists

Line 
1
2
3{% block col_title %}
4     <a href="post.php?id={{e.post_id}}">{{e.post_title}}</a>
5{% endblock %}
6
7{% block col_cat -%}
8     {% if e.exists('cat_title') %}
9          <a href="category.php?id={{e.cat_id}}">{{e.cat_title}}</a>
10     {% else %}
11          {{__('None')}}
12     {% endif %}
13{%- endblock %}
14
15{% block col_date -%}
16     {{e.post_dt|date('Y-m-d')}}
17{%- endblock %}
18
19{% block col_datetime -%}
20     {{e.post_dt|date('Y-m-d h:i')}}
21{%- endblock %}
22
23{% block col_author -%}
24     {{e.user_id}}
25{%- endblock %}
26
27{% block col_status -%}
28{% set statuses = {
29     "0": {'img' : 'check-off.png', 'name':__('Unpublished')},
30     "1": {'img' : 'check-on.png', 'name':__('Published')},
31     "-1": {'img' : 'scheduled.png', 'name':__('Scheduled')},
32     "-2": {'img' : 'check-wrn.png', 'name':__('Pending')}}
33%}
34<img alt="{{statuses[e.post_status].name}}" src="images/{{statuses[e.post_status].img}}" />
35{% if e.post_selected -%}
36     <img alt="{{__('Selected')}}" src="images/selected.png" />
37{%- endif %}
38{%- endblock %}
39
40{% block list_line_start %}
41<tr class="line" id="p{{e.post_id}}">
42{% endblock %}
Note: See TracBrowser for help on using the repository browser.

Sites map