Skip to content

Commit

Permalink
Updated bootstrap version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Jan 12, 2025
1 parent 94309a3 commit ca12c36
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 36 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
4 changes: 4 additions & 0 deletions AIPscan/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ body {
.table-header {
background-color: #ccc !important;
}

.btn-info {
color: #fff;
}
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>
8 changes: 6 additions & 2 deletions build_config/entry/chart_formats_count.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import $ from "jquery";
window.$ = $;
window.jQuery = $;

import bootstrap from "bootstrap";
window.bootstrap = bootstrap;
import { Tooltip, Toast, Popover } from 'bootstrap';
window.bootstrap = {
Tooltip: Tooltip,
Toast: Toast,
Popover: Popover
}

import Chart from "chart.js/auto";
window.Chart = Chart;
8 changes: 6 additions & 2 deletions build_config/entry/shared/base_shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import "jquery-ui-dist/jquery-ui.min.js";

window.$ = window.jQuery = $;

import bootstrap from "bootstrap";
window.bootstrap = bootstrap;
import { Tooltip, Toast, Popover } from 'bootstrap';
window.bootstrap = {
Tooltip: Tooltip,
Toast: Toast,
Popover: Popover
}

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 ca12c36

Please sign in to comment.