Mercurial > zeropaste
view app/views/layouts/application.html.erb @ 489:361ab9e7ffad
Replace webpacker with esbuild and use plain js instead of coffee
author | nanaya <me@nanaya.net> |
---|---|
date | Tue, 17 Jan 2023 02:34:06 +0900 |
parents | b26dd8fa1c26 |
children | cd84252dd0bf |
line wrap: on
line source
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <title><%= html_title %></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <%= javascript_include_tag :application_classic %> <%= javascript_include_tag :application %> <%= stylesheet_link_tag "application", :media => "all" %> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container"> <%= link_to "Zeropaste", root_path, :class => "navbar-brand" %> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="<%= t('.toggle_nav') %>" > <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbar-menu"> <ul class="navbar-nav ml-auto"> <li class="nav-item"> <%= link_to t(".about"), "#", { data: { toggle: "modal", target: "#modal-about", }, class: 'nav-link', } %> </li> <li class="nav-item"> <a class="nav-link" href="https://hg.sr.ht/~nanaya/zeropaste"><%= t(".source") %></a> </li> <li class="nav-item"> <%= link_to t(".donate"), "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GV9AHVHQAHXLJ", class: 'nav-link' %> </li> </ul> </div> </div> </nav> <div class="container"> <div class="row"><div class="col-12"> <h1 class="h2 pt-3 pb-1"><%= content_for :title %></h1> </div></div> <%= render "layouts/alerts" %> <%= yield %> </div> <div class="modal fade" id="modal-about" tabindex="-1" role="dialog" aria-labelledby="about-modal-label" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="about-modal-label"><%= t(".about") %></h4> </div> <div class="modal-body"> <%= render "layouts/about" %> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"> <%= t("buttons.close") %> </button> </div> </div> </div> </div> </body> </html>