You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
923 B
Plaintext
29 lines
923 B
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<% title = request.path_info[1..-1].capitalize.gsub(/\/$/, "") %>
|
|
<head>
|
|
<title><%= title %></title>
|
|
<meta name="description" content="broken-moon.net - <%= title %>" />
|
|
<meta name="keywords" content="<%= title.downcase %>" />
|
|
<meta property="og:url" content="http://broken-moon.net/<%= title.downcase %>" />
|
|
<meta property="og:title" content="<%= title %>" />
|
|
<%= erb :headerBoilerplate %>
|
|
</head>
|
|
<body>
|
|
<%= erb :asidemenu %>
|
|
<div class="content">
|
|
<%= erb :topbar %>
|
|
<% folder = request.path_info[1..-1] %>
|
|
<% if !Dir.exists?(folder) %>
|
|
<%= erb :noFolder, locals: {folder: folder} %>
|
|
<% else %>
|
|
<% if Dir.children("./" + folder).empty? %>
|
|
<%= erb :noFile, locals: {file: folder } %>
|
|
<% else %>
|
|
<%= erb :index, locals: {folders: [folder], searchquery: ""} %>
|
|
<%= erb :search, locals: {folder: folder} %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<%= erb :bottom %>
|
|
</body> |