Added a 'Make a query' button to server, network and players pages

This commit is contained in:
Risto Lahtela 2021-01-28 16:09:25 +02:00
parent 54a698136e
commit 1e897a09bf
6 changed files with 51 additions and 0 deletions

View File

@ -53,6 +53,11 @@ public class WebServerSystem implements SubSystem {
ResourceService.getInstance().addStylesToResource("Plan", "players.html", ResourceService.Position.PRE_CONTENT, "./css/noauth.css"); ResourceService.getInstance().addStylesToResource("Plan", "players.html", ResourceService.Position.PRE_CONTENT, "./css/noauth.css");
ResourceService.getInstance().addStylesToResource("Plan", "network.html", ResourceService.Position.PRE_CONTENT, "./css/noauth.css"); ResourceService.getInstance().addStylesToResource("Plan", "network.html", ResourceService.Position.PRE_CONTENT, "./css/noauth.css");
} }
if (webServer.isEnabled()) {
ResourceService.getInstance().addStylesToResource("Plan", "server.html", ResourceService.Position.PRE_CONTENT, "../css/querybutton.css");
ResourceService.getInstance().addStylesToResource("Plan", "players.html", ResourceService.Position.PRE_CONTENT, "./css/querybutton.css");
ResourceService.getInstance().addStylesToResource("Plan", "network.html", ResourceService.Position.PRE_CONTENT, "./css/querybutton.css");
}
} }
@Override @Override

View File

@ -0,0 +1,3 @@
.query-buttons {
display: inline-block !important;
}

View File

@ -1241,6 +1241,10 @@ body.sidebar-hidden .navbar-nav {
padding: 0; padding: 0;
} }
.query-buttons {
display: none;
}
.contributors li { .contributors li {
padding: 0; padding: 0;
} }

View File

@ -114,6 +114,19 @@
<!-- Divider --> <!-- Divider -->
<hr class="sidebar-divider"> <hr class="sidebar-divider">
<div class="query-buttons">
<div class="sidebar-heading">
Links
</div>
<li class="nav-item nav-button">
<a class="nav-link" href="./query">
<i class="fas fa-fw fa-search"></i>
<span>Make a query</span></a>
</li>
<hr class="sidebar-divider">
</div>
<div class="ml-3 align-items-center justify-content-between"> <div class="ml-3 align-items-center justify-content-between">
<button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button"> <button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button">
<i class="fa fa-palette"></i> <i class="fa fa-palette"></i>

View File

@ -48,6 +48,19 @@
<!-- Divider --> <!-- Divider -->
<hr class="sidebar-divider"> <hr class="sidebar-divider">
<div class="query-buttons">
<div class="sidebar-heading">
Links
</div>
<li class="nav-item nav-button">
<a class="nav-link" href="./query">
<i class="fas fa-fw fa-search"></i>
<span>Make a query</span></a>
</li>
<hr class="sidebar-divider">
</div>
<div class="ml-3 align-items-center justify-content-between"> <div class="ml-3 align-items-center justify-content-between">
<button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button"> <button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button">
<i class="fa fa-palette"></i> <i class="fa fa-palette"></i>

View File

@ -120,6 +120,19 @@
<!-- Divider --> <!-- Divider -->
<hr class="sidebar-divider"> <hr class="sidebar-divider">
<div class="query-buttons">
<div class="sidebar-heading">
Links
</div>
<li class="nav-item nav-button">
<a class="nav-link" href="/query">
<i class="fas fa-fw fa-search"></i>
<span>Make a query</span></a>
</li>
<hr class="sidebar-divider">
</div>
<div class="ml-3 align-items-center justify-content-between"> <div class="ml-3 align-items-center justify-content-between">
<button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button"> <button class="btn bg-plan" data-target="#colorChooserModal" data-toggle="modal" type="button">
<i class="fa fa-palette"></i> <i class="fa fa-palette"></i>