Skip to content

Commit 27aaa91

Browse files
committed
style: Apply erb_format and htmlbeautifier formatting
1 parent e5bd6c9 commit 27aaa91

File tree

1 file changed

+116
-116
lines changed

1 file changed

+116
-116
lines changed

app/views/layouts/application.html.erb

+116-116
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
name="description"
1111
content="AuthPost is a simple platform where authenticated users share insights about themselves and anything they want people to know about them. This is a TheOdinProject project."
1212
>
13-
<%= csrf_meta_tags %>
14-
<%= csp_meta_tag %>
15-
<%= yield :head %>
16-
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
17-
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
18-
<link rel="icon" href="/icon.png" type="image/png">
19-
<link rel="icon" href="/icon.svg" type="image/svg+xml">
20-
<link rel="apple-touch-icon" href="/icon.png">
21-
<%# Includes all stylesheet files in app/assets/stylesheets %>
22-
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
23-
<%= javascript_importmap_tags %>
24-
</head>
25-
<body class="text-white">
26-
<header>
27-
<nav class="navbar navbar-expand-lg bg-dark text-white pt-2">
28-
<div class="container-fluid text-white">
29-
<%= link_to "AuthPost", root_path, class: "navbar-brand text-white" %>
30-
<button
13+
<%= csrf_meta_tags %>
14+
<%= csp_meta_tag %>
15+
<%= yield :head %>
16+
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
17+
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
18+
<link rel="icon" href="/icon.png" type="image/png">
19+
<link rel="icon" href="/icon.svg" type="image/svg+xml">
20+
<link rel="apple-touch-icon" href="/icon.png">
21+
<%# Includes all stylesheet files in app/assets/stylesheets %>
22+
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
23+
<%= javascript_importmap_tags %>
24+
</head>
25+
<body class="text-white">
26+
<header>
27+
<nav class="navbar navbar-expand-lg bg-dark text-white pt-2">
28+
<div class="container-fluid text-white">
29+
<%= link_to "AuthPost", root_path, class: "navbar-brand text-white" %>
30+
<button
3131
class="navbar-toggler text-white bg-white"
3232
type="button"
3333
data-bs-toggle="collapse"
@@ -36,130 +36,130 @@
3636
aria-expanded="false"
3737
aria-label="Toggle navigation"
3838
>
39-
<span class="navbar-toggler-icon"></span>
40-
</button>
41-
<div class="collapse navbar-collapse text-white" id="navbarSupportedContent">
42-
<ul class="navbar-nav me-auto mb-2 mb-lg-0 text-white">
43-
<li class="nav-item">
44-
<%= link_to "Home",
39+
<span class="navbar-toggler-icon"></span>
40+
</button>
41+
<div class="collapse navbar-collapse text-white" id="navbarSupportedContent">
42+
<ul class="navbar-nav me-auto mb-2 mb-lg-0 text-white">
43+
<li class="nav-item">
44+
<%= link_to "Home",
4545
root_path,
4646
class: "nav-link active text-white",
4747
aria_current: "page" %>
48-
</li>
49-
<li class="nav-item">
50-
<a class="nav-link text-white" href="#">About</a>
51-
</li>
48+
</li>
49+
<li class="nav-item">
50+
<a class="nav-link text-white" href="#">About</a>
51+
</li>
52+
<li class="nav-item">
5253
<li class="nav-item">
53-
<li class="nav-item">
54-
<%= link_to "https://github.com/nanafox/members-only", class: "nav-link d-flex align-items-center text-decoration-none text-white", target: "_blank" do %>
55-
<i class="bi bi-github me-2 text-white"></i>Source Code
56-
<% end %>
57-
</li>
54+
<%= link_to "https://github.com/nanafox/members-only", class: "nav-link d-flex align-items-center text-decoration-none text-white", target: "_blank" do %>
55+
<i class="bi bi-github me-2 text-white"></i>Source Code
56+
<% end %>
5857
</li>
59-
</ul>
60-
<form class="d-flex" role="search">
61-
<input
58+
</li>
59+
</ul>
60+
<form class="d-flex" role="search">
61+
<input
6262
class="form-control me-2"
6363
type="search"
6464
placeholder="Search for posts"
6565
aria-label="Search"
6666
>
67-
<button class="btn btn-outline-success" type="submit">Search</button>
68-
</form>
69-
<div>
70-
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
71-
<% if user_signed_in? %>
72-
<li nav-item><%= link_to "My Posts", current_user_posts_path, class: "nav-link text-white" %></li>
73-
<li nav-item><%= link_to "Profile", edit_user_registration_path, class: "nav-link text-white" %></li>
74-
<li class="nav-item text-white"><%= link_to "Sign out",
67+
<button class="btn btn-outline-success" type="submit">Search</button>
68+
</form>
69+
<div>
70+
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
71+
<% if user_signed_in? %>
72+
<li nav-item><%= link_to "My Posts", current_user_posts_path, class: "nav-link text-white" %></li>
73+
<li nav-item><%= link_to "Profile", edit_user_registration_path, class: "nav-link text-white" %></li>
74+
<li class="nav-item text-white"><%= link_to "Sign out",
7575
destroy_user_session_path,
7676
data: {
7777
turbo_method: :delete,
7878
turbo_confirm: "Are you sure you want to log out?",
7979
},
8080
class: "nav-link text-white" %></li>
81-
<% else %>
82-
<li class="nav-item"><%= link_to "Sign up", new_user_registration_path, class: "nav-link text-white" %></li>
83-
<li class="nav-item"><%= link_to "Sign in", new_user_session_path, class: "nav-link text-white" %></li>
84-
<% end %>
85-
</ul>
86-
</div>
87-
</div>
81+
<% else %>
82+
<li class="nav-item"><%= link_to "Sign up", new_user_registration_path, class: "nav-link text-white" %></li>
83+
<li class="nav-item"><%= link_to "Sign in", new_user_session_path, class: "nav-link text-white" %></li>
84+
<% end %>
85+
</ul>
8886
</div>
89-
</nav>
90-
</header>
91-
<section
87+
</div>
88+
</div>
89+
</nav>
90+
</header>
91+
<section
9292
id="main"
9393
class="py-4"
9494
style="background-color: rgba(33,37, 41, 0.95);"
9595
>
96-
<main class="container">
97-
<% if notice %>
98-
<p class="notice alert alert-info mt-2" role="alert"><%= notice %></p>
99-
<% end %>
100-
<% if alert %>
101-
<p class="alert alert-warning mt-2" role="alert"><%= alert %></p>
102-
<% end %>
103-
<%= yield %>
104-
</main>
105-
</section>
106-
<footer class="bg-dark text-white py-4 position-relative">
107-
<div class="container">
108-
<div class="row">
109-
<!-- About Section -->
110-
<div class="col-12 col-md-4 mb-3">
111-
<h5>About</h5>
112-
<p>This project is part of the
113-
<%= link_to "The Odin Project",
96+
<main class="container">
97+
<% if notice %>
98+
<p class="notice alert alert-info mt-2" role="alert"><%= notice %></p>
99+
<% end %>
100+
<% if alert %>
101+
<p class="alert alert-warning mt-2" role="alert"><%= alert %></p>
102+
<% end %>
103+
<%= yield %>
104+
</main>
105+
</section>
106+
<footer class="bg-dark text-white py-4 position-relative">
107+
<div class="container">
108+
<div class="row">
109+
<!-- About Section -->
110+
<div class="col-12 col-md-4 mb-3">
111+
<h5>About</h5>
112+
<p>This project is part of the
113+
<%= link_to "The Odin Project",
114114
"https://theodinproject.com",
115115
class: "text-white link-opacity-75-hover" %>
116-
Ruby on Rails curriculum</p>
117-
</div>
118-
<!-- Quick Links Section -->
119-
<div class="col-12 col-md-4 mb-3">
120-
<h5>Quick Links</h5>
121-
<ul class="list-unstyled d-flex flex-wrap gap-4">
122-
<li><%= link_to "Home", root_path, class: "text-white text-decoration-none" %></li>
123-
<li><%= link_to "About", "#", class: "text-white text-decoration-none" %></li>
124-
<li><%= link_to "Register",
116+
Ruby on Rails curriculum</p>
117+
</div>
118+
<!-- Quick Links Section -->
119+
<div class="col-12 col-md-4 mb-3">
120+
<h5>Quick Links</h5>
121+
<ul class="list-unstyled d-flex flex-wrap gap-4">
122+
<li><%= link_to "Home", root_path, class: "text-white text-decoration-none" %></li>
123+
<li><%= link_to "About", "#", class: "text-white text-decoration-none" %></li>
124+
<li><%= link_to "Register",
125125
new_user_registration_path,
126126
class: "text-white text-decoration-none" %></li>
127-
<li><%= link_to "Sign in",
127+
<li><%= link_to "Sign in",
128128
new_user_session_path,
129129
class: "text-white text-decoration-none" %></li>
130-
</ul>
131-
</div>
132-
<!-- Contact Section -->
133-
<div class="col-12 col-md-4 mb-3">
134-
<h5>Contact Me</h5>
135-
<address>
136-
<strong>Maxwell Nana Forson</strong><br>
137-
</address>
138-
<div id="links" class="d-flex flex-wrap gap-2">
139-
<%= link_to "https://github.com/nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
140-
<i class="bi bi-github me-2"></i>GitHub
141-
<% end %>
142-
<%= link_to "https://x.com/_nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
143-
<i class="bi bi-twitter me-2"></i>_nanafox
144-
<% end %>
145-
<%= link_to "https://wa.me/233594059579", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
146-
<i class="bi bi-whatsapp me-2"></i>WhatsApp
147-
<% end %>
148-
<%= link_to "https://www.linkedin.com/in/maxwellnanaforson", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
149-
<i class="bi bi-linkedin me-2"></i>LinkedIn
150-
<% end %>
151-
<%= link_to "https://www.mnforson.live", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
152-
<i class="bi bi-house-door me-2"></i>Website
153-
<% end %>
154-
</div>
155-
</div>
156-
</div>
157-
<div class="text-center mt-3">
158-
<small>&copy;
159-
<%= Time.current.year %>
160-
AuthPost. All rights reserved.</small>
130+
</ul>
131+
</div>
132+
<!-- Contact Section -->
133+
<div class="col-12 col-md-4 mb-3">
134+
<h5>Contact Me</h5>
135+
<address>
136+
<strong>Maxwell Nana Forson</strong><br>
137+
</address>
138+
<div id="links" class="d-flex flex-wrap gap-2">
139+
<%= link_to "https://github.com/nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
140+
<i class="bi bi-github me-2"></i>GitHub
141+
<% end %>
142+
<%= link_to "https://x.com/_nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
143+
<i class="bi bi-twitter me-2"></i>_nanafox
144+
<% end %>
145+
<%= link_to "https://wa.me/233594059579", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
146+
<i class="bi bi-whatsapp me-2"></i>WhatsApp
147+
<% end %>
148+
<%= link_to "https://www.linkedin.com/in/maxwellnanaforson", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
149+
<i class="bi bi-linkedin me-2"></i>LinkedIn
150+
<% end %>
151+
<%= link_to "https://www.mnforson.live", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %>
152+
<i class="bi bi-house-door me-2"></i>Website
153+
<% end %>
161154
</div>
162155
</div>
163-
</footer>
164-
</body>
165-
</html>
156+
</div>
157+
<div class="text-center mt-3">
158+
<small>&copy;
159+
<%= Time.current.year %>
160+
AuthPost. All rights reserved.</small>
161+
</div>
162+
</div>
163+
</footer>
164+
</body>
165+
</html>

0 commit comments

Comments
 (0)