[Isocial-svn] SF.net SVN: isocial: [259]
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <fsn...@us...> - 2008-07-02 17:31:24
|
Revision: 259 http://isocial.svn.sourceforge.net/isocial/?rev=259&view=rev Author: fsnobody Date: 2008-07-02 10:31:31 -0700 (Wed, 02 Jul 2008) Log Message: ----------- poehali Modified Paths: -------------- app/controllers/blogapp/post_controller.php app/locales/layout/ru.php app/views/blogapp/post/_form.tpl app/views/blogapp/post/create.tpl app/views/blogapp/post/view.tpl app/views/photoapp/album/view.tpl public/stylesheets/blogapp/Post.css Added Paths: ----------- app/locales/blogapp/ app/locales/blogapp/post/ app/locales/blogapp/post/ru.php Modified: app/controllers/blogapp/post_controller.php =================================================================== --- app/controllers/blogapp/post_controller.php 2008-07-02 17:01:53 UTC (rev 258) +++ app/controllers/blogapp/post_controller.php 2008-07-02 17:31:31 UTC (rev 259) @@ -23,14 +23,14 @@ $post = $this->BlogappPost->find($this->params['id']); if ($this->current_user->getId() == $post->user_id ){ $post->media_item->load(); - $post->attachments = $post->attachment->load(); - foreach ($post->attachments as $k => $attach) { + $this->attachments = $post->attachment->load(); + foreach ($this->attachments as $k => $attach) { $attach->stored_file->load(); } $this->post = $post; } - } + } // view function create () { if (!empty($this->params['post']) && $this->Request->isPost() ){ Added: app/locales/blogapp/post/ru.php =================================================================== --- app/locales/blogapp/post/ru.php (rev 0) +++ app/locales/blogapp/post/ru.php 2008-07-02 17:31:31 UTC (rev 259) @@ -0,0 +1,6 @@ +<?php + +$dictionary = array(); + +$dictionary['Post Title'] = "Заголовок поста"; +?> \ No newline at end of file Modified: app/locales/layout/ru.php =================================================================== --- app/locales/layout/ru.php 2008-07-02 17:01:53 UTC (rev 258) +++ app/locales/layout/ru.php 2008-07-02 17:31:31 UTC (rev 259) @@ -48,5 +48,4 @@ $dictionary['Address field'] = 'Домашний адрес'; $dictionary['Website field'] = 'URL веб сайта'; - ?> Modified: app/views/blogapp/post/_form.tpl =================================================================== --- app/views/blogapp/post/_form.tpl 2008-07-02 17:01:53 UTC (rev 258) +++ app/views/blogapp/post/_form.tpl 2008-07-02 17:31:31 UTC (rev 259) @@ -3,7 +3,7 @@ </div> <div class="formrow"> - <label class="required">_{Post Name}:<br><small>(_{required})</small></label> + <label class="required">_{Post Title}:<br><small>(_{required})</small></label> <div class="formcol"> <?= $form_helper->text_field('post', 'title', array('class' => 'textinput')) ?> </div> Modified: app/views/blogapp/post/create.tpl =================================================================== --- app/views/blogapp/post/create.tpl 2008-07-02 17:01:53 UTC (rev 258) +++ app/views/blogapp/post/create.tpl 2008-07-02 17:31:31 UTC (rev 259) @@ -2,9 +2,6 @@ <?= $controller->renderErrors() ?> -The create - - <div class="editform"> <form action="/blogapp/post/create" method="post" enctype="multipart/form-data"> Modified: app/views/blogapp/post/view.tpl =================================================================== --- app/views/blogapp/post/view.tpl 2008-07-02 17:01:53 UTC (rev 258) +++ app/views/blogapp/post/view.tpl 2008-07-02 17:31:31 UTC (rev 259) @@ -13,7 +13,15 @@ <div class="text"> <?= $post->media_item->get('body');?> </div> + </div> + <div class="clearfix"></div> + <div class="attachments red"> + {loop attachments} + <div class="item"> + #<?= $attachment->stored_file->name; ?># + </div> + {end} </div> <div class="clearfix"></div> <div class="info">Автор: OWNER | Комментарии (7) | Комментировать</div> Modified: app/views/photoapp/album/view.tpl =================================================================== --- app/views/photoapp/album/view.tpl 2008-07-02 17:01:53 UTC (rev 258) +++ app/views/photoapp/album/view.tpl 2008-07-02 17:31:31 UTC (rev 259) @@ -7,11 +7,11 @@ <div class="uploaded_container"> <?= $form_tag_helper->start_form_tag(array('action'=>'view')) ?> <?= $form_helper->hidden_field('photo', 'action_view', array('value' => 'do_view'))?> - <? if ($photos == 0) {?> + <? if ($photos == 0):?> <div class="noalbums"> _{You have no any uploaded photos to this album}. </div> - <? } else {?> + <? else: ?> <div class="edit_container"> {loop photos} @@ -39,7 +39,7 @@ </div> <div class="clearfix"></div> - <? }?> + <? endif ?> </form> Modified: public/stylesheets/blogapp/Post.css =================================================================== --- public/stylesheets/blogapp/Post.css 2008-07-02 17:01:53 UTC (rev 258) +++ public/stylesheets/blogapp/Post.css 2008-07-02 17:31:31 UTC (rev 259) @@ -1,4 +1,18 @@ .x {} +.attachments { + padding: 3px; +} + +.attachments .item{ + float: left; + border: 1px solid #dedeee; + width: 110px; + height: 156px; + padding: 3px; + margin: 2px 3px; + text-align: center; +} + .post_item { padding: 10px 10px 20px 10px; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |