root/trunk/tmpl/cms/include/template_table.tmpl @ 3082

Revision 3082, 9.2 kB (checked in by bchoate, 14 months ago)

Merging fireball branch changes to-date to trunk: svn merge -r2974:3081 http://code.sixapart.com/svn/movabletype/branches/fireball .

  • Property svn:keywords set to Id Revision
Line 
1<mt:setvarblock name="listing_header">
2    <h3><mt:var name="template_type_label"></h3>
3
4    <mt:unless name="template_type" like="/system|email|backup/">
5        <mt:if name="template_type" eq="archive">
6    <p><__trans phrase="Create Archive Template:">
7        &nbsp;
8        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=individual&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Entry"></a>
9        &nbsp;
10        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=archive&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Entry Listing"></a>
11        &nbsp;
12        <a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=page&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Page"></a>
13    </p>
14        <mt:elseif name="template_type" eq="module">
15    <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=module&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create template module"></a></p>
16        <mt:elseif name="template_type" eq="index">
17    <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=template&amp;type=index&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create index template"></a></p>
18        <mt:elseif name="create_link">
19        <mt:var name="create_link">
20        </mt:if>
21    </mt:unless>
22</mt:setvarblock>
23<mt:setvarblock name="action_buttons">
24    <mt:unless name="template_type" eq="system"><mt:unless name="template_type" eq="email">
25    <mt:if name="template_type" eq="index">
26        <a href="javascript:void(0)"
27            onclick="doForMarkedInThisWindow(getByID('<$mt:var name="template_type" default="template"$>-listing-form'), '<__trans phrase="template" escape="js">', '<__trans phrase="templates" escape="js">', 'id', 'publish_index_templates', {}, '<__trans phrase="to publish" escape="js">'); return false;"
28            accesskey="a"
29            title="<__trans phrase="Publish selected templates (a)">"
30            ><__trans phrase="Publish"></a>
31    <mt:else if name="template_type" eq="archive">
32        <a href="javascript:void(0)"
33            onclick="doForMarkedInThisWindow(getByID('<$mt:var name="template_type" default="template"$>-listing-form'), '<__trans phrase="template" escape="js">', '<__trans phrase="templates" escape="js">', 'id', 'publish_archive_templates', {}, '<__trans phrase="to publish" escape="js">'); return false;"
34            accesskey="a"
35            title="<__trans phrase="Publish selected templates (a)">"
36            ><__trans phrase="Publish"></a>
37    </mt:if>
38    <a href="javascript:void(0)"
39        onclick="doRemoveItems(getByID('<$mt:var name="template_type" default="template"$>-listing-form'), '<__trans phrase="template" escape="js">', '<__trans phrase="templates" escape="js">'); return false;"
40        accesskey="x"
41        title="<__trans phrase="Delete selected [_1] (x)" params="<$mt:var name="object_label_plural"$>">"
42        ><__trans phrase="Delete"></a>
43    </mt:unless></mt:unless>
44</mt:setvarblock>
45<mt:setvarblock name="table_id"><mt:var name="template_type" default="template">-listing</mt:setvarblock>
46<mtapp:listing id="$table_id" hide_pager="1" class="show-all" listing_class="show-actions-bar-top" type="template">
47    <mt:if __first__>
48        <thead>
49            <tr>
50                <th class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
51                <th class="template-name"><__trans phrase="Template Name"></th>
52        <mt:if name="template_type" eq="index">
53                <th class="output-file"><__trans phrase="Output File"></th>
54        </mt:if>
55        <mt:if name="template_type" eq="archive">
56                <th class="output-file"><__trans phrase="Archive Path"></th>
57        </mt:if>
58        <mt:unless name="blog_view">
59                <th class="blog"><__trans phrase="Blog"></th>
60        </mt:unless>
61        <mt:if name="template_type" like="/(index|archive)/">
62                <th class="publishing-method"><__trans phrase="Publish"></th>
63        </mt:if>
64        <mt:if name="template_type" like="(module|widget)">
65            <mt:if name="blog_id">
66                <th class="cache-method"><__trans phrase="Cached"></th>
67            </mt:if>
68        </mt:if>
69        <mt:unless name="screen_id" eq="search-replace">
70                <th class="linked-template si"><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>
71        </mt:unless>
72            </tr>
73        </thead>
74        <tbody>
75    </mt:if>
76            <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> template-<$mt:var name="template_type" default="template"$>">
77                <td class="cb"><input type="checkbox" name="id" class="select" value="<mt:var name="id">" /></td>
78                <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>
79    <mt:if name="template_type" like="/(index|archive)/">
80                <td class="output-file">
81        <mt:if name="outfile">
82            <mt:var name="outfile" escape="html"> <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/status_icons/view.gif" alt="<__trans phrase="View Published Template">" width="13" height="9" /></a></mt:if>
83        <mt:else name="template_type" eq="archive">
84                    <ul>
85            <mt:loop name="archive_types">
86                <mt:loop name="archive_tmpl_loop">
87                        <mt:if name="selected"><li><mt:var name="name" escape="html"><mt:var name="build_type" value="$map_build_type"></li></mt:if>
88                </mt:loop>
89            </mt:loop>
90                    </ul>
91        <mt:else>
92                    <span><__trans phrase="-"></span>
93        </mt:if>
94                </td>
95    </mt:if>
96    <mt:unless name="blog_view">
97                <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>
98    </mt:unless>
99    <mt:if name="template_type" eq="index">
100                <td class="publishing-method">
101                    <mt:if name="build_type" eq="0"><__trans phrase="Disabled">
102                    <mt:elseif name="build_type" eq="2"><__trans phrase="Manual">
103                    <mt:elseif name="build_type" eq="3"><__trans phrase="Dynamic">
104                    <mt:elseif name="build_type" eq="4"><__trans phrase="Publish Queue">
105                    <mt:elseif name="build_type" eq="5"><__trans phrase="Scheduled">
106                    <mt:else><__trans phrase="Static"></mt:if>
107                </td>
108    <mt:else name="template_type" eq="archive">
109                <td class="publishing-method">
110                    <ul>
111            <mt:loop name="archive_types">
112                <mt:loop name="archive_tmpl_loop">
113                    <mt:if name="selected">
114                        <li>
115                    <mt:if name="map_build_type" eq="0"><__trans phrase="Disabled">
116                    <mt:elseif name="map_build_type" eq="2"><__trans phrase="Manual">
117                    <mt:elseif name="map_build_type" eq="3"><__trans phrase="Dynamic">
118                    <mt:elseif name="map_build_type" eq="4"><__trans phrase="Publish Queue">
119                    <mt:elseif name="map_build_type" eq="5"><__trans phrase="Scheduled">
120                    <mt:else><__trans phrase="Static"></mt:if>
121                        </li>
122                    </mt:if>
123                </mt:loop>
124            </mt:loop>
125                    </ul>
126                </td>
127    <mt:else name="template_type" like="(module|widget)">
128        <mt:if name="blog_id">
129                <td class="cache-method si status-<mt:if name="use_cache">cached<mt:else>uncached</mt:if>"><img src="<mt:var name="static_uri">images/spacer.gif" alt="" width="9" height="9" title="" /></td>
130        </mt:if>
131    </mt:if>
132    <mt:unless name="screen_id" eq="search-replace">
133                <td class="linked-template si status-<mt:if name="linked_file">linked<mt:else>unlinked</mt:if>"><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>
134    </mt:unless>
135            </tr>
136    <mt:if __last__>
137        </tbody>
138    </mt:if>
139<mt:else>
140    <mt:if name="blog_id">
141    <div id="<$mt:var name="template_type" default="template"$>-listing" class="listing zero-state-listing zero-state">
142        <div class="listing-header">
143            <$mt:var name="listing_header"$>
144        </div>
145        <mtapp:statusmsg
146            id="zero-state"
147            class="info zero-state">
148            <__trans phrase="No [_1] could be found." params="<$mt:var name="template_type_label"$>">
149        </mtapp:statusmsg>
150    </div>
151    </mt:if>
152</mtapp:listing>
Note: See TracBrowser for help on using the browser.