Skip to content

Commit

Permalink
Some view fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
waterelder committed Feb 7, 2020
1 parent 0b690e0 commit de3dd10
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
16 changes: 16 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ h3 {
padding-bottom: 1px;
}

.message {
padding: 15px;
font-size: 16px;
border-radius: 5px;
margin-bottom: 20px;
line-height: 22px;
text-align: center;
padding-left: 5px;
padding-right: 5px;
}

.message.announcment {
color: #7190EB;
background: rgba(66, 139, 202, 0.1);
}

.navbar-form .form-control {
background-color: gray;
color: #fff;
Expand Down
20 changes: 15 additions & 5 deletions static/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,24 @@
<a class="nav-link" href="https://github.com/trezor/blockbook" target="_blank" rel="noopener noreferrer">Powered by BlockBook</a>
</li>
</ul>
<span class="d-none ml-md-auto d-md-flex navbar-form navbar-nav">
<a href="/sendtx" class="nav-link">Send Transaction</a>
</span>

<ul class="d-none ml-md-auto d-md-flex navbar-nav">
<li class="nav-item">
<a href="/sendtx" class="nav-link">Send Transaction</a>
</li>
</ul>
<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
<li class="nav-item active">
<li class="nav-item">
<a class="nav-link" rel="noopener noreferrer" href="https://github.com/guardaco/blockbook">Github</a>
</li>
</ul>
</ul>
{{- if eq .CoinLabel "Bitcoin Cash SV" -}}
<ul class="ml-md-auto d-md-flex navbar-nav flex-row">
<li class="nav-item">
<span class="nav-link">Donate: 14CcTei9dQKAjgbBbBci3a5yJBPy8y6NWq</span>
</li>
</ul>
{{- end -}}
</nav>
</div>
</footer>
Expand Down
14 changes: 8 additions & 6 deletions static/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{{define "specific"}}{{$cs := .CoinShortcut}}{{$bb := .Info.Blockbook}}{{$be := .Info.Backend}}
{{- if eq $bb.Coin "Bcash" -}}
<div class="row">
<div class="message announcment col-12">
<span>We’ve changed technology platform of Bitcoin SV explorer to increase uptime and stability. Explorer API is now available in both versions. However we encourage our API users to migrate to a new protocol as Insight version can be deprecated in future.</span>
</div>
</div>

{{- end -}}
<h1>Application status</h1>
{{- if $bb.InitialSync -}}
<h3 class="bg-danger text-white" style="padding: 20px;">Application is now in initial synchronization and does not provide any data.</h3>
Expand Down Expand Up @@ -100,12 +108,6 @@ <h3>Backend</h3>
<td class="data">{{$be.SizeOnDisk}}</td>
</tr>
{{- end -}}
{{- if $be.Warnings -}}
<tr>
<td>Warnings</td>
<td class="data text-warning">{{$be.Warnings}}</td>
</tr>
{{- end -}}
</tbody>
</table>
</div>
Expand Down

0 comments on commit de3dd10

Please sign in to comment.