Commit 7db4f9dc8bc93abeb6c242970803debddbcb9cf5

Authored by Evandro Junior
1 parent 08a6c237
Exists in profile_search

starting the search

.tags 0 → 100644
.tags1 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
  2 +!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
  3 +!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
  4 +!_TAG_PROGRAM_NAME Exuberant Ctags //
  5 +!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
  6 +!_TAG_PROGRAM_VERSION 5.9~svn20110310 //
... ...
src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.component.ts 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +import {Component, Input} from 'ng-forward'
  2 +import {Block} from '../block.component';
  3 +import {ArticleService} from "../../../../lib/ng-noosfero-api/http/article.service";
  4 +
  5 +@Component({
  6 + selector: 'noosfero-profile-contents-search-block',
  7 + templateUrl: 'app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html'
  8 +})
  9 +export class ProfileContentsSearch {
  10 +
  11 + members: any = [];
  12 +
  13 + constructor(private articleService: ArticleService) {
  14 +
  15 + }
  16 +
  17 + search() {
  18 + console.log("Na busca");
  19 + // this.articleService.getProfileMembers(this.owner.id, { per_page: 6 }).then((response: any) => {
  20 + // this.members = response.data.people;
  21 + // });
  22 + }
  23 +
  24 +}
... ...
src/app/components/noosfero-blocks/profile-contents-search/profile-contents-search.html 0 → 100644
... ... @@ -0,0 +1,29 @@
  1 +<!-- <div deckgrid source="ctrl.documents" class="deckgrid">
  2 + <div class="a-card panel media" ng-click="mother.ctrl.openDocument(card);">
  3 + <div class="author media-left" ng-show="card.author.image">
  4 + <img ng-src="{{card.author.image.url}}" class="img-circle">
  5 + </div>
  6 + <div class="header media-body">
  7 + <h5 class="title media-heading" ng-bind="card.title"></h5>
  8 +
  9 + <div class="subheader">
  10 + <span class="time">
  11 + <i class="fa fa-clock-o"></i> <span am-time-ago="card.created_at | dateFormat"></span>
  12 + </span>
  13 + </div>
  14 + </div>
  15 + <img ng-show="card.image" ng-src="{{card.image.url}}" class="img-responsive article-image">
  16 + <div class="post-lead" ng-bind-html="card.body | stripTags | truncate: 100: '...': true"></div>
  17 + </div>
  18 +</div> -->
  19 +<div>
  20 + <input type="text" name="search-term">
  21 + <button ng-click="search">
  22 +</div>
  23 +<div class="search-field" >
  24 +
  25 +<ul>
  26 + <li>resultados aqui!!!</li>
  27 +</ul>
  28 +
  29 +</div>
... ...
src/app/components/noosfero-blocks/recent-documents/recent-documents.html
... ... @@ -1,18 +0,0 @@
1   -<div deckgrid source="ctrl.documents" class="deckgrid">
2   - <div class="a-card panel media" ng-click="mother.ctrl.openDocument(card);">
3   - <div class="author media-left" ng-show="card.author.image">
4   - <img ng-src="{{card.author.image.url}}" class="img-circle">
5   - </div>
6   - <div class="header media-body">
7   - <h5 class="title media-heading" ng-bind="card.title"></h5>
8   -
9   - <div class="subheader">
10   - <span class="time">
11   - <i class="fa fa-clock-o"></i> <span am-time-ago="card.created_at | dateFormat"></span>
12   - </span>
13   - </div>
14   - </div>
15   - <img ng-show="card.image" ng-src="{{card.image.url}}" class="img-responsive article-image">
16   - <div class="post-lead" ng-bind-html="card.body | stripTags | truncate: 100: '...': true"></div>
17   - </div>
18   -</div>
src/app/main/main.component.ts
... ... @@ -20,9 +20,9 @@ import {Session} from &quot;./../components/auth/session&quot;;
20 20  
21 21 import {Navbar} from "../components/navbar/navbar";
22 22  
  23 +import {ProfileContentsSearch} from "../components/noosfero-blocks/profile-contents-search/profile-contents-search.component";
23 24 import {MainBlock} from "../components/noosfero-blocks/main-block/main-block.component";
24 25  
25   -
26 26 @Component({
27 27 selector: 'main-content',
28 28 templateUrl: "app/main/main.html",
... ... @@ -38,14 +38,14 @@ export class MainContent {
38 38 directives: [
39 39 ArticleBlog, ArticleView, Boxes, Block, LinkListBlock,
40 40 MainBlock, RecentDocumentsBlock, Navbar, ProfileImageBlock,
41   - MembersBlock, NoosferoTemplate, DateFormat
  41 + MembersBlock, NoosferoTemplate, DateFormat, ProfileContentsSearch
42 42 ],
43 43 providers: [AuthService, Session]
44 44 })
45 45 @StateConfig([
46 46 {
47 47 url: '/',
48   - component: MainContent,
  48 + component: ProfileContentsSearch,
49 49 name: 'main',
50 50 },
51 51 {
... ...