diff options
| author | laetzer <laetzer@users.sourceforge.net> | 2008-09-25 02:28:06 +0000 |
|---|---|---|
| committer | laetzer <laetzer@users.sourceforge.net> | 2008-09-25 02:28:06 +0000 |
| commit | 8bfe0a7222c6afad56223681c9b4f49298933932 (patch) | |
| tree | 78908b09c2f4449d7b7bd8aecf45688bbf0256fb | |
| parent | 16eef1fa503899dbfad0ab1f73bc22c3c2ccc37c (diff) | |
| download | wiki-8bfe0a7222c6afad56223681c9b4f49298933932.tar.gz wiki-8bfe0a7222c6afad56223681c9b4f49298933932.tar.bz2 wiki-8bfe0a7222c6afad56223681c9b4f49298933932.zip | |
user name instead of user id in page history. probably not the best method to do it
| -rw-r--r-- | templates/page_history.tpl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/templates/page_history.tpl b/templates/page_history.tpl index 0a59185..dea4d6d 100644 --- a/templates/page_history.tpl +++ b/templates/page_history.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_wiki/templates/page_history.tpl,v 1.15 2008/09/17 17:36:19 laetzer Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_wiki/templates/page_history.tpl,v 1.16 2008/09/25 02:28:06 laetzer Exp $ *} {strip} <div class="admin wiki"> <div class="header"> @@ -52,16 +52,19 @@ <table class="data"> <caption>{tr}Page History{/tr}</caption> <tr> - <th style="width:70%;">{tr}Date / Comment{/tr}</th> + <th style="width:70%;">{tr}Date{/tr}/{tr}Comment{/tr}</th> <th style="width:10%;">{tr}User{/tr}</th> <th style="width:10%;">{tr}IP{/tr}</th> <th style="width:10%;">{tr}Version{/tr}</th> </tr> <tr class="odd"> - <td>{$gContent->mInfo.last_modified|bit_short_datetime}<br />{$gContent->mInfo.edit_comment|escape|default:"—"}</td> - - <td>{displayname user=$gContent->mInfo.modifier_user user_id=$gContent->mInfo.modifier_user_id real_name=$gContent->mInfo.modifier_real_name} </td> + <td> + {$gContent->mInfo.last_modified|bit_short_datetime} + <br /> + {$gContent->mInfo.edit_comment|escape|default:"—"} + </td> + <td>{displayname link_label=$gContent->mInfo.modifier_real_name user=$gContent->mInfo.modifier_user user_id=$gContent->mInfo.modifier_user_id real_name=$gContent->mInfo.modifier_real_name}</td> <td style="text-align:right;">{$gContent->mInfo.ip}</td> <td style="text-align:right;">{$gContent->mInfo.version}</td> </tr> @@ -76,7 +79,7 @@ {foreach from=$data item=item} <tr class="{cycle values='even,odd' advance=false}"> <td><label for="hist_{$item.version}">{$item.last_modified|bit_short_datetime}<br />{$item.history_comment|escape|default:"—"}</label></td> - <td>{displayname hash=$item}</td> + <td>{displayname hash=$item link_label=$item.modifier_real_name}</td> <td style="text-align:right;">{$item.ip}</td> <td style="text-align:right;">{$item.version}</td> </tr> |
