Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-client
Commits
8c9f660c
Commit
8c9f660c
authored
Jul 26, 2019
by
Tifenn Guillas
Browse files
Merge branch 'link-rederers' into 'develop'
Fix external and internal links and buttons See merge request
!38
parents
d51e379e
eb906171
Pipeline
#1351
passed with stages
in 6 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/search/components/datatable.component.html
View file @
8c9f660c
...
...
@@ -35,11 +35,22 @@
class=
"img-fluid"
>
</button>
</div>
<div
*ngSwitchCase=
"'href'"
>
<div
*ngSwitchCase=
"'ext-link'"
>
<a
[href]=
"getAttributeUriAction(attribute.name, datum[attribute.label])"
target=
"_blank"
>
{{ datum[attribute.name] }}
</a>
</div>
<div
*ngSwitchCase=
"'int-link'"
>
<a
[routerLink]=
"getAttributeUriAction(attribute.name, datum[attribute.label])"
>
{{ datum[attribute.name] }}
</a>
</div>
<div
*ngSwitchCase=
"'btn'"
>
<div
*ngSwitchCase=
"'ext-btn'"
>
<a
[href]=
"getAttributeUriAction(attribute.name, datum[attribute.label])"
target=
"_blank"
class=
"btn btn-outline-primary btn-sm"
>
{{ datum[attribute.label] }}
</a>
</div>
<div
*ngSwitchCase=
"'int-btn'"
>
<a
[routerLink]=
"getAttributeUriAction(attribute.name, datum[attribute.label])"
class=
"btn btn-outline-primary btn-sm"
>
{{ datum[attribute.label] }}
</a>
...
...
@@ -52,6 +63,7 @@
</div>
<div
*ngSwitchCase=
"'download'"
>
<a
[href]=
"getAttributeUriAction(attribute.name, datum[attribute.label])"
target=
"_blank"
class=
"btn btn-outline-primary btn-sm"
>
<i
class=
"fa fa-download"
aria-hidden=
"true"
></i>
</a>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment