Skip to content

Commit

Permalink
Remove sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Jun 11, 2021
1 parent f5290c5 commit 1a5eaab
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 269 deletions.
107 changes: 0 additions & 107 deletions conbench/static/sidebar.css

This file was deleted.

52 changes: 16 additions & 36 deletions conbench/templates/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,41 @@
<link href="https://cdn.datatables.net/1.10.23/css/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="https://cdn.datatables.net/responsive/2.2.7/css/responsive.bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="{{ url_for('static', filename='app.css') }}" rel=stylesheet type=text/css />
<link href="{{ url_for('static', filename='sidebar.css') }}" rel=stylesheet type=text/css />
{% endblock %}

{% block navbar %}
<div id="wrapper">

<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand"><a href="{{ url_for('app.index') }}">{{ application }}</a></li>
<li> <a href="{{ url_for('app.index') }}"><span class="glyphicon glyphicon-home"></span> &nbsp; &nbsp; Home</a></li>
<li> <a href="{{ url_for('app.users') }}"><span class="glyphicon glyphicon-user"></span> &nbsp; &nbsp; Users</a></li>
<li> <a href="/api/docs" target="_blank"><span class="glyphicon glyphicon-book"></span> &nbsp; &nbsp; API Docs</a></li>
</ul>
</div>

<!-- Page Content -->

<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ url_for('app.index') }}">{{ application }}</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#menu-toggle" id="menu-toggle"><span class="glyphicon glyphicon-arrow-left submenu"></span></a></li>
<li><a href="{{ url_for('app.index') }}" id="menu-toggle"><span class="glyphicon glyphicon-home"></span></a></li>
{% if current_user.is_anonymous %}
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ url_for('app.login') }}">Login</a></li>
</ul>
{% else %}
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span>
<span class="glyphicon glyphicon-cog"></span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ url_for('app.user', user_id=current_user.id) }}""><span class="glyphicon glyphicon-cog submenu"></span> &nbsp; Settings</a></li>
<li><a href="{{ url_for('app.index') }}"><span class="glyphicon glyphicon-bell submenu"></span> &nbsp; Notifications</a></li>
<li><a href="{{ url_for('app.users') }}""><span class="glyphicon glyphicon-user submenu"></span> &nbsp; Users</a></li>
<li role="separator" class="divider"></li>
<li><a href="{{ url_for('app.logout') }}"><span class="glyphicon glyphicon-off submenu"></span> &nbsp; Logout</a></li>
<li><a href="/api/docs"><span class="glyphicon glyphicon-book submenu"></span> &nbsp; API Docs</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
<li><a href="{{ url_for('app.logout') }}">Logout</a></li>
</ul>
{% endif %}
</div>
</div>
</nav>
Expand Down Expand Up @@ -85,8 +74,8 @@ <h4 class="modal-title"><span class="glyphicon glyphicon-trash submenu"></span>&


{% block content %}
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="container">
<br>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<!-- Categories: success (green), info (blue), warning (yellow), danger (red) -->
Expand All @@ -110,10 +99,6 @@ <h4 class="modal-title"><span class="glyphicon glyphicon-trash submenu"></span>&
{# application content needs to be provided in the app_content block #}
{% block app_content %}{% endblock %}
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
{% endblock %}

{% block scripts %}
Expand All @@ -125,11 +110,6 @@ <h4 class="modal-title"><span class="glyphicon glyphicon-trash submenu"></span>&
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.7/js/responsive.bootstrap.min.js"></script>

<script type="text/javascript">
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});

$(document).ready(function() {
setTimeout(function() {
$(".flash-message").fadeOut("slow");
Expand Down
81 changes: 0 additions & 81 deletions conbench/templates/base.html

This file was deleted.

6 changes: 1 addition & 5 deletions conbench/templates/batch.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}
{% extends "app.html" %}

{% block app_content %}
<nav aria-label="breadcrumb">
Expand Down
7 changes: 1 addition & 6 deletions conbench/templates/benchmark-entity.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}

{% extends "app.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block app_content %}
Expand Down
7 changes: 1 addition & 6 deletions conbench/templates/benchmark-list.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}

{% extends "app.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block app_content %}
Expand Down
8 changes: 1 addition & 7 deletions conbench/templates/compare-entity.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}

{% import 'bootstrap/wtf.html' as wtf %}
{% extends "app.html" %}

{% block app_content %}
<nav aria-label="breadcrumb">
Expand Down
8 changes: 1 addition & 7 deletions conbench/templates/compare-list.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}

{% import 'bootstrap/wtf.html' as wtf %}
{% extends "app.html" %}

{% block app_content %}
<nav aria-label="breadcrumb">
Expand Down
6 changes: 1 addition & 5 deletions conbench/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}
{% extends "app.html" %}

{% block app_content %}
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion conbench/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "app.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block app_content %}
Expand Down
2 changes: 1 addition & 1 deletion conbench/templates/register.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "app.html" %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block app_content %}
Expand Down
8 changes: 1 addition & 7 deletions conbench/templates/run.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% if current_user.is_anonymous %}
{% extends "base.html" %}
{% else %}
{% extends "app.html" %}
{% endif %}

{% import 'bootstrap/wtf.html' as wtf %}
{% extends "app.html" %}

{% block app_content %}
<nav aria-label="breadcrumb">
Expand Down

0 comments on commit 1a5eaab

Please sign in to comment.