diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-15 01:11:53 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-15 01:11:53 +0000 |
commit | 8c287999487883a54271ae5e91bbb79b4fd15826 (patch) | |
tree | 27b2a78bf6cb9ffde0bd649ca97df36dc06f917b /h-source/Application/Views/Wiki/talk.php | |
parent | 1854075a62c6ca0422040b4e5ebf89088b0d02b2 (diff) |
added wiki - part 2
Diffstat (limited to 'h-source/Application/Views/Wiki/talk.php')
-rw-r--r-- | h-source/Application/Views/Wiki/talk.php | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/h-source/Application/Views/Wiki/talk.php b/h-source/Application/Views/Wiki/talk.php index 67ecbeb..9835f04 100644 --- a/h-source/Application/Views/Wiki/talk.php +++ b/h-source/Application/Views/Wiki/talk.php @@ -54,7 +54,10 @@ <div class="talk_message_item"> <div class="talk_message_item_title_date"> - + <?php if ($ismoderator) { ?> + <a id="<?php echo $message['wiki_talk']['id_talk'];?>" class="hide_wiki_talk hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png">hide</a> + <?php } ?> + <div class="talk_message_item_title"> <?php echo $message['wiki_talk']['title'];?> </div> @@ -68,11 +71,48 @@ <?php echo decodeWikiText($message['wiki_talk']['message']);?> </div> + <?php if ($ismoderator) { ?> + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">wiki_talk</div> + <a id="<?php echo $message['wiki_talk']['id_talk'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + <div class="moderation_details_box"></div> + </div> + <?php } ?> + </div> <?php } else { ?> + <?php if ($ismoderator) { ?> + <a name="wiki-talk-<?php echo $message['wiki_talk']['id_talk'];?>"></a> + <div class="talk_message_item_hidden"> + this message has been deleted + + <a id="<?php echo $message['wiki_talk']['id_talk'];?>" class="show_wiki_talk hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png">make visible</a> + + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">wiki_talk</div> + <a id="<?php echo $message['wiki_talk']['id_talk'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + + <div class="details_of_hidden_message"> + <div class="details_of_hidden_message_inner"> + <div class="talk_message_item_date"> + submitted by <?php echo getLinkToUser($u->getUser($message['wiki_talk']['created_by']));?>, <?php echo smartDate($message['wiki_talk']['creation_date']);?> + </div> + <div class="message_view_description_hidden"> + <?php echo decodeWikiText($message['wiki_talk']['message']);?> + </div> + </div> + <div class="moderation_details_box"></div> + </div> + </div> + + + </div> + <?php } ?> <?php } ?> @@ -114,7 +154,7 @@ <?php } else { ?> <div class="talk_login_notice"> - <a name="form"><?php echo gtext("You have to");?> <a href="<?php echo $this->baseUrl."/users/login/$lang?redirect=".$this->controller."/".$this->action.$queryString;?>">login</a> <?php echo gtext("in order to add a message");?></a> + <a name="form"><?php echo gtext("You have to");?> <a href="<?php echo $this->baseUrl."/users/login/$lang?redirect=".$currPos.$queryString;?>">login</a> <?php echo gtext("in order to add a message");?></a> </div> <?php } ?> |