Skip to content

Commit 755d024

Browse files
authored
Remove placeholders and fix footer (#315)
2 parents 01bdaf3 + e365c12 commit 755d024

File tree

18 files changed

+12
-113
lines changed

18 files changed

+12
-113
lines changed

app/controllers/concerns/authentication.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def allow_unauthenticated_access(**options)
1313
end
1414

1515
def redirect_contributors
16-
redirect_to dashboard_path unless Current.user.is_admin?
16+
redirect_to topics_path unless Current.user.is_admin?
1717
end
1818

1919
private
@@ -39,7 +39,7 @@ def request_authentication
3939
end
4040

4141
def after_authentication_url
42-
session.delete(:return_to_after_authenticating) || dashboard_url
42+
session.delete(:return_to_after_authenticating) || topics_url
4343
end
4444

4545
def start_new_session_for(user)

app/controllers/dashboard_controller.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/views/dashboard/index.html.erb

Lines changed: 0 additions & 27 deletions
This file was deleted.

app/views/home/index.html.erb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!-- New Sign In link using Rails 8 authentication -->
1313
<% if authenticated? %>
1414
<li class="nav-item">
15-
<%= link_to "Dashboard", dashboard_path, class: "nav-link" %>
15+
<%= link_to "Dashboard", topics_path, class: "nav-link" %>
1616
</li>
1717
<li class="nav-item">
1818
<%= button_to "Sign Out", session_path, method: :delete, class: "nav-link" %>
@@ -36,9 +36,6 @@
3636
<p class="lead">Empowering healthcare professionals worldwide with accessible continuing medical education</p>
3737
<%= link_to "Get Started", new_session_path, class: "btn btn-light btn-lg" %>
3838
</div>
39-
<div class="col-lg-6">
40-
<img src="/api/placeholder/600/400" alt="Medical professionals using SkillRx" class="img-fluid rounded">
41-
</div>
4239
</div>
4340
</div>
4441
</header>
@@ -89,9 +86,6 @@
8986
<li class="mb-2">✓ Adaptable to local needs</li>
9087
</ul>
9188
</div>
92-
<div class="col-lg-6">
93-
<img src="/api/placeholder/600/400" alt="Healthcare professionals collaborating" class="img-fluid rounded">
94-
</div>
9589
</div>
9690
</div>
9791
</section>

app/views/languages/index.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
</div>
1313
<div class="card-content">
1414
<div class="card-body">
15-
<p class="card-text"> Some important information or instruction can be placed here.</p>
1615
<div class="table-responsive">
1716
<table class="table table-lg table-striped mb-0">
1817
<thead>

app/views/layouts/_sidebar.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="sidebar-header position-relative">
55
<div class="d-flex justify-content-between align-items-center">
66
<div class="logo">
7-
<%= link_to("SkillRx", dashboard_path) %>
7+
<%= link_to("SkillRx", root_path) %>
88
</div>
99
<div class="theme-toggle d-flex gap-2 align-items-center mt-2">
1010
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true"

app/views/layouts/application.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
}
5252

5353
footer {
54-
position: absolute;
5554
bottom: 0;
5655
width: 100%;
5756
height: 60px; /* Fixed height */
@@ -75,7 +74,7 @@
7574

7675
<div id="app">
7776
<%= render "layouts/sidebar" %>
78-
<div id="main" class='layout-navbar navbar-fixed'>
77+
<div id="main" class='layout-navbar'>
7978
<div id="main-content">
8079
<%= render "shared/flash" %>
8180

app/views/providers/index.html.erb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212
</div>
1313
<div class="card-content">
1414
<div class="card-body">
15-
<p class="card-text">
16-
Lorem ipsum dolor sit amet, <code>consectetur adipiscing</code> elit. Sed do eiusmod tempor incididunt ut
17-
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
18-
aliquip
19-
ex ea commodo consequat. Duis aute irure dolor in <code>reprehenderit</code> in voluptate velit esse
20-
cillum dolore eu fugiat nulla
21-
pariatur. Excepteur sint <code>occaecat cupidatat</code> non proident, sunt in culpa qui officia deserunt
22-
mollit anim id est
23-
laborum.
24-
</p>
2515
<!-- table striped -->
2616
<div class="table-responsive">
2717
<table class="table table-lg table-striped mb-0">

app/views/providers/new.html.erb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
</div>
1010
<div class="card-content">
1111
<div class="card-body">
12-
<p>Providers should ... Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut
13-
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
14-
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
15-
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
16-
laborum.</p>
1712
<%= render "form", provider: @provider %>
1813
</div>
1914
</div>

app/views/regions/index.html.erb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212
</div>
1313
<div class="card-content">
1414
<div class="card-body">
15-
<p class="card-text">
16-
Lorem ipsum dolor sit amet, <code>consectetur adipiscing</code> elit. Sed do eiusmod tempor incididunt ut
17-
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
18-
aliquip
19-
ex ea commodo consequat. Duis aute irure dolor in <code>reprehenderit</code> in voluptate velit esse
20-
cillum dolore eu fugiat nulla
21-
pariatur. Excepteur sint <code>occaecat cupidatat</code> non proident, sunt in culpa qui officia deserunt
22-
mollit anim id est
23-
laborum.
24-
</p>
2515
<!-- table striped -->
2616
<div class="table-responsive">
2717
<table class="table table-lg table-striped mb-0">
@@ -59,4 +49,3 @@
5949
</div>
6050
</div>
6151
</section>
62-

0 commit comments

Comments
 (0)