Skip to content

Commit

Permalink
Update to Bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Jan 12, 2025
1 parent 94309a3 commit a76bed0
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion AIPscan/Reporter/templates/aips.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% if storage_services %}

<div class="float-right">
<div class="float-end">
<form action="{{ url_for('reporter.view_aips') }}" method="GET" class="pr-3" id="queryform">
<i class="fas fa-search"></i> Search <input name="query" id="query"/><input type="submit" hidden/>
</form>
Expand Down
7 changes: 7 additions & 0 deletions AIPscan/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ body {
.table-header {
background-color: #ccc !important;
}

/* Use Bootstrap 4 look of button */
.btn-info {
color: #fff;
background-color: #17a2b8;
border-color: #17a2b8;
}
26 changes: 14 additions & 12 deletions AIPscan/templates/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="/">AIPscan</a>
<div class="navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<div class="container-fluid">
<a class="navbar-brand" href="/">AIPscan</a>
<div class="navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">

{% for section in navbar.sections %}
<li class="nav-item">
<a class="nav-link {{ 'active fw-bold' if section.is_active(request) else '' }}" href="{{ section.get_url() }}">{{ section.label }}</a>
</li>
{% endfor %}

{% for section in navbar.sections %}
<li class="nav-item">
<a class="nav-link {{ 'active fw-bold' if section.is_active(request) else '' }}" href="{{ section.get_url() }}">{{ section.label }}</a>
<a class="nav-link" href="{{ url_for('api.doc') }}" target="apiframe">API</a>
</li>
{% endfor %}

<li class="nav-item">
<a class="nav-link" href="{{ url_for('api.doc') }}" target="apiframe">API</a>
</li>
</ul>
</ul>
</div>
<span style="font-style: italic" class="navbar-text">Crawl Archivematica AIPs to provide repository-wide reporting</span>
</div>
<span style="font-style: italic" class="navbar-text">Crawl Archivematica AIPs to provide repository-wide reporting</span>
</nav>
1 change: 0 additions & 1 deletion build_config/entry/chart_formats_count.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ window.$ = $;
window.jQuery = $;

import bootstrap from "bootstrap";
window.bootstrap = bootstrap;

import Chart from "chart.js/auto";
window.Chart = Chart;
1 change: 0 additions & 1 deletion build_config/entry/shared/base_shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ import "jquery-ui-dist/jquery-ui.min.js";
window.$ = window.jQuery = $;

import bootstrap from "bootstrap";
window.bootstrap = bootstrap;

import "/AIPscan/static/css/custom.css";
34 changes: 16 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@rollup/plugin-inject": "^5.0.5",
"bootstrap": "^4.6.2",
"bootstrap": "^5.3.3",
"chart.js": "^4.4.1",
"jquery": "^3.7.1",
"jquery-ui-dist": "^1.13.2",
Expand Down

0 comments on commit a76bed0

Please sign in to comment.