[Isocial-svn] SF.net SVN: isocial: [248] app
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <di...@us...> - 2008-06-24 17:45:25
|
Revision: 248 http://isocial.svn.sourceforge.net/isocial/?rev=248&view=rev Author: dim0s77 Date: 2008-06-24 10:45:34 -0700 (Tue, 24 Jun 2008) Log Message: ----------- minor changes Modified Paths: -------------- app/controllers/groupapp/group_controller.php app/locales/groupapp/group/ru.php app/views/groupapp/group/browse.tpl app/views/groupapp/group/help.tpl Modified: app/controllers/groupapp/group_controller.php =================================================================== --- app/controllers/groupapp/group_controller.php 2008-06-24 16:27:00 UTC (rev 247) +++ app/controllers/groupapp/group_controller.php 2008-06-24 17:45:34 UTC (rev 248) @@ -225,6 +225,10 @@ } function browse () { + if (!empty($this->params['g'])) { + $this->group_types = $this->GroupappGroupType->find('all', array('conditions' => array("parent_id = 0"))); + } else { + } } function show_board () { Modified: app/locales/groupapp/group/ru.php =================================================================== --- app/locales/groupapp/group/ru.php 2008-06-24 16:27:00 UTC (rev 247) +++ app/locales/groupapp/group/ru.php 2008-06-24 17:45:34 UTC (rev 248) @@ -140,4 +140,7 @@ $dictionary['Invite People to Join'] = 'Пригласить людей присоединиться'; $dictionary['Leave Group'] = 'Покинуть группу'; +$dictionary['Groups are not found'] = 'Ни одной группы не найдено'; +$dictionary['Create first group'] = 'Создать первую группу'; + ?> Modified: app/views/groupapp/group/browse.tpl =================================================================== --- app/views/groupapp/group/browse.tpl 2008-06-24 16:27:00 UTC (rev 247) +++ app/views/groupapp/group/browse.tpl 2008-06-24 17:45:34 UTC (rev 248) @@ -1 +1,55 @@ <?= $controller->renderPartial("menu") ?> + +{?groups} + +<div class="two_column"> + <div class="right_small"> + <div class="right_content"> + blablabla + </div> + </div> + + <div class="left_big"> + <div class="groups_list"> + <div class="info">_{You are in groups}: <? if (isset($user_groups)) echo count($user_groups); else echo 0; ?></div> + + <div class="container"> + {loop user_groups} + <div class="row"> + + <div class="actions"> + <ul class="actions_list"> + <li><a href="/groupapp/group/edit_info/{user_group.id?}">_{Edit Group}</a></li> + <li><a href="#">_{Leave Group}</a></li> + </ul> + </div> + + <div class="avatar"> + <a href="/groupapp/group/show_group/{user_group.id?}"><img src="/images/nophoto_men_sm.gif" alt="" class=""></a> + </div> + + <div class="info"> + <div class="name"><a href="/groupapp/group/show_group/{user_group.id?}">{user_group.name}</a></div> + <div class="other param">_{Members count}:</div> + <div class="other value">{user_group.members_count}</div> + <div class="clearfix"></div> + <div class="other param">_{Type}:</div> + <div class="other value"><? $id = $user_group->type_id; echo $gt[$id]; ?></div> + <div class="clearfix"></div> + </div> + + <div class="clearfix"></div> + </div> + {end} + </div> + + </div> + </div> + +</div> +{else} +<div class="nogroups"> + _{Groups are not found}. <a href="/groupapp/group/create">_{Create first group}!</a> +</div> +{end} +<div class="clearfix"></div> Modified: app/views/groupapp/group/help.tpl =================================================================== --- app/views/groupapp/group/help.tpl 2008-06-24 16:27:00 UTC (rev 247) +++ app/views/groupapp/group/help.tpl 2008-06-24 17:45:34 UTC (rev 248) @@ -1 +1,2 @@ +<?= $controller->renderPartial("menu") ?> Group Help \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |