root/branches/release-30/tmpl/cms/include/template_table.tmpl @ 1408

Revision 1408, 5.3 kB (checked in by bsmith, 21 months ago)

simplifying list templates page - bugzid:68696

  • Property svn:keywords set to Id Revision
Line 
1<mt:setvarblock name="action_buttons">
2<mt:unless name="template_type" eq="system"><mt:unless name="template_type" eq="email">
3    <a href="javascript:void(0)"
4        onclick="doRemoveItems(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="template" escape="js">', '<__trans phrase="templates" escape="js">'); return false;"
5        accesskey="x"
6        title="<__trans phrase="Delete selected [_1] (x)" params="<$mt:var name="object_label_plural"$>">"
7        ><__trans phrase="Delete"></a>
8</mt:unless></mt:unless>
9</mt:setvarblock>
10<mtapp:listing hide_pager="1" class="show-all">
11    <mt:if __first__>
12        <thead>
13            <tr>
14                <th class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
15                <th class="template-name"><__trans phrase="Template Name"></th>
16<mt:if name="template_type" like="/(index|archive)/">
17                <th class="output-file"><__trans phrase="Output File"></th>
18</mt:if>
19        <mt:unless name="filter">
20                <th class="template-type"><__trans phrase="Type"></th>
21        </mt:unless>
22        <mt:unless name="blog_view">
23                <th class="blog"><__trans phrase="Blog"></th>
24        </mt:unless>
25<mt:unless name="screen_id" eq="search-replace">
26                <th class="linked-template si"><!-- <span><__trans phrase="Linked"></span> --><img src="<mt:var name="static_uri">images/status_icons/linked.gif" alt="<__trans phrase="Linked Template">" title="<__trans phrase="Linked Template">" width="17" height="9" /></th>
27</mt:unless>
28<mt:if name="template_type" like="/(index|archive)/">
29                <th class="dynamic-template si"><!-- <span><__trans phrase="Dynamic"></span> --><img src="<mt:var name="static_uri">images/status_icons/dynamic.gif" alt="<__trans phrase="Dynamic Template">" title="<__trans phrase="Dynamic Template">" width="11" height="9" /></th>
30                <th class="rebuild-template si"><!-- <span><__trans phrase="Published w/Indexes"></span> --><img src="<mt:var name="static_uri">images/status_icons/rebuild.gif" alt="<__trans phrase="Published Template w/Indexes">" title="<__trans phrase="Published Template w/Indexes">" width="9" height="9" /></th>
31                <th class="view-template si"><span><__trans phrase="View"></span></th>
32</mt:if>
33            </tr>
34        </thead>
35        <tbody>
36    </mt:if>
37            <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> template-<$mt:var name="template_type"$>">
38                <td class="cb"><input type="checkbox" name="id" class="select" value="<mt:var name="id">" /></td>
39                <td class="template-name"><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;id=<mt:var name="id">&amp;blog_id=<mt:var name="blog_id">"><mt:var name="name" escape="html"></a></td>
40<mt:if name="template_type" like="/(index|archive)/">
41                <td class="output-file">
42    <mt:if name="outfile">
43        <mt:var name="outfile" escape="html">
44    <mt:else name="template_type" eq="archive">
45                    <ul>
46        <mt:loop name="archive_types">
47            <mt:loop name="archive_tmpl_loop">
48                        <li><mt:if name="selected"><mt:var name="name" escape="html"></mt:if></li>
49            </mt:loop>
50        </mt:loop>
51                    </ul>
52    <mt:else>
53        <span><__trans phrase="-"></span>
54    </mt:if>
55                </td>
56</mt:if>
57        <mt:unless name="filter">
58                <td class="template-type"><$mt:var name="type"$></td>
59        </mt:unless>
60        <mt:unless name="blog_view">
61                <td class="blog"><a href="<$mt:var name="script_url"$>?__mode=list&amp;_type=template&amp;blog_id=<$mt:var name="blog_id"$>"><$mt:var name="weblog_name" escape="html"$></a></td>
62        </mt:unless>
63<mt:unless name="screen_id" eq="search-replace">
64                <td class="linked-template si status-<mt:if name="linked_file">linked<mt:else>unlinked</mt:if>"><!-- <span><__trans phrase="Linked"></span> --><img src="<mt:var name="static_uri">images/spacer.gif" alt="<mt:if name="linked_file"><__trans phrase="Yes"><mt:else><__trans phrase="No"></mt:if>" width="9" height="9" <mt:if name="linked_file">title="<mt:var name="linked_file" escape="html">"</mt:if> /></td>
65</mt:unless>
66<mt:if name="template_type" like="/(index|archive)/">
67                <td class="dynamic-template si status-<mt:if name="build_dynamic">dynamic<mt:else>static</mt:if>"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<mt:if name="build_dynamic"><__trans phrase="Yes"><mt:else><__trans phrase="No"></mt:if>" width="9" height="9" /></td>
68                <td class="rebuild-template si status-<mt:if name="rebuild_me">rebuild<mt:else>norebuild</mt:if>"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<mt:if name="rebuild_me"><__trans phrase="Yes"><mt:else><__trans phrase="No"></mt:if>" width="9" height="9" /></td>
69                <td class="view-template si status-view"><mt:if name="published_url"><a href="<mt:var name="published_url">" target="<__trans phrase="_external_link_target">" title="<__trans phrase="View Published Template">"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<__trans phrase="View Published Template">" width="13" height="9" /></a><mt:else><__trans phrase="-"></mt:if></td>
70</mt:if>
71            </tr>
72    <mt:if __last__>
73        </tbody>
74    </mt:if>
75</mtapp:listing>
Note: See TracBrowser for help on using the browser.