Adding spam so people install the Play Store version of the app.
This commit is contained in:
parent
37b26068cc
commit
256b011b86
@ -22,6 +22,8 @@ sub startup ($self) {
|
||||
before_render => sub($c, $args) {
|
||||
my $current_route = $c->url_for;
|
||||
$c->stash(current_route => $current_route);
|
||||
my $is_android = $c->req->headers->user_agent =~ /android/i;
|
||||
$c->stash(is_android => $is_android);
|
||||
my $onion_base_url = $self->config->{onion_base_url};
|
||||
my $base_url = $self->config->{base_url};
|
||||
if (!defined $onion_base_url) {
|
||||
|
1
public/img/play-store.svg
Normal file
1
public/img/play-store.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="480px" height="480px"><path fill="#4db6ac" d="M7.705,4.043C7.292,4.15,7,4.507,7,5.121c0,1.802,0,18.795,0,18.795S7,42.28,7,43.091c0,0.446,0.197,0.745,0.5,0.856l20.181-20.064L7.705,4.043z"/><path fill="#dce775" d="M33.237,18.36l-8.307-4.796c0,0-15.245-8.803-16.141-9.32C8.401,4.02,8.019,3.961,7.705,4.043l19.977,19.84L33.237,18.36z"/><path fill="#d32f2f" d="M8.417,43.802c0.532-0.308,15.284-8.825,24.865-14.357l-5.601-5.562L7.5,43.947C7.748,44.038,8.066,44.004,8.417,43.802z"/><path fill="#fbc02d" d="M41.398,23.071c-0.796-0.429-8.1-4.676-8.1-4.676l-0.061-0.035l-5.556,5.523l5.601,5.562c4.432-2.559,7.761-4.48,8.059-4.653C42.285,24.248,42.194,23.5,41.398,23.071z"/></svg>
|
After Width: | Height: | Size: 737 B |
@ -53,6 +53,14 @@
|
||||
<span>Abrir en el navegador.</span>
|
||||
</a>
|
||||
</div>
|
||||
% if ($is_android) {
|
||||
<div class="description open-browser-container">
|
||||
<a href="https://play.google.com/store/apps/details?id=info.burguillos.bi" class="open-in-browser">
|
||||
<img alt="" src="/img/play-store.svg"/>
|
||||
<span>Prueba nuestra aplicación para Android. Más fácil, mejor.</span>
|
||||
</a>
|
||||
</div>
|
||||
% }
|
||||
<%= content %></body>
|
||||
<div class="description android">
|
||||
<a href="#" class="pin-to-home">Añade esta página a la pantalla de inicio de tu móvil.</a>
|
||||
|
Loading…
Reference in New Issue
Block a user