Skip to content

Commit ad5c45b

Browse files
committed
Add a sidebar on the right.
1 parent e180944 commit ad5c45b

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

Web/root/_base.tx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@
1919
<body>
2020
<div class="container">
2121
[% include '_navbar.tx' %]
22-
23-
%% block content -> {
24-
<h4>This area replaced by overriding content</h4>
25-
%% }
22+
<div class="container-fluid">
23+
<div class="row">
24+
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
25+
%% block content -> {
26+
<h4>This area replaced by overriding content</h4>
27+
%% }
28+
</main>
29+
%% include '_sidebar.tx'
30+
</div>
31+
</div>
2632

2733
</div>
2834
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"

Web/root/_sidebar.tx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
2+
<div class="position-sticky pt-3">
3+
4+
<ul class="nav flex-column">
5+
<li class="nav-item">
6+
<a class="nav-link [% $sb_active == "dashboard" ? "active" : "" %]" aria-current="page"
7+
href="[% $c.uri_for_action( '/create/create_topic' ) %]">
8+
<span data-feather="home"></span>
9+
Create New Topic
10+
</a>
11+
</li>
12+
%% if ( $channel ) {
13+
<li class="nav-item">
14+
<a class="nav-link [% $sb_active == "dashboard" ? "active" : "" %]" aria-current="page"
15+
href="[% $c.uri_for_action( '/create/create_message', [], { channel => $channel.name } ) %]">
16+
<span data-feather="home"></span>
17+
Create New Post
18+
</a>
19+
</li>
20+
%% }
21+
</div>
22+
</nav>

0 commit comments

Comments
 (0)