frontend: add integration for adservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
c9cd627453
commit
3e90b73464
8 changed files with 374 additions and 121 deletions
10
src/frontend/templates/ad.html
Normal file
10
src/frontend/templates/ad.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "text_ad" }}
|
||||
<div class="container">
|
||||
<div class="alert alert-dark" role="alert">
|
||||
<strong>Advertisement:</strong>
|
||||
<a href="{{.RedirectUrl}}" rel="nofollow" target="_blank" class="alert-link">
|
||||
{{.Text}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -51,6 +51,9 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ with $.ad }}{{ template "text_ad" . }}{{ end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
@ -47,9 +47,10 @@
|
|||
{{ template "recommendations" $.recommendations }}
|
||||
{{ end }}
|
||||
|
||||
{{ with $.ad }}{{ template "text_ad" . }}{{ end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
{{ template "footer" . }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue