mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
init project
This commit is contained in:
6
app/views/shared/403.html.erb
Normal file
6
app/views/shared/403.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="d-flex flex-column align-items-center justify-content-center global-error">
|
||||
<div class="global-error-code">
|
||||
<span>403</span>
|
||||
</div>
|
||||
<div class="global-error-text">未授权</div>
|
||||
</div>
|
||||
6
app/views/shared/404.html.erb
Normal file
6
app/views/shared/404.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="d-flex flex-column align-items-center justify-content-center global-error">
|
||||
<div class="global-error-code">
|
||||
<span>404</span>
|
||||
</div>
|
||||
<div class="global-error-text">资源未找到</div>
|
||||
</div>
|
||||
6
app/views/shared/422.html.erb
Normal file
6
app/views/shared/422.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="d-flex flex-column align-items-center justify-content-center global-error">
|
||||
<div class="global-error-code">
|
||||
<span>422</span>
|
||||
</div>
|
||||
<div class="global-error-text"><%= @message %></div>
|
||||
</div>
|
||||
6
app/views/shared/500.html.erb
Normal file
6
app/views/shared/500.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="d-flex flex-column align-items-center justify-content-center global-error">
|
||||
<div class="global-error-code">
|
||||
<span>500</span>
|
||||
</div>
|
||||
<div class="global-error-text"><%= @message %></div>
|
||||
</div>
|
||||
6
app/views/shared/_alert.html.erb
Normal file
6
app/views/shared/_alert.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<%= message %>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
13
app/views/shared/_breadcrumb.html.erb
Normal file
13
app/views/shared/_breadcrumb.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% if @_breadcrumbs.present? %>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<% @_breadcrumbs&.each_with_index do |item, index| %>
|
||||
<% if item.url.present? && index != @_breadcrumbs.size - 1 %>
|
||||
<li class="breadcrumb-item"><%= link_to item.text, item.url %></li>
|
||||
<% else %>
|
||||
<li class="breadcrumb-item active" aria-current="page"><%= item.text %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ol>
|
||||
</nav>
|
||||
<% end %>
|
||||
20
app/views/shared/_flash_notice.html.erb
Normal file
20
app/views/shared/_flash_notice.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<% flash.each do |k, v| %>
|
||||
<% next unless %w(success danger warning info).include?(k.to_s) %>
|
||||
|
||||
<div class="alert alert-<%= k %> alert-dismissible fade show" role="alert">
|
||||
<%= v %>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<% end %>
|
||||
<% flash.now.as_json.each do |k, v| %>
|
||||
<% next unless %w(success danger warning info).include?(k.to_s) %>
|
||||
|
||||
<div class="alert alert-<%= k %> alert-dismissible fade show" role="alert">
|
||||
<%= v %>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user