- Timestamp:
- 07/13/08 00:54:27 (5 years ago)
- Location:
- events/phpframework/piece_framework/trunk
- Files:
-
- 5 modified
-
libs/Phwittr/Public.php (modified) (1 diff)
-
web/frontend/webapp/actions/SelfAction.php (modified) (2 diffs)
-
web/frontend/webapp/config/flows/Self.flow (modified) (2 diffs)
-
web/frontend/webapp/config/piece-unity-config.yaml (modified) (1 diff)
-
web/frontend/webapp/templates/Self/Form.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/libs/Phwittr/Public.php
r15009 r15718 32 32 * @access public 33 33 */ 34 35 public $id = 0; 34 36 35 37 /**#@-*/ -
events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/SelfAction.php
r15579 r15718 56 56 $request = new stdClass(); 57 57 if (!$this->_context->getValidation()->validate('Self', $request)) { 58 $this->_view = 'public_timeline'; 59 } else { 60 $this->_view = $request->view; 58 return 'DisplayIndex'; 61 59 } 62 60 61 $this->_view = $request->view; 63 62 $this->_self = $this->_context->getAttribute('self'); 63 64 if (!$this->_self) { 65 if ($this->_view !== 'public_timeline') { 66 return 'DisplayLogin'; 67 } else { 68 $this->_self = new Phwittr_Public(); 69 $this->_view = 'public_timeline'; 70 } 71 } 72 64 73 $this->_page = $this->_context->getAttribute('page'); 65 74 … … 79 88 $viewElement = $this->_context->getViewElement(); 80 89 81 $viewElement->setElementByRef(' user', $this->_self);90 $viewElement->setElementByRef('self', $this->_self); 82 91 $viewElement->setElement('statusList', $statusList); 83 92 $viewElement->setElement('olderPage', $this->_page + 1); -
events/phpframework/piece_framework/trunk/web/frontend/webapp/config/flows/Self.flow
r15526 r15718 24 24 nextState: displayForm 25 25 26 - name: DisplayIndex 27 view: http://example.com/ 28 29 - name: DisplayLogin 30 view: http://example.com/login 31 32 26 33 actionState: 27 34 - name: Initialize … … 31 38 - event: DisplayForm 32 39 nextState: DisplayForm 40 - event: DisplayIndex 41 nextState: DisplayIndex 42 - event: DisplayLogin 43 nextState: DisplayLogin 33 44 34 45 - name: ProcessUpdate -
events/phpframework/piece_framework/trunk/web/frontend/webapp/config/piece-unity-config.yaml
r15526 r15718 78 78 value: 79 79 - "^/logout.php" 80 - "^/self.php"81 80 - "^/status/destroy.php" 82 81 - "^/friends.php" -
events/phpframework/piece_framework/trunk/web/frontend/webapp/templates/Self/Form.html
r15579 r15718 22 22 } 23 23 }); 24 return false;"> 24 return false;" 25 if="self.id"> 25 26 <div id="post"> 26 27 <span class="whatdoing">イマナニシテル?</span> … … 37 38 </form> 38 39 39 <ul class="tabNav" >40 <ul class="tabNav" if="self.id"> 40 41 <li><a href="/home" class="{tab.home}">みんなのつぶやき</a></li> 41 42 <li><a href="/replies" class="{tab.replies}">あなた宛のつぶやき</a></li> … … 60 61 61 62 <span> 62 <a href="/{ user.userName}/statuses/{status.statusId}" key="status.createdAt">YYYY-MM-DD hh:mm:ss</a>63 <a href="/{status.userName}/statuses/{status.statusId}" key="status.createdAt">YYYY-MM-DD hh:mm:ss</a> 63 64 </span> 64 65 … … 68 69 onclick="replyTo('{status.userName}');" 69 70 href="#" 70 if="s tatus.userId != self.id">71 if="self.id && status.userId != self.id"> 71 72 <img src="/img/share/reply_icon.gif" alt="Reply" class="icon16" /> 72 73 </a> … … 75 76 onclick="if (confirm('削除してもよいですか?取り消しできません!')) { return true; } else { return false;}" 76 77 href="/status/destroy/{status.statusId}" 77 if="s tatus.userId == self.id">78 if="self.id && status.userId == self.id"> 78 79 <img src="/img/share/trash_icon.gif" alt="Delete" class="icon16" /> 79 80 </a> … … 83 84 </table> 84 85 85 <p class="paraR bottombtn" if=" user.hasNextPage()"><a href="?page={olderPage}">前へ</a></p>86 <p class="paraR bottombtn" if="self.hasNextPage()"><a href="?page={olderPage}">前へ</a></p> 86 87 <p class="paraR bottombtn" if="newerPage > 0"><a href="?page={newerPage}">後へ</a></p> 87 88 <p class="paraL bottombtn"><a href="#rss">RSS</a></p> … … 91 92 92 93 <div id="sub"> 93 <div class="subsection_title"> 94 <div class="section" if="!self.id"> 95 <div class="section-header"> 96 <h1>ユーザー登録</h1> 97 </div> 98 <div class="join"> 99 <form action="/signup" id="account_signup_form" name="account_signup_form"> 100 <input type="submit" value="ユーザー登録" name="commit" id="join" class="formBtn"/> 101 </form> 102 </div> 103 </div> 104 105 <div class="subsection_title" if="self.id"> 94 106 <h3>プロフィール</h3> 95 107 </div> 96 108 97 <div class="subsection_body" >109 <div class="subsection_body" if="self.id"> 98 110 <address> 99 111 <ul class="about vcard entry-author"> 100 <li><span class="label">名前</span> <span class="fn" key=" user.userName">username</span></li>112 <li><span class="label">名前</span> <span class="fn" key="self.userName">username</span></li> 101 113 </ul> 102 114 </address> 103 115 </div> 104 116 105 <div class="subsection_title" >117 <div class="subsection_title" if="self.id"> 106 118 <h3>ステータス</h3> 107 119 </div> 108 <div class="subsection_body" >120 <div class="subsection_body" if="self.id"> 109 121 <ul class="status"> 110 122 <li> 111 123 <span class="label"><a href="/friends">このユーザーがフォロー</a></span> 112 <span key=" user.countFriends()">999</span>124 <span key="self.countFriends()">999</span> 113 125 </li> 114 126 <li> 115 127 <span class="label"><a href="/followers">このユーザーをフォロー</a></span> 116 <span key=" user.countFollowers()">999</span>128 <span key="self.countFollowers()">999</span> 117 129 </li> 118 130 <li> 119 131 <span class="label"><a href="/account/archive">これまでの投稿</a></span> 120 <span key=" user.countArchives()">999</span>132 <span key="self.countArchives()">999</span> 121 133 </li> 122 134 </ul> 123 135 </div> 124 136 125 <div class="subsection_body" >137 <div class="subsection_body" if="self.id"> 126 138 <div if="self.countFriendRequests()"> 127 139 <a href="/friend_requests">新しいフォロー<span key="self.countFriendRequests()">0</span>件!</a> 128 140 </div> 129 141 130 <span class="vcard" foreach=" user.listFriendsImage()" as="friend">142 <span class="vcard" foreach="self.listFriendsImage()" as="friend"> 131 143 <a href="/{friend.userName}"> 132 144 <img height="24" width="24" src="/profile_images/{friend.id}/{friend.imageMini}" alt="{friend.username}" id="profile-image" class="photo fn" if="friend.image" />
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)