[Isocial-svn] SF.net SVN: isocial: [144] public/stylesheets/groupapp
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <di...@us...> - 2008-05-01 11:51:46
|
Revision: 144 http://isocial.svn.sourceforge.net/isocial/?rev=144&view=rev Author: dim0s77 Date: 2008-05-01 04:51:50 -0700 (Thu, 01 May 2008) Log Message: ----------- Added groupapp discussion board basis. Localizate Modified Paths: -------------- app/controllers/groupapp/group_controller.php app/installers/groupapp/group_installer.php app/locales/groupapp/group/ru.php app/views/groupapp/group/show_group.tpl public/stylesheets/Application.css public/stylesheets/groupapp/Group.css Added Paths: ----------- app/locales/groupapp/board/ app/locales/groupapp/board/en.php app/locales/groupapp/board/ru.php app/views/groupapp/board/ app/views/groupapp/board/_head.tpl app/views/groupapp/board/_menu.tpl app/views/groupapp/board/index.tpl app/views/groupapp/board/show_topic.tpl app/views/groupapp/board/start_topic.tpl public/stylesheets/groupapp/Board.css public/stylesheets/groupapp/Groupapp.css Modified: app/controllers/groupapp/group_controller.php =================================================================== --- app/controllers/groupapp/group_controller.php 2008-05-01 10:41:47 UTC (rev 143) +++ app/controllers/groupapp/group_controller.php 2008-05-01 11:51:50 UTC (rev 144) @@ -2,7 +2,9 @@ class Groupapp_GroupController extends ApplicationController { - var $models = array('GroupappGroup', 'GroupappGroupType', 'GroupappMember', 'GroupappMemberRole'); + var $models = array('GroupappGroup', 'GroupappGroupType', + 'GroupappMember', 'GroupappMemberRole', + 'GroupappMessage'); function index () { $this->group_types = $this->GroupappGroupType->find('all', array('conditions' => array("parent_id = 0"))); @@ -153,6 +155,12 @@ function popular () { } + function show_board () { + } + + function show_topic () { + } + function help () { } Modified: app/installers/groupapp/group_installer.php =================================================================== --- app/installers/groupapp/group_installer.php 2008-05-01 10:41:47 UTC (rev 143) +++ app/installers/groupapp/group_installer.php 2008-05-01 11:51:50 UTC (rev 144) @@ -70,10 +70,27 @@ FOREIGN KEY (group_id) REFERENCES groupapp_groups(id), FOREIGN KEY (role_id) REFERENCES groupapp_member_roles(id) ) ENGINE=InnoDB"); + + $this->execute( + "CREATE TABLE `groupapp_messages` ( + `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + `group_id` int(11) NOT NULL DEFAULT '0', + `topic_id` int(11) NOT NULL DEFAULT '0', + `reply_message_id` int(11) NOT NULL DEFAULT '0', + `user_id` int(11) NOT NULL DEFAULT '0', + `subject` char(255) NOT NULL DEFAULT '', + `body` text NOT NULL DEFAULT '', + `created_at` datetime NOT NULL, + FOREIGN KEY (group_id) REFERENCES groupapp_groups(id), + INDEX group_idx (group_id), + INDEX topic_idx (topic_id) + ) ENGINE=InnoDB"); + } function down_1() { + $this->dropTable('groupapp_messages'); $this->dropTable('groupapp_members'); $this->dropTable('groupapp_member_roles'); $this->dropTable('groupapp_groups'); Added: app/locales/groupapp/board/en.php =================================================================== --- app/locales/groupapp/board/en.php (rev 0) +++ app/locales/groupapp/board/en.php 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1,7 @@ +<?php + +// File created on: 2008-03-20 10:58:51 + +$dictionary = array(); + +?> Added: app/locales/groupapp/board/ru.php =================================================================== --- app/locales/groupapp/board/ru.php (rev 0) +++ app/locales/groupapp/board/ru.php 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1,14 @@ +<?php + +// File created on: 2008-03-20 10:58:51 + +$dictionary = array(); +$dictionary['Discussions'] = 'Обсуждения'; +$dictionary['Back to'] = 'Обратно в'; +$dictionary['Discussion Board'] = 'Доска обсуждений'; +$dictionary['Topic View'] = 'Просмотр темы'; +$dictionary['Start New Topic'] = 'Начать новую тему'; + + + +?> Modified: app/locales/groupapp/group/ru.php =================================================================== --- app/locales/groupapp/group/ru.php 2008-05-01 10:41:47 UTC (rev 143) +++ app/locales/groupapp/group/ru.php 2008-05-01 11:51:50 UTC (rev 144) @@ -98,4 +98,28 @@ $dictionary['Changing the status of the member'] = 'Изменение статуса участника'; $dictionary['Change'] = 'Изменить'; +$dictionary['Group'] = 'Группа'; +$dictionary['Information'] = 'Информация'; +$dictionary['Group Info'] = 'Информация о группе'; +$dictionary['Photos'] = 'Фотографии'; +$dictionary['No one has uploaded any photos'] = 'Никто не загружал фото'; +$dictionary['Add Photos'] = 'Добавить фотографии'; +$dictionary['Videos'] = 'Видео'; +$dictionary['No one has uploaded any videos'] = 'Никто не загружал видео'; +$dictionary['Add Videos'] = 'Добавить видео'; +$dictionary['Discussion board'] = 'Доска обсуждений'; +$dictionary['There are no discussions'] = 'Обсуждения отсутствуют'; +$dictionary['Start the first topic'] = 'Начать первую тему'; +$dictionary['Members count'] = 'Количество участников'; +$dictionary['The Wall'] = 'Доска объявлений'; +$dictionary['See all'] = 'Смотреть все'; +$dictionary['No one has said anything...yet'] = 'Все пока молчат'; +$dictionary['Write something'] = 'Объявить что-нибудь'; + +$dictionary['Message All Members'] = 'Сообщение всем участникам'; +$dictionary['Edit Group'] = 'Редактировать параметры группы'; +$dictionary['Edit Members'] = 'Редактировать список пользователей'; +$dictionary['Invite People to Join'] = 'Пригласить людей присоединиться'; +$dictionary['Leave Group'] = 'Покинуть группу'; + ?> Added: app/views/groupapp/board/_head.tpl =================================================================== --- app/views/groupapp/board/_head.tpl (rev 0) +++ app/views/groupapp/board/_head.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1,17 @@ +<div class="title_bar"> + <div class="avatar"> + <a href="/profile/show/"><img src="/images/nophoto_men_sm.gif" alt="" class=""></a> + </div> + <div class="info"> + <div class="header"> + <div class="name groupapp">{group.name?} _{Discussions}</div> + </div> + <div class="clearfix"></div> + <div class="subheader"><a href="/groupapp/group/show_group/{group.id?}">_{Back to} {group.name?}</a></div> + </div> +</div> +<div class="clearfix"></div> + +<?= $controller->renderErrors() ?> + +<?= $controller->renderPartial("menu") ?> Added: app/views/groupapp/board/_menu.tpl =================================================================== --- app/views/groupapp/board/_menu.tpl (rev 0) +++ app/views/groupapp/board/_menu.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1,15 @@ +<div class="tabs"> + <div class="left"> + <ul class="toggle_tabs"> + <li class="first"><a href="/groupapp/board" class="<?= $controller->getActionName() == 'index' ? 'selected' : '' ?>">_{Discussion Board}</a></li><? + if ($controller->getActionName() == 'show_topic') { ?><li><a href="/groupapp/board/show_topic/{topic.id?}" class="last selected">_{Topic View}</a></li><? } ?> + </ul> + </div> + <div class="right"> + <ul class="toggle_tabs"> + <li class="first last"><a href="/groupapp/board/start_topic" class="<?= $controller->getActionName() == 'start_topic' ? 'selected' : '' ?>">_{Start New Topic}</a></li> + </ul> + </div> +</div> +<div class="clearfix"> </div> + Added: app/views/groupapp/board/index.tpl =================================================================== --- app/views/groupapp/board/index.tpl (rev 0) +++ app/views/groupapp/board/index.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1 @@ +<?= $controller->renderPartial("head") ?> Added: app/views/groupapp/board/show_topic.tpl =================================================================== --- app/views/groupapp/board/show_topic.tpl (rev 0) +++ app/views/groupapp/board/show_topic.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1 @@ +<?= $controller->renderPartial("head") ?> \ No newline at end of file Added: app/views/groupapp/board/start_topic.tpl =================================================================== --- app/views/groupapp/board/start_topic.tpl (rev 0) +++ app/views/groupapp/board/start_topic.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1 @@ +<?= $controller->renderPartial("head") ?> Modified: app/views/groupapp/group/show_group.tpl =================================================================== --- app/views/groupapp/group/show_group.tpl 2008-05-01 10:41:47 UTC (rev 143) +++ app/views/groupapp/group/show_group.tpl 2008-05-01 11:51:50 UTC (rev 144) @@ -1,6 +1,6 @@ <div class="title_bar"> <div class="head"> - <div class="name groupapp">{group.name?}</div> + <div class="name groupapp">_{Group} {group.name?}</div> </div> </div> <div class="clearfix"></div> @@ -11,9 +11,9 @@ <ul class="actions_list"> <li><a href="/groupapp/">_{Message All Members}</a></li> - <li><a href="/groupapp/group/edit_info/{group.id}">_{Edit Group}</a></li> - <li><a href="/groupapp/group/edit_members/{group.id}">_{Edit Members}</a></li> - <li><a href="/groupapp/group/edit_members/{group.id}">_{Invite People to Join}</a></li> + <li><a href="/groupapp/group/edit_info/{group.id?}">_{Edit Group}</a></li> + <li><a href="/groupapp/group/edit_members/{group.id?}">_{Edit Members}</a></li> + <li><a href="/groupapp/group/edit_members/{group.id?}">_{Invite People to Join}</a></li> <li><a href="#">_{Leave Group}</a></li> </ul> @@ -27,7 +27,7 @@ <div class="box"> <div class="header"> - <div class="box_title">_{Admins}</div> + <div class="box_title">_{Administrators}</div> </div> <div class="clearfix"></div> </div> @@ -83,9 +83,13 @@ <div class="edit"><a href="#">_{edit}</a></div> <div class="box_title">_{Members}</div> </div> + <div class="menu"> + <div class="action"><a href="#">_{See all}</a></div> + <div class="info">_{Members count}: 1</div> + </div> <div class="clearfix"></div> - <div class="emptyblock"> - _{No one has uploaded any videos}. <a href="#">_{Add Videos}</a>. + <div class="body"> + Members list </div> </div> Modified: public/stylesheets/Application.css =================================================================== --- public/stylesheets/Application.css 2008-05-01 10:41:47 UTC (rev 143) +++ public/stylesheets/Application.css 2008-05-01 11:51:50 UTC (rev 144) @@ -361,7 +361,6 @@ line-height: 14px; } - #content .title { font-weight: bold; font-size: 13px; @@ -573,6 +572,22 @@ margin-right: 10px; } +.box .menu { + background: #eeeeee; + border-top: 1px solid #aaaaaa; + color: #000000; + padding: 3px 0px 3px 0px; +} + +.box .menu .info { + margin-left: 10px; +} + +.box .menu .action { + float: right; + margin-right: 10px; +} + .box .body { padding: 10px; } Added: public/stylesheets/groupapp/Board.css =================================================================== --- public/stylesheets/groupapp/Board.css (rev 0) +++ public/stylesheets/groupapp/Board.css 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1 @@ + \ No newline at end of file Modified: public/stylesheets/groupapp/Group.css =================================================================== --- public/stylesheets/groupapp/Group.css 2008-05-01 10:41:47 UTC (rev 143) +++ public/stylesheets/groupapp/Group.css 2008-05-01 11:51:50 UTC (rev 144) @@ -1,50 +1,3 @@ -.title_bar { - background-color: #ffffff; -} - -.title_bar .avatar { - margin: 10px 10px 0px 20px; - overflow: hidden; - height: 50px; - width: 50px; - z-index: 1; - position: relative; -} - -.title_bar .avatar img{ - display: block; -} - -.title_bar .info { - position: relative; - top: -50px; - left: 0px; - margin: 0px 0px -50px 0px; - padding: 0px 0px 0px 80px; -} - -.title_bar .info .header { - background: #f7f7f7; - z-index: 0; - border-bottom: solid 1px #cccccc; - margin: -10px 0px 7px -80px; - padding: 10px 0px 0px 80px; -} - -.name { - font-weight: bold; - font-size: 14px; - padding: 7px 0px 7px 22px; -} - -.title_bar .info .subheader { -} - -.title_bar .head { - padding: 10px 0px 10px 30px; - border-bottom: solid 1px #cccccc; -} - .nogroups { font-size: 12px; text-align: center; Added: public/stylesheets/groupapp/Groupapp.css =================================================================== --- public/stylesheets/groupapp/Groupapp.css (rev 0) +++ public/stylesheets/groupapp/Groupapp.css 2008-05-01 11:51:50 UTC (rev 144) @@ -0,0 +1,47 @@ +.title_bar { + background-color: #ffffff; +} + +.title_bar .avatar { + margin: 10px 10px 0px 20px; + overflow: hidden; + height: 50px; + width: 50px; + z-index: 1; + position: relative; +} + +.title_bar .avatar img{ + display: block; +} + +.title_bar .info { + position: relative; + top: -50px; + left: 0px; + margin: 0px 0px -50px 0px; + padding: 0px 0px 0px 80px; +} + +.title_bar .info .header { + background: #f7f7f7; + z-index: 0; + border-bottom: solid 1px #cccccc; + margin: -10px 0px 7px -80px; + padding: 10px 0px 0px 80px; +} + +.name { + font-weight: bold; + font-size: 14px; + padding: 7px 0px 7px 22px; +} + +.title_bar .info .subheader { +} + +.title_bar .head { + padding: 10px 0px 10px 30px; + border-bottom: solid 1px #cccccc; +} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |