Update brave ad

This commit is contained in:
2020-11-04 20:51:39 +01:00
parent 829fb47951
commit a8a5c5e906
19 changed files with 304 additions and 14 deletions

View File

@@ -81,6 +81,29 @@
</thead>
<tbody id="tbody_peers"></tbody>
</table>
<h3>Pixelstore stats</h3>
<table>
<tr>
<td>Cache files</td>
<td>Cache size</td>
<td>Max cache size</td>
</tr>
<tr>
<td id="cache_files"></td>
<td id="cache_size"></td>
<td id="cache_max"></td>
</tr>
<tr>
<td>Cache reads</td>
<td>Disk reads</td>
<td>Remote reads</td>
</tr>
<tr>
<td id="cache_reads"></td>
<td id="disk_reads"></td>
<td id="remote_reads"></td>
</tr>
</table>
<h3>Websocket statistics</h3>
<table>
<thead>

View File

@@ -166,6 +166,10 @@
<div id="348416176"></div>
{{ else if eq .Other.AdType 7}}
<iframe class="sponsors_banner" src="/ad/revenuehits" style="width:728px; height:90px; border:none; padding:0; overflow:hidden;" scrolling="no"></iframe>
{{ else if eq .Other.AdType 8}}
<a class="sponsors_banner" style="display: inline-block; width: 728px; height: 90px;" href="/brave">
<img src="/res/img/misc/brave-728x90.png" style="width: 100%; height: 100%" />
</a>
{{end}}
{{ else if not .Other.UserAdsEnabled }}
<div style="text-align: center; line-height: 1.3em; font-size: 13px;">

View File

@@ -0,0 +1,37 @@
{{ define "filesystem" }}<!DOCTYPE html>
<html lang="en">
<head>
{{template "meta_tags" .Title}}
{{template "user_style" .}}
<style>{{template "file_manager.css" .}}</style>
<script>var apiEndpoint = '{{.APIEndpoint}}';</script>
</head>
<body>
{{template "page_top" .}}
<h1>{{ .Title}}</h1>
<div class="page_content">
<div class="limit_width">
<h2>
<a href="/fs">Buckets</a>
{{ range $node := .Other.Path }}
/ <a href="{{ $node.HREF }}">{{ $node.Name }}</a>
{{ end }}
</h2>
{{ range $node := .Other.Children }}
<a class="node" href="{{ $node.HREF }}"><div>
<img src="{{ $node.Icon }}"/>
<span>{{ $node.Name }}</span>
</div></a>
{{ end }}
</div>
</div>
{{template "page_bottom" .}}
{{template "analytics"}}
</body>
</html>
{{ end }}

View File

@@ -28,6 +28,7 @@
.big_number {
font-size: 24px;
font-weight: bold;
line-height: 1em;
text-align: center;
display: block;
box-sizing: border-box;
@@ -107,7 +108,6 @@
</picture>
<br/>
<div class="page_content" style="padding-top: 0;">
<!-- <h1>How to share files:</h1> -->
<div id="instruction_1" class="instruction_highlight" style="margin-top: 0;"><div class="limit_width">
<span class="big_number">1</span><span class="instruction_text">Select files to upload</span>
You can also drop files anywhere on this page from your file