⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listtopics.html.tmpl

📁 codestriker is a develop useful tool to review code on web user interface.
💻 TMPL
字号:
[%# Screen for show a list of topics. #%][% PROCESS header.html.tmpl version = version displaymenu = 1                             closehead = 1 subtitle = "Topic List" %][%# Display any "feedback" to the user if necessary. #%][% IF feedback != '' %]    <span class="feedback">[% feedback %]</span>    <p>[% END %][%# Display the heading and create the table #%]<FORM METHOD="post" ENCTYPE="multipart/form-data" ACTION="[% action_url %]"><input TYPE="hidden" NAME="action" VALUE="change_topics_state" />[%# Store the search parameters as hidden variables #%]<input TYPE="hidden" NAME="sauthor" VALUE="[% sauthor | html_entity %]" /><input TYPE="hidden" NAME="sreviewer" VALUE="[% sreviewer | html_entity %]" /><input TYPE="hidden" NAME="scc" VALUE="[% scc | html_entity %]" /><input TYPE="hidden" NAME="sbugid" VALUE="[% sbugid %]" /><input TYPE="hidden" NAME="stext" VALUE="[% stext | html_entity %]" /><input TYPE="hidden" NAME="sstate" VALUE="[% sstate %]" /><input TYPE="hidden" NAME="stitle" VALUE="[% stitle | html_entity %]" /><input TYPE="hidden" NAME="sdescription" VALUE="[% sdescription | html_entity %]" /><input TYPE="hidden" NAME="scomments" VALUE="[% scomments | html_entity %]" /><input TYPE="hidden" NAME="sbody" VALUE="[% sbody | html_entity %]" /><input TYPE="hidden" NAME="sfilename" VALUE="[% sfilename | html_entity %]" /><table width="100%">    [%# Display the table header #%]    [% SET number_columns = 7 %]    <tr class="tlh">        <th colspan="2"><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=title">Title</a></th>        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=author">Author</a></th>        <th>Reviewer</th>        <th>Cc</th>        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=created">Created</a></th>        [% FOREACH commentmetric = commentmetrics %]            [% SET number_columns = number_columns + 1 %]            <th>[% commentmetric.value | html_entity %]</th>        [% END %]	[% IF bugdb_enabled != 0 %]            <th>Bug IDs</th>            [% SET number_columns = number_columns + 1 %]	[% END %]        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=state">State</a></th>    </tr>    [%# Display each topic row, alternating the background colour #%]    [% FOREACH topic = topics %]    [% FLUSH IF loop.count() % 10 == 1 %]    <tr class="[% loop.count() % 2 == 0 ? 'tl1' : 'tl2' %]">        <td><input TYPE="checkbox" NAME="selected_topics" VALUE="[% topic.id %],[% topic.version %]" /></td>        <td><a href="[% topic.view_topic_url | html_entity %]">[% topic.title | html_entity %]</a></td>        <td>[% topic.author | html_entity %]</td>        <td>[% topic.reviewer | html_entity %]</td>        <td>[% IF topic.cc == "" %]&nbsp;[% ELSE %][% topic.cc | html_entity %][% END %]</td>        <td>[% topic.created | html_entity %]</td>        [% FOREACH commentmetric = topic.commentmetrics %]            <td>[% commentmetric.count | html_entity %]</td>        [% END %]	[% IF bugdb_enabled != 0 %]        <td>[% IF topic.bugids == "" %]&nbsp;[% ELSE %][% topic.bugids %][% END %]</td>	[% END %]        <td>[% topic.state %]</td>    </tr>    [% END %]    <tr class="tlh">        <td colspan="[% number_columns %]">&nbsp;</td>    </tr></table>[% SET obsoleted_state_present = 0 %]<table><tr><td>[% topics.size %] topics found.</td></tr><tr><td>&nbsp;</td></tr><td>Change state: &nbsp;  <select name="topic_state">     [% FOREACH state = states %]     [%# Obsoleted and Deleted states aren't available for selection. #%]     [% IF state != 'Obsoleted' && state != 'Deleted' %]         [% IF state == default_state %]         <option selected value="[% state %]">[% state %]</option>         [% ELSE %]         <option value="[% state %]">[% state %]</option>         [% END %]     [% END %]     [% IF state == 'Obsoleted' %]         [% SET obsoleted_state_present = 1 %]     [% END %]     [% END %]  </select></td><td>   <input type="submit" name="button" value="Update" /></td></tr>[% IF obsoleted_state_present == 1 %]<tr><td>&nbsp;</td><td>   <input type="submit" name="button" value="Obsolete Topic(s)" /></td></tr>[% END %]</table>   <table width="100%">    <tr class="tlh"><td>&nbsp;</td></tr>   </table></FORM><p>[% IF projects_enabled != 0 %]    <a href="[% list_projects_url | html_entity %]">Administer Projects</a> | [% END %]    <a href="[% view_metrics_url | html_entity %]">Metrics Report</a>[% IF rss_enabled %]| <a href="[% list_sort_url_rss | html_entity %]">RSS</a>  <link rel="alternate" type="application/rdf+xml" title="RSS" href="[% list_sort_url_rss | html_entity %]" />[% END %]</p>[% PROCESS trailer.html.tmpl %]</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -