summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-16 04:35:39 +0000
committerwjames5 <will@tekimaki.com>2007-03-16 04:35:39 +0000
commitbd115235c1ead62e0fb5168c1848c192751ef85d (patch)
tree43d210252ad0362af4c1de29e66031829dc11e41 /templates
parentdc620bc01ff580db8c9f69498a9723a5eb2fb647 (diff)
downloadtags-bd115235c1ead62e0fb5168c1848c192751ef85d.tar.gz
tags-bd115235c1ead62e0fb5168c1848c192751ef85d.tar.bz2
tags-bd115235c1ead62e0fb5168c1848c192751ef85d.zip
crude list content by tags
Diffstat (limited to 'templates')
-rw-r--r--templates/list_content.tpl58
-rw-r--r--templates/list_tags.tpl2
2 files changed, 60 insertions, 0 deletions
diff --git a/templates/list_content.tpl b/templates/list_content.tpl
index e69de29..7e22f16 100644
--- a/templates/list_content.tpl
+++ b/templates/list_content.tpl
@@ -0,0 +1,58 @@
+{strip}
+<div class="listing liberty">
+ <div class="header">
+ <h1>{tr}Tagged Content Listing{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {strip}
+ {form legend="Search Content by Tags"}
+ <input type="hidden" name="user_id" value="{$user_id}" />
+ <div class="row">
+ {formlabel label="Enter Tags" for="content_type_guid"}
+ {forminput}
+ <input type="text" name="tags" value="{$listInfo.tags}" />
+ <input type="submit" value="{tr}Search{/tr}" name="search_objects" />
+ {formhelp note="Search again by tags."}
+ {/forminput}
+ </div>
+ {/form}
+
+ {* assign the correct sort columns for user name sorting *}
+ {if $gBitSystem->getConfig( 'users_display_name' ) eq 'login'}
+ {assign var=isort_author value=creator_user}
+ {assign var=isort_editor value=modifier_user}
+ {else}
+ {assign var=isort_author value=creator_real_name}
+ {assign var=isort_editor value=modifier_real_name}
+ {/if}
+
+ <table class="data">
+ <caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
+ <tr>
+ <th style="width:2%;">{smartlink ititle="ID" isort=content_id list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find}</th>
+ <th>{smartlink ititle="Title" isort=title list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find idefault=1}</th>
+ <th>{smartlink ititle="Content Type" isort=content_type_guid list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find}</th>
+ <th>{smartlink ititle="Author" isort=$isort_author list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find}</th>
+ <th colspan="2">{smartlink ititle="Most recent editor" isort=$isort_editor list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find}</th>
+ <th colspan="2">{smartlink ititle="IP" isort=ip list_page=$listInfo.current_page user_id=$user_id content_type_guid=$contentSelect find=$listInfo.find}</th>
+ </tr>
+ {foreach from=$contentList item=item}
+ <tr class="{cycle values='odd,even'}">
+ <td style="text-align:right;">{$item.content_id}</td>
+ <td>{$item.display_link}</td>
+ <td>{assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid}</td>
+ <td>{displayname real_name=$item.creator_real_name user=$item.creator_user}</td>
+ <td style="text-align:right;">{displayname real_name=$item.modifier_real_name user=$item.modifier_user}</td>
+ <td style="text-align:right;">{$item.last_modified|bit_short_date}</td>
+ <td>{$item.ip}</td>
+ </tr>
+ {/foreach}
+ </table>
+
+ {pagination}
+ {/strip}
+ </div><!-- end .body -->
+</div><!-- end .liberty -->
+{/strip}
+ \ No newline at end of file
diff --git a/templates/list_tags.tpl b/templates/list_tags.tpl
index a81f84f..b9b4bdf 100644
--- a/templates/list_tags.tpl
+++ b/templates/list_tags.tpl
@@ -17,6 +17,8 @@
{/if}
</ul>
*}
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php?sort=mostpopular">Sort by most popular</a>
+ <a href="{$smarty.const.TAGS_PKG_URL}index.php">Sort alphabeticaly</a>
</div>
<div class="clear"></div>