summaryrefslogtreecommitdiff
path: root/templates/list_pages.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/list_pages.tpl')
-rw-r--r--templates/list_pages.tpl371
1 files changed, 187 insertions, 184 deletions
diff --git a/templates/list_pages.tpl b/templates/list_pages.tpl
index d34bfde..49d6d9d 100644
--- a/templates/list_pages.tpl
+++ b/templates/list_pages.tpl
@@ -3,234 +3,237 @@
<div class="listing wiki">
<header>
- <div class="floaticon">
- {form class="form-inline" }
- <input type="hidden" name="sort_mode" value="{$sort_mode}" />
- {booticon iname="icon-search" ipackage="icons" iexplain="Search"}
- <label>{tr}Title{/tr}: <input class="input-small" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> <label>{tr}Author{/tr}: <input class="input-small" type="text" name="find_author" value="{$find_author|default:$smarty.request.find_author|escape}" /></label> <label>{tr}Last Editor{/tr}: <input class="input-small" type="text" name="find_last_editor" value="{$find_last_editor|default:$smarty.request.find_last_editor|escape}" /></label> <input type="submit" class="btn btn-xs" name="search" value="{tr}Find{/tr}" />
- {/form}
- </div>
<h1>{tr}{$gBitSystem->getBrowserTitle()}{/tr}</h1>
</header>
+<div class="body">
- {pagination}
+ <div class="large-100">
+ {form class="form-inline push-right" }
+ <input type="hidden" name="sort_mode" value="{$sort_mode}" />
+ {booticon iname="icon-search" ipackage="icons" iexplain="Search"}
+ <label>{tr}Title{/tr}: <input class="input-small" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> <label>{tr}Author{/tr}: <input class="input-small" type="text" name="find_author" value="{$find_author|default:$smarty.request.find_author|escape}" /></label> <label>{tr}Last Editor{/tr}: <input class="input-small" type="text" name="find_last_editor" value="{$find_last_editor|default:$smarty.request.find_last_editor|escape}" /></label> <input type="submit" class="btn btn-mini" name="search" value="{tr}Find{/tr}" />
+ {/form}
+ </div>
{formfeedback error=$errors}
- <div class="body">
+ <div class="large-100">
{form id="checkform"}
- <ul class="inline navbar">
- <li>{booticon iname="icon-circle-arrow-right" ipackage="icons" iexplain="sort by"}</li>
- {if $gBitSystem->isFeatureActive( 'wiki_list_name' )}
- <li>{smartlink ititle="Page Name" isort="title" icontrol=$listInfo}</li>
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' )}
- <li>{smartlink ititle="Last Modified" iorder="desc" idefault=1 isort="last_modified" icontrol=$listInfo}</li>
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_creator' )}
- <li>{smartlink ititle="Author" isort="creator_user" icontrol=$listInfo}</li>
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_user' )}
- <li>{smartlink ititle="Last Editor" isort="modifier_user" icontrol=$listInfo}</li>
- {/if}
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_sort' serviceHash=$gContent->mInfo}
- </ul>
-
- <input type="hidden" name="offset" value="{$offset}" />
- <input type="hidden" name="sort_mode" value="{$sort_mode}" />
-
- <div class="clear"></div>
-
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_options'}
-
- <table class="table data">
- <caption>{tr}WikiPages Listing{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
- <tr>
- {* at the moment, the only working option to use the checkboxes for is deleting pages. so for now the checkboxes are visible iff $p_wiki_remove_page is set. Other applications make sense as well (categorize, convert to pdf, etc). Add necessary corresponding permission here: *}
-
- {if $gBitUser->hasPermission( 'p_wiki_remove_page' )} {* ... "or $gBitUser->hasPermission( 'bit_p_other_sufficient_condition_for_checkboxes' )" *}
- {assign var='checkboxes_on' value='y'}
- {else}
- {assign var='checkboxes_on' value='n'}
- {/if}
- {counter name=cols start=-1 print=false}
- {if $gBitSystem->isFeatureActive( 'wiki_list_page_id' )}
- <th>{smartlink ititle="Page ID" isort="page_id" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_content_id' )}
- <th>{smartlink ititle="Content ID" isort="content_id" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_hits' )}
- <th>{smartlink ititle="Hits" isort="hits" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_lastver' )}
- <th>{smartlink ititle="Last Version" isort="version" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_comment' )}
- <th>{smartlink ititle="Comment" isort="edit_comment" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_status' )}
- <th>{smartlink ititle="Status" isort="flag" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_versions' )}
- <th>{smartlink ititle="Version" isort="versions" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_links' )}
- <th>{smartlink ititle="Links" isort="links" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
- {/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_backlinks' )}
- <th>{smartlink ititle="Backlinks" isort="backlinks" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
+ <div class="ink-navigation">
+ <ul class="pills blue">
+ <li>{booticon iname="icon-circle-arrow-right" ipackage="icons" iexplain="sort by"}</li>
+ {if $gBitSystem->isFeatureActive( 'wiki_list_name' )}
+ <li class="large-20">{smartlink ititle="Page Name" isort="title" icontrol=$listInfo}</li>
{/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_format_guid' )}
- <th>{smartlink ititle="GUID" isort="format_guid" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' )}
+ <li class="large-20">{smartlink ititle="Last Modified" iorder="desc" idefault=1 isort="last_modified" icontrol=$listInfo}</li>
{/if}
- {if $gBitSystem->isFeatureActive( 'wiki_list_size' )}
- <th>{smartlink ititle="Size" isort="size" icontrol=$listInfo}</th>
- {counter name=cols assign=cols print=false}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_creator' )}
+ <li class="large-20">{smartlink ititle="Author" isort="creator_user" icontrol=$listInfo}</li>
{/if}
- {if $gBitUser->hasPermission( 'p_wiki_update_page' )}
- <th style="width:1px;">{tr}Actions{/tr}</th>
- {counter name=cols assign=cols print=false}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_user' )}
+ <li class="large-20">{smartlink ititle="Last Editor" isort="modifier_user" icontrol=$listInfo}</li>
{/if}
- </tr>
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_sort' serviceHash=$gContent->mInfo}
+ </ul>
+ </div>
- {cycle values="even,odd" print=false}
- {section name=changes loop=$listpages}
- <tr class="{cycle advance=false}">
- <td colspan="{$cols}">
- {if $gBitSystem->isFeatureActive( 'wiki_list_name' )}
- <h3><a href="{$listpages[changes].display_url}" title="{$listpages[changes].summary}">{$listpages[changes].title|escape}</a></h3>
- {else}
- <a href="{$listpages[changes].display_url}" title="{$listpages[changes].page_id}">Page #{$listpages[changes].page_id}</a>
- {/if}
+ <input type="hidden" name="offset" value="{$offset}" />
+ <input type="hidden" name="sort_mode" value="{$sort_mode}" />
- {if $gBitSystem->isFeatureActive( 'wiki_list_creator' ) && $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' ) }
- <span style="display:block; width:50%; float:left;">
- {tr}Created:{/tr} {displayname real_name=$listpages[changes].creator_real_name user=$listpages[changes].creator_user}
- , {$listpages[changes].created|bit_short_datetime}
- </span>
- <span style="display:block; width:50%; float:right;">
- {if ($listpages[changes].version <= 1)}
- {tr}No edits since creation{/tr}
- {else}
- {tr}Last Edited:{/tr} {displayname real_name=$listpages[changes].modifier_real_name user=$listpages[changes].modifier_user}
- , {$listpages[changes].last_modified|bit_short_datetime}
- {/if}
- </span>
- {else}
- {if $gBitSystem->isFeatureActive( 'wiki_list_creator' )}
- {tr}Created by{/tr} {displayname real_name=$listpages[changes].creator_real_name user=$listpages[changes].creator_user}
- {/if}
- , {$listpages[changes].created|bit_short_datetime}
- {if $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' ) && ($listpages[changes].version > 1)}
- <br />
- {tr}Last modified{/tr}
- {if $listpages[changes].editor != $listpages[changes].creator}
- &nbsp;{tr}by{/tr} {displayname real_name=$listpages[changes].modifier_real_name user=$listpages[changes].modifier_user}
- {/if}
- , {$listpages[changes].last_modified|bit_short_datetime}
- {/if}
- {/if}
- </td>
+ <div class="clear"></div>
- <td style="text-align:right; vertical-align:top;">
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_actions' serviceHash=$listpages[changes]}
- </td>
- </tr>
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_options'}
- <tr class="{cycle}">
+ <table class="table data">
+ <caption>{tr}WikiPages Listing{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
+ <tr>
+ {* at the moment, the only working option to use the checkboxes for is deleting pages. so for now the checkboxes are visible iff $p_wiki_remove_page is set. Other applications make sense as well (categorize, convert to pdf, etc). Add necessary corresponding permission here: *}
+
+ {if $gBitUser->hasPermission( 'p_wiki_remove_page' )} {* ... "or $gBitUser->hasPermission( 'bit_p_other_sufficient_condition_for_checkboxes' )" *}
+ {assign var='checkboxes_on' value='y'}
+ {else}
+ {assign var='checkboxes_on' value='n'}
+ {/if}
+ {counter name=cols start=-1 print=false}
{if $gBitSystem->isFeatureActive( 'wiki_list_page_id' )}
- <td style="text-align:center;">{$listpages[changes].page_id}</td>
+ <th>{smartlink ititle="Page ID" isort="page_id" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_content_id' )}
- <td style="text-align:center;">{$listpages[changes].content_id}</td>
+ <th>{smartlink ititle="Content ID" isort="content_id" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_hits' )}
- <td style="text-align:center;">{$listpages[changes].hits|default:0}</td>
+ <th>{smartlink ititle="Hits" isort="hits" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_lastver' )}
- <td style="text-align:center;">{$listpages[changes].version}</td>
+ <th>{smartlink ititle="Last Version" isort="version" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_comment' )}
- <td>{$listpages[changes].edit_comment}</td>
+ <th>{smartlink ititle="Comment" isort="edit_comment" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_status' )}
- <td style="text-align:center;">
- {if $listpages[changes].flag eq 'locked'}
- {booticon iname="icon-lock" ipackage="icons" iexplain="locked"}
- {else}
- {booticon ipackage="icons" iname="icon-asterisk" iexplain="unlocked"}
- {/if}
- </td>
+ <th>{smartlink ititle="Status" isort="flag" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_versions' )}
- {if $gBitSystem->isFeatureActive( 'wiki_history' )}
- <td style="text-align:center;">{smartlink ititle=$listpages[changes].version ifile='page_history.php' page_id=$listpages[changes].page_id}</td>
- {else}
- <td style="text-align:center;">{$listpages[changes].version}</td>
- {/if}
+ <th>{smartlink ititle="Version" isort="versions" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_links' )}
- <td style="text-align:center;">{$listpages[changes].links|default:"0"}</td>
+ <th>{smartlink ititle="Links" isort="links" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_backlinks' )}
- {if $gBitSystem->isFeatureActive( 'wiki_backlinks' ) && $listpages[changes].backlinks > 0}
- <td style="text-align:center;"><a href="{$smarty.const.WIKI_PKG_URL}backlinks.php?page={$listpages[changes].title|escape:"url"}">{$listpages[changes].backlinks|default:"0"}</a></td>
- {else}
- <td style="text-align:center;">{$listpages[changes].backlinks|default:"0"}</td>
- {/if}
+ <th>{smartlink ititle="Backlinks" isort="backlinks" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_format_guid' )}
- <td>{$listpages[changes].format_guid}</td>
+ <th>{smartlink ititle="GUID" isort="format_guid" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitSystem->isFeatureActive( 'wiki_list_size' )}
- <td style="text-align:right;">{$listpages[changes].len|display_bytes}</td>
+ <th>{smartlink ititle="Size" isort="size" icontrol=$listInfo}</th>
+ {counter name=cols assign=cols print=false}
{/if}
{if $gBitUser->hasPermission( 'p_wiki_update_page' )}
- <td class="actionicon">
- <a href="{$smarty.const.WIKI_PKG_URL}edit.php?page_id={$listpages[changes].page_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
- {if $checkboxes_on eq 'y'} <input type="checkbox" name="checked[]" value="{$listpages[changes].page_id}" /> {/if}
- </td>
+ <th style="width:1px;">{tr}Actions{/tr}</th>
+ {counter name=cols assign=cols print=false}
{/if}
</tr>
- {sectionelse}
- <tr class="norecords"><td colspan="{$cols}">
- {tr}No records found{/tr}
- </td></tr>
- {/section}
- </table>
- {if $checkboxes_on eq 'y'}
- <div style="text-align:right;">
- <script type="text/javascript">/* <![CDATA[ check / uncheck all */
- document.write("<label for=\"switcher\">{tr}Select All{/tr} <input name=\"switcher\" id=\"switcher\" type=\"checkbox\" onclick=\"BitBase.switchCheckboxes(this.form.id,'checked[]','switcher')\" /></label>");
- /* ]]> */</script>
- <br />
- <select name="batch_submit" onchange="this.form.submit();">
- <option value="" selected="selected">{tr}with checked{/tr}:</option>
- {if $gBitUser->hasPermission( 'p_wiki_remove_page' )}
- <option value="remove_pages">{tr}remove{/tr}</option>
- {/if}
- </select>
+ {cycle values="even,odd" print=false}
+ {section name=changes loop=$listpages}
+ <tr class="{cycle advance=false}">
+ <td colspan="{$cols}">
+ {if $gBitSystem->isFeatureActive( 'wiki_list_name' )}
+ <h3><a href="{$listpages[changes].display_url}" title="{$listpages[changes].summary}">{$listpages[changes].title|escape}</a></h3>
+ {else}
+ <a href="{$listpages[changes].display_url}" title="{$listpages[changes].page_id}">Page #{$listpages[changes].page_id}</a>
+ {/if}
- <noscript>
- <div><input type="submit" class="btn btn-default" value="{tr}Submit{/tr}" /></div>
- </noscript>
- </div>
- {/if}
- {/form}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_creator' ) && $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' ) }
+ <span style="display:block; width:50%; float:left;">
+ {tr}Created:{/tr} {displayname real_name=$listpages[changes].creator_real_name user=$listpages[changes].creator_user}
+ , {$listpages[changes].created|bit_short_datetime}
+ </span>
+ <span style="display:block; width:50%; float:right;">
+ {if ($listpages[changes].version <= 1)}
+ {tr}No edits since creation{/tr}
+ {else}
+ {tr}Last Edited:{/tr} {displayname real_name=$listpages[changes].modifier_real_name user=$listpages[changes].modifier_user}
+ , {$listpages[changes].last_modified|bit_short_datetime}
+ {/if}
+ </span>
+ {else}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_creator' )}
+ {tr}Created by{/tr} {displayname real_name=$listpages[changes].creator_real_name user=$listpages[changes].creator_user}
+ {/if}
+ , {$listpages[changes].created|bit_short_datetime}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_lastmodif' ) && ($listpages[changes].version > 1)}
+ <br />
+ {tr}Last modified{/tr}
+ {if $listpages[changes].editor != $listpages[changes].creator}
+ &nbsp;{tr}by{/tr} {displayname real_name=$listpages[changes].modifier_real_name user=$listpages[changes].modifier_user}
+ {/if}
+ , {$listpages[changes].last_modified|bit_short_datetime}
+ {/if}
+ {/if}
+ </td>
+ <td style="text-align:right; vertical-align:top;">
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_actions' serviceHash=$listpages[changes]}
+ </td>
+ </tr>
+
+ <tr class="{cycle}">
+ {if $gBitSystem->isFeatureActive( 'wiki_list_page_id' )}
+ <td style="text-align:center;">{$listpages[changes].page_id}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_content_id' )}
+ <td style="text-align:center;">{$listpages[changes].content_id}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_hits' )}
+ <td style="text-align:center;">{$listpages[changes].hits|default:0}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_lastver' )}
+ <td style="text-align:center;">{$listpages[changes].version}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_comment' )}
+ <td>{$listpages[changes].edit_comment}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_status' )}
+ <td style="text-align:center;">
+ {if $listpages[changes].flag eq 'locked'}
+ {booticon iname="icon-lock" ipackage="icons" iexplain="locked"}
+ {else}
+ {booticon ipackage="icons" iname="icon-asterisk" iexplain="unlocked"}
+ {/if}
+ </td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_versions' )}
+ {if $gBitSystem->isFeatureActive( 'wiki_history' )}
+ <td style="text-align:center;">{smartlink ititle=$listpages[changes].version ifile='page_history.php' page_id=$listpages[changes].page_id}</td>
+ {else}
+ <td style="text-align:center;">{$listpages[changes].version}</td>
+ {/if}
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_links' )}
+ <td style="text-align:center;">{$listpages[changes].links|default:"0"}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_backlinks' )}
+ {if $gBitSystem->isFeatureActive( 'wiki_backlinks' ) && $listpages[changes].backlinks > 0}
+ <td style="text-align:center;"><a href="{$smarty.const.WIKI_PKG_URL}backlinks.php?page={$listpages[changes].title|escape:"url"}">{$listpages[changes].backlinks|default:"0"}</a></td>
+ {else}
+ <td style="text-align:center;">{$listpages[changes].backlinks|default:"0"}</td>
+ {/if}
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_format_guid' )}
+ <td>{$listpages[changes].format_guid}</td>
+ {/if}
+ {if $gBitSystem->isFeatureActive( 'wiki_list_size' )}
+ <td style="text-align:right;">{$listpages[changes].len|display_bytes}</td>
+ {/if}
+ {if $gBitUser->hasPermission( 'p_wiki_update_page' )}
+ <td class="actionicon">
+ <a href="{$smarty.const.WIKI_PKG_URL}edit.php?page_id={$listpages[changes].page_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
+ {if $checkboxes_on eq 'y'} <input type="checkbox" name="checked[]" value="{$listpages[changes].page_id}" /> {/if}
+ </td>
+ {/if}
+ </tr>
+ {sectionelse}
+ <tr class="norecords"><td colspan="{$cols}">
+ {tr}No records found{/tr}
+ </td></tr>
+ {/section}
+ </table>
+
+ {if $checkboxes_on eq 'y'}
+ <div style="text-align:right;">
+ <script type="text/javascript">/* <![CDATA[ check / uncheck all */
+ document.write("<label for=\"switcher\">{tr}Select All{/tr} <input name=\"switcher\" id=\"switcher\" type=\"checkbox\" onclick=\"BitBase.switchCheckboxes(this.form.id,'checked[]','switcher')\" /></label>");
+ /* ]]> */</script>
+ <br />
+ <select name="batch_submit" onchange="this.form.submit();">
+ <option value="" selected="selected">{tr}with checked{/tr}:</option>
+ {if $gBitUser->hasPermission( 'p_wiki_remove_page' )}
+ <option value="remove_pages">{tr}remove{/tr}</option>
+ {/if}
+ </select>
+
+ <noscript>
+ <div><input type="submit" class="ink-button" value="{tr}Submit{/tr}" /></div>
+ </noscript>
+ </div>
+ {/if}
+
+ {/form}
</div><!-- end .body -->
+ {pagination}
</div><!-- end .wiki -->
{/strip}