]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3395 using a fluid gallery for the groups profile page
authorcash <cash.costello@gmail.com>
Sat, 25 Jun 2011 15:31:38 +0000 (11:31 -0400)
committercash <cash.costello@gmail.com>
Sat, 25 Jun 2011 15:31:38 +0000 (11:31 -0400)
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/js.php
mod/groups/views/default/groups/profile/module.php
mod/groups/views/default/groups/profile/widgets.php

index 37fc5dc10bac3d880c61490c3b3a48cfde255384..9c65d16025c3d921e5744686d3dd39630fae5972 100644 (file)
        margin: 0;
 }
 
-#groups-tools > .elgg-module {
-       float: left;
-       margin-bottom: 40px;
+#groups-tools > li {
+       width: 48%;
        min-height: 200px;
-       width: 350px;
+       margin-bottom: 40px;
 }
 
-#groups-tools > .elgg-module:nth-child(odd) {
-       margin-right: 30px;
+#groups-tools > li:nth-child(odd) {
+       margin-right: 4%;
 }
 
 .groups-widget-viewall {
index dec31cf546e71f1d4164c9c2ecfe53c75ce98046..ad742445bbdaf0876d0ba5e5ef528f6421d6c135 100644 (file)
@@ -1,4 +1,5 @@
 
 $(function() {
-       $('#groups-tools').find('.elgg-module:odd').addClass('odd');
+       // jQuery uses 0-based indexing
+       $('#groups-tools').children('li:even').addClass('odd');
 });
index 69854e59bfe0beb0f6bad1ddced85db6be8e7f51..9d0b182665a62bcf103ec2ed476320e83559163c 100644 (file)
@@ -17,4 +17,9 @@ if ($group->canWriteToContainer() && isset($vars['add_link'])) {
        $vars['content'] .= "<span class='elgg-widget-more'>{$vars['add_link']}</span>";
 }
 
-echo elgg_view_module('info', '', $vars['content'], array('header' => $header));
+echo '<li>';
+echo elgg_view_module('info', '', $vars['content'], array(
+       'header' => $header,
+       'class' => 'elgg-module-group',
+));
+echo '</li>';
index 28e43fdc46ba08a593a32a923a354dccda2e81ba..75c04c81070733646ae51ffff3543e076c12b9a7 100644 (file)
@@ -6,7 +6,7 @@
 */ 
        
 // tools widget area
-echo '<div id="groups-tools" class="mtl clearfix">';
+echo '<div id="groups-tools" class="elgg-gallery elgg-gallery-fluid mtl clearfix">';
        
 // enable tools to extend this area
 echo elgg_view("groups/tool_latest", array('entity' => $vars['entity']));