diff --git a/.tags b/.tags new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.tags diff --git a/.tags1 b/.tags1 new file mode 100644 index 0000000..6eef69e --- /dev/null +++ b/.tags1 @@ -0,0 +1,6 @@ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/ +!_TAG_PROGRAM_NAME Exuberant Ctags // +!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ +!_TAG_PROGRAM_VERSION 5.9~svn20110310 // diff --git a/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.component.ts b/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.component.ts new file mode 100644 index 0000000..844a81f --- /dev/null +++ b/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.component.ts @@ -0,0 +1,24 @@ +import {Component, Input} from 'ng-forward' +import {Block} from '../block.component'; +import {ArticleService} from "../../../../lib/ng-noosfero-api/http/article.service"; + +@Component({ + selector: 'noosfero-profile-contents-search-block', + templateUrl: 'app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html' +}) +export class ProfileContentsSearch { + + members: any = []; + + constructor(private articleService: ArticleService) { + + } + + search() { + console.log("Na busca"); + // this.articleService.getProfileMembers(this.owner.id, { per_page: 6 }).then((response: any) => { + // this.members = response.data.people; + // }); + } + +} diff --git a/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html b/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html new file mode 100644 index 0000000..1e0a459 --- /dev/null +++ b/src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html @@ -0,0 +1,29 @@ + +
+ +
+
+ + + +
diff --git a/src/app/components/noosfero-blocks/recent-documents/recent-documents.html b/src/app/components/noosfero-blocks/recent-documents/recent-documents.html deleted file mode 100644 index 1421cfe..0000000 --- a/src/app/components/noosfero-blocks/recent-documents/recent-documents.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
-
- -
-
-
- -
- - - -
-
- -
-
-
diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 18d7c2e..ea9f84c 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -20,9 +20,9 @@ import {Session} from "./../components/auth/session"; import {Navbar} from "../components/navbar/navbar"; +import {ProfileContentsSearch} from "../components/noosfero-blocks/profile-contents-search/profile-contents-search.component"; import {MainBlock} from "../components/noosfero-blocks/main-block/main-block.component"; - @Component({ selector: 'main-content', templateUrl: "app/main/main.html", @@ -38,14 +38,14 @@ export class MainContent { directives: [ ArticleBlog, ArticleView, Boxes, Block, LinkListBlock, MainBlock, RecentDocumentsBlock, Navbar, ProfileImageBlock, - MembersBlock, NoosferoTemplate, DateFormat + MembersBlock, NoosferoTemplate, DateFormat, ProfileContentsSearch ], providers: [AuthService, Session] }) @StateConfig([ { url: '/', - component: MainContent, + component: ProfileContentsSearch, name: 'main', }, { -- libgit2 0.21.2