This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
fd989585
Commit
fd989585
authored
4 years ago
by
Michael Breu
Browse files
Options
Downloads
Patches
Plain Diff
Teasers werden jetzt verlinkt.
parent
a88a52c4
2 merge requests
!17
Initial Merge to Prepare Release 1.0.0
,
!1
Resolve "Metadaten konsolideren"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/webapp/app/teaserContent/teaserContent.component.html
+3
-3
3 additions, 3 deletions
...ain/webapp/app/teaserContent/teaserContent.component.html
src/main/webapp/app/teaserContent/teaserContent.component.ts
+21
-1
21 additions, 1 deletion
src/main/webapp/app/teaserContent/teaserContent.component.ts
with
24 additions
and
4 deletions
src/main/webapp/app/teaserContent/teaserContent.component.html
+
3
−
3
View file @
fd989585
...
...
@@ -3,19 +3,19 @@
<div
class=
"col-sm-3"
>
<p
style=
"padding-left: 30px;"
><strong>
Keywords
</strong></p>
<ul
style=
"list-style-type: circle;"
>
<li
*ngFor=
"let keyWord of keywords"
><a
href=
"#
"
>
{{keyWord}}
</a></li>
<li
*ngFor=
"let keyWord of keywords"
><a
(click)=
"clickKeyword(keyWord)
"
>
{{keyWord}}
</a></li>
</ul>
</div>
<div
class=
"col-sm-3"
>
<p
style=
"padding-left: 30px;"
><strong>
Programming Languages
</strong></p>
<ul
style=
"list-style-type: circle;"
>
<li
*ngFor=
"let programmingLanguage of programmingLanguages"
><a
href=
"#
"
>
{{programmingLanguage}}
</a></li>
<li
*ngFor=
"let programmingLanguage of programmingLanguages"
><a
(click)=
"clickLanguage(programmingLanguage)
"
>
{{programmingLanguage}}
</a></li>
</ul>
</div>
<div
class=
"col-sm-3"
>
<p
style=
"padding-left: 30px;"
><strong>
Contributors
</strong></p>
<ul
style=
"list-style-type: circle;"
>
<li
*ngFor=
"let contributor of contributors"
><a
href=
"#
"
>
{{contributor}}
</a></li>
<li
*ngFor=
"let contributor of contributors"
><a
(click)=
"clickContributor(contributor)
"
>
{{contributor}}
</a></li>
</ul>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/webapp/app/teaserContent/teaserContent.component.ts
+
21
−
1
View file @
fd989585
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
SearchService
}
from
'
app/search/service/search-service
'
;
import
{
SearchInputComponent
}
from
'
app/search-input/search-input.component
'
import
{
Router
}
from
'
@angular/router
'
;
@
Component
({
selector
:
'
jhi-teaser-content
'
,
templateUrl
:
'
./teaserContent.component.html
'
,
styleUrls
:
[
'
./teaserContent.component.scss
'
],
providers
:
[
SearchInputComponent
]
})
export
class
TeaserContentComponent
implements
OnInit
{
public
keywords
:
Array
<
String
>
=
new
Array
<
String
>
();
public
contributors
:
Array
<
String
>
=
new
Array
<
String
>
();
public
programmingLanguages
:
Array
<
String
>
=
new
Array
<
String
>
();
constructor
(
private
searchService
:
SearchService
)
{}
constructor
(
private
searchService
:
SearchService
,
private
router
:
Router
,
private
searchInputComponent
:
SearchInputComponent
)
{}
ngOnInit
():
void
{
this
.
searchService
.
getKeywordsAutoComplete
(
''
).
subscribe
(
...
...
@@ -41,4 +49,16 @@ export class TeaserContentComponent implements OnInit {
}
);
}
clickLanguage
(
programmingLanguage
:
String
):
void
{
this
.
router
.
navigate
([
'
/search
'
],
{
queryParams
:
{
pl
:
programmingLanguage
}
});
}
clickContributor
(
contributor
:
String
):
void
{
this
.
router
.
navigate
([
'
/search
'
],
{
queryParams
:
{
a
:
contributor
}
});
}
clickKeyword
(
keyWord
:
String
):
void
{
this
.
router
.
navigate
([
'
/search
'
],
{
queryParams
:
{
kw
:
keyWord
}
});
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment