aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 18:05:37 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-26 18:05:37 +0000
commit34ccb4a0daff9585d7950948f3f0415e2cfd56e6 (patch)
treea3ece08a4e87988f8d2ce54ca54070ad420e0c10 /mod/riverdashboard
parent40b55e871e12699ab40ec720c457550e972cdb1f (diff)
downloadelgg-34ccb4a0daff9585d7950948f3f0415e2cfd56e6.tar.gz
elgg-34ccb4a0daff9585d7950948f3f0415e2cfd56e6.tar.bz2
Updates to riverdashboard wrapper for IE rendering. Temporary IE rules for riverdashboard added to css_ie.php.
git-svn-id: http://code.elgg.org/elgg/trunk@5881 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php26
1 files changed, 17 insertions, 9 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php
index f7a2e282f..7a3285382 100644
--- a/mod/riverdashboard/views/default/river/item/wrapper.php
+++ b/mod/riverdashboard/views/default/river/item/wrapper.php
@@ -104,15 +104,21 @@ else
echo "</div>"; // close river_comments
} else {
// tab bar nav - for users that liked object
- echo "<div class='river_comments_tabs clearfloat'>";
- $numoflikes = elgg_count_likes($object);
- if($numoflikes != 0){
- echo elgg_view('likes/forms/display', array('entity' => $object));
- }
- echo "</div>"; // close river_comments_tabs
-
- echo "<div class='river_comments'>";
+ $numoflikes = elgg_count_likes($object);
+ if ($vars['item']->type != 'user' && $numoflikes != 0) {
+ echo "<div class='river_comments_tabs clearfloat'>";
+ }
+ if($numoflikes != 0){
+ echo elgg_view('likes/forms/display', array('entity' => $object));
+ }
+ if ($vars['item']->type != 'user' && $numoflikes != 0) {
+ echo "</div>"; // close river_comments_tabs
+ }
+
+ if ($vars['item']->type != 'user') {
+ echo "<div class='river_comments'>";
+ }
if($numoflikes != 0){
//show the users who liked the object
echo "<div class='likes_list hidden'>";
@@ -125,7 +131,9 @@ else
if($vars['item']->type != 'user' && $vars['item']->subtype != 'groupforumtopic') {
echo elgg_make_river_comment($object);
}
- echo "</div>";
+ if ($vars['item']->type != 'user') {
+ echo "</div>";
+ }
}
echo "</div>"; // close river_item_contents
?>