view app/views/layouts/application.html.erb @ 503:2392b86711a1

Remove standalone option I reverted the bundler require option during upgrade but the custom group isn't relevant anymore anyway.
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:15:49 +0900
parents cd84252dd0bf
children
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.nanaya.net/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>